function checkShippingOpt()
{
	var ccNumber= /\d{16}/;
	var emailField  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	
	for (counter = 0; counter < billingShippingfrm.ShipDestination.length; counter++)
		{
			
		if (billingShippingfrm.ShipDestination[counter].checked)
		{
		var question1Value = billingShippingfrm.ShipDestination[counter].value;
//		alert(question1Value);
		}
		}
	
	if (question1Value == 'billaddress')
	{
		if (!document.billingShippingfrm.BillName.value)
		{	alert('Error! Account Name is missing in Billing Address Section.');
			document.billingShippingfrm.BillName.focus();
				return false; }
		
		if (document.billingShippingfrm.country.selectedIndex == '')
		{
			alert('Error! Please select Country in Billing Address Section.');
		document.billingShippingfrm.country.focus();
		return false; }


		if (!document.billingShippingfrm.BillAddress.value)
		{	alert('Error! Address is missing in Billing Address Section.');
			document.billingShippingfrm.BillAddress.focus();
				return false; }

		if (!document.billingShippingfrm.BillCity.value)
		{	alert('Error! City is missing in Billing Address Section.');
			document.billingShippingfrm.BillCity.focus();
				return false; }
		
		if (!document.billingShippingfrm.billcountrycode.value)
		{	alert('Error! Country Code is missing in Billing Address Section.');
			document.billingShippingfrm.billcountrycode.focus();
			return false; }
			
		if (!document.billingShippingfrm.billcitycode.value)
		{	alert('Error! City/Area Code is missing in Billing Address Section.');
			document.billingShippingfrm.billcitycode.focus();
			return false; }
				
		if (!document.billingShippingfrm.BillPhone.value)
		{	alert('Error! Phone Number is missing in Billing Address Section.');
			document.billingShippingfrm.BillPhone.focus();
				return false; }
		
		if (!document.billingShippingfrm.BillEmail.value)
		{	alert('Error! Email Address is missing in Billing Address Section.');
			document.billingShippingfrm.BillEmail.focus();
				return false; }
				
		}
	
	if (question1Value == 'shipaddress')
	{			
				if (!document.billingShippingfrm.ShippingRecepName.value)
				{	alert('Error! Recepient Name is missing.');	
					document.billingShippingfrm.ShippingRecepName.focus();
				return false; }
				
				if (document.billingShippingfrm.ShippingCountry.selectedIndex == '')
				{
					alert('Error! Please select Country in Shipping Address Section.');
					document.billingShippingfrm.ShippingCountry.focus();
					return false; }
		
				if (!document.billingShippingfrm.ShippingAddress.value)
				{	alert('Error! Shipping Address is missing.');	
					document.billingShippingfrm.ShippingAddress.focus();
				return false; }
			
				if (!document.billingShippingfrm.shipcountrycode.value)
					{	alert('Error! Country Code is missing in Shipping Address Section.');
						document.billingShippingfrm.shipcountrycode.focus();
						return false; }
						
					if (!document.billingShippingfrm.shipcitycode.value)
					{	alert('Error! City/Area Code is missing in Shipping Address Section.');
						document.billingShippingfrm.shipcitycode.focus();
						return false; }
							
					if (!document.billingShippingfrm.ShipPhone.value)
					{	alert('Error! Phone Number is missing in Shipping Address Section.');
						document.billingShippingfrm.ShipPhone.focus();
							return false; }
						
				if (!document.billingShippingfrm.ShippingCity.value)
				{	alert('Error! Shipping City is missing.');	
					document.billingShippingfrm.ShippingCity.focus();
				return false; }
				
				
				
			
		}
		
		if (document.billingShippingfrm.ShowGiftMsg.checked == true)
		{
				if (!document.billingShippingfrm.GiftMessage.value)
					{	alert('Error! Gift Message is missing.');	
						document.billingShippingfrm.GiftMessage.focus();
					return false; }
				
		}
		
	///For payment Method 
	
	
	for (counter = 0; counter < billingShippingfrm.PaymentMethod.length; counter++)
		{
			
		if (billingShippingfrm.PaymentMethod[counter].checked)
		{
		var PaymentValue = billingShippingfrm.PaymentMethod[counter].value;
//		alert(question1Value);
		}
		}
		
		if (PaymentValue == 'PayByCC')
		{		
			alert('Error! Only Payment on Delivery  option is active.');
			return false;
		}
		else if (PaymentValue == 'PayPal')
		{
			alert('Error! Only Payment on Delivery  option is active.');
			return false;
		}
	
	return true;
}


