function validatepayform()
{
	var jname = document.pmpay.firstname.value;
	var jlastname = document.pmpay.lastname.value;
	var jemail = document.pmpay.email.value;
	var jaddress = document.pmpay.address.value;
	var jcity = document.pmpay.city.value;
	var jstate = document.pmpay.state.value;
	var jpostcode = document.pmpay.postcode.value;
	
	var jinv = document.pmpay.inv.value;
	var jamt = document.pmpay.amount.value;

	var jpaymenttype = document.pmpay.payment.value;


	if ( (jname == "") || (jlastname == "") ||  (jemail == "") || (jaddress == "") || (jcity == "") || (jstate == "") || (jpostcode == "") || (jinv == "") || (jamt == "") )  
	{
			alert (" Some of the fields are incomplete. Please fill in the necessary fields. ");
			return false;
	}
	
	if ( jemail.indexOf("@")<0  || jemail.indexOf(".")<0 )
	{
			alert (" Please fill in a proper email address. ");
			return false;
	}
	
	if ( jpaymenttype == "non" )
	{
			alert (" Please choose a payment method. ");
			return false;

	}
	



}


