function setPaymentInfo()
		{
		if (document.frmCheckout.chkShipping.checked) 
			{
					document.frmCheckout.txtSFName.value = document.frmCheckout.txtBFName.value;
					document.frmCheckout.txtSLName.value  = document.frmCheckout.txtBLName.value;
					document.frmCheckout.txtSCity.value  = document.frmCheckout.txtBCity.value;
					document.frmCheckout.txtSZip.value = document.frmCheckout.txtBZip.value;
					document.frmCheckout.txtSPNO.value=document.frmCheckout.txtBPNO.value;
					document.frmCheckout.txtSState.value=document.frmCheckout.txtBState.value;
					document.frmCheckout.drdSCountry.selectedIndex = document.frmCheckout.drdBCountry.selectedIndex
					document.frmCheckout.txtSCName.value=document.frmCheckout.txtBCName.value;
					document.frmCheckout.txtSStreet.value=document.frmCheckout.txtBStreet.value;
					document.frmCheckout.txtSArea.value=document.frmCheckout.txtBArea.value;
            }
        else 
            {
					document.frmCheckout.txtSFName.value = '';
					document.frmCheckout.txtSLName.value  = '';
					document.frmCheckout.txtSCity.value  = '';
					document.frmCheckout.txtSZip.value = '';
					document.frmCheckout.txtSPNO.value='';
					document.frmCheckout.drdSCountry.selectedIndex = 0
					document.frmCheckout.txtSCName.value='';
					document.frmCheckout.txtSStreet.value='';
					document.frmCheckout.txtSArea.value='';
			}		
		}
		
		function WebForm_check()
{


var theform=document.frmCheckout;
   if(theform.txtBFName.value=='')
   {
   alert("Please enter First Name");
    theform.txtBFName.focus();
	return false;
   }
   if(theform.txtBLName.value=='')
   {
   alert("Please enter Last Name");
    theform.txtBLName.focus();
	return false;
   }
   if(theform.txtBPNO.value=='')
   {
   alert("Please enter Phone No");
    theform.txtBPNO.focus();
	return false;
   }
   if(theform.txtBEMail.value=='')
   {
   alert("Please enter E-Mail");
    theform.txtBEMail.focus();
	return false;
   }
   
   if (!echeck4(theform.txtBEMail.value))
  	{ 
  	alert("Please enter valid E-Mail");
	theform.txtBEMail.focus();
   return false;
  	}
	
	function echeck4(str)
	 {
		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		//trace(lat)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1) 
		{
		   return false
		}

		if (str.indexOf(at)==0 || str.indexOf(at)==lstr)
		{
		   return false
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr)
		{
		    return false
		}

		 if (str.indexOf(at,(lat+1))!=-1)
		 {
		    return false
		 }
			
		 if (str.indexOf(" ")!=-1)
		 {
		    return false
		 }
		if(lstr==ldot+1)
	    return false
 		 return true
	}
   if(theform.txtBStreet.value=='')
   {
   alert("Please enter Street");
    theform.txtBStreet.focus();
	return false;
   }
   if(theform.txtBCity.value=='')
   {
   alert("Please enter City");
    theform.txtBCity.focus();
	return false;
   }
   if(theform.txtBState.value=='')
   {
   alert("Please enter State");
    theform.txtBState.focus();
	return false;
   }
    if(theform.drdBCountry.value=='')
   {
   alert("Please select Country");
    theform.drdBCountry.focus();
	return false;
   }
   
   if(theform.txtBZip.value=='')
   {
   alert("Please enter Zipcode");
    theform.txtBZip.focus();
	return false;
   }
   if(theform.txtSFName.value=='')
   {
   alert("Please enter First Name");
    theform.txtSFName.focus();
	return false;
   }
   if(theform.txtSLName.value=='')
   {
   alert("Please enter Last Name");
    theform.txtSLName.focus();
	return false;
   }
  if(theform.txtSPNO.value=='')
   {
   alert("Please enter Phone No");
    theform.txtSPNO.focus();
	return false;
   }
  if(theform.txtSStreet.value=='')
   {
   alert("Please enter Street");
    theform.txtSStreet.focus();
	return false;
   }
   if(theform.txtSCity.value=='')
   {
   alert("Please enter City");
    theform.txtSCity.focus();
	return false;
   }
    if(theform.txtSState.value=='')
   {
   alert("Please enter State");
    theform.txtSState.focus();
	return false;
   }
 if(theform.drdSCountry.value=='')
   {
   alert("Please select Country");
    theform.drdSCountry.focus();
	return false;
   }
if(theform.txtSZip.value=='')
   {
   alert("Please enter Zipcode");
    theform.txtSZip.focus();
	return false;
   }
   if(theform.drdShippingmode.value=='')
   {
   alert("Please select Shippingmode");
    theform.drdShippingmode.focus();
	return false;
   }
   if(!theform.chkQuestion1.checked)
   {
   alert("you accept terms & conditions");
    theform.drdShippingmode.focus();
	return false;
   }

theform.submit();



}
		
		
		
		
