var emailfilter=/^\w+[\+\.\w-]*@([\w-]+\.)*\w+[\w-]*\.([a-z]{2,4}|\d+)$/i

function ValidateForm()
{
      if(PageForm.ShipFirst.value=="")
	     {
		alert("Please Enter First Name In Shipping Information");
		PageForm.ShipFirst.focus();
		return false;
	      } 

		if(PageForm.ShipLast.value=="")
	     {
		alert("Please Enter Last Name In Shipping Information");
		PageForm.ShipLast.focus();
		return false;
	     }  
		 
		if(PageForm.ShipAddress.value=="")
	     {
		alert("Please Enter Address In Shipping Information");
		PageForm.ShipAddress.focus();
		return false;
	    }  
		
		if(PageForm.ShipPhone.value=="")
	    {
		alert("Please Enter Phone In Shipping Information");
		PageForm.ShipPhone.focus();
		return false;
	    } 

//Email validation start	
var e=PageForm.ShipEmail;
if(e.value=="")
	{
		alert("Please Enter Your Valid Email address.");
		e.focus();
		return false;
	}

var returnval=emailfilter.test(e.value)
if (returnval==false){
alert("Invalid Email Address.")
//e.select();
e.focus();
return false;
}

//return returnval;

//Email validation end

     if(PageForm.postcode.value=="")
	    {
		alert("Please Enter PostCode To Deliver Product");
		PageForm.postcode.focus();
		return false;
	    } 

}













