function checkcontact(contactform)
{

   
    if (contactform.name.value =="")
	{
	    window.alert("You missed name ");
	    contactform.name.focus();
	}
	else if (contactform.Add1.value =="")
	{
	    window.alert("You missed address1");
	    contactform.Add1.focus();
	}
	else if (contactform.email.value =="")
	{
	    window.alert("You missed email");
	    contactform.email.focus();
	}
	else if(!checkEmail(contactform.email))
		{
			contactform.email.focus();
			//if(!checkEmail(contactform.email))
		}
	else if (contactform.city.value =="")
	{
	    window.alert("You missed city");
	    contactform.city.focus();
	}
	else if (contactform.stateCode.value =="")
	{
	    window.alert("You missed  state code");
	    contactform.stateCode.focus();
	}
	
	else if (contactform.zip.value =="")
	{
	    window.alert("You missed zip");
	    contactform.zip.focus();
	}
	else if (contactform.product.value =="")
	{
	    window.alert("You missed product");
	    contactform.product.focus();
	}
	else if (contactform.quantity.value =="")
	{
	    window.alert("You missed quantity");
	    contactform.quantity.focus();
	}
	else
	{
		contactform.pback.value="Y";
		alert("Thank you for contacting us.. One of our representatives will get back to you soon.");
		contactform.submit();
	}
}

/*function check()
{
	if(Contact.name.value=="")
	{  
		alert("Name Cannot be blank");
	  	Contact.name.focus(); 
	}
	  
	else if(Contact.Company.value=="")
	{
		alert("Company Name Cannot Be Blank");
		Contact.Company.focus(); 
	}
	
	else if(Contact.comments.value=="")
	{ 
		alert("Please enter your comments.");
	  	Contact.comments.focus(); 
	}
	
	else
	{
		Contact.pback.value="Y";
		alert("Thank you for contacting us.. One of our representatives will get back to you soon.");
		Contact.submit();
	}
}*/
