function validateQuery(thisform)
{
	if(GenValidation(thisform.custname,'Customer Name','','')==0)
		return false;
		
	if(checkInCharSet(thisform.custname.value,'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ')==0)
	{
		alert("Please enter only alphabets");
		thisform.custname.focus();
		return false;
	}
	
	if(GenValidation(thisform.address,'Address','','')==0)
		return false;
	
	if(GenValidation(thisform.city,'City','','')==0)
		return false;
	
	if(GenValidation(thisform.pnumber,'Phone number','','')==0)
		return false;
	
	if(checkInCharSet(thisform.pnumber.value,"0123456789-+() ") == 0)
	{
		alert("Phone \n Valid characters are [0-9],-,+,(,), ");
		thisform.pnumber.focus();
		return false;
	}

	if(checkInCharSet(thisform.mnumber.value,"0123456789-+() ") == 0)
	{
		alert("Mobile number \n Valid characters are [0-9],-,+,(,), ");
		thisform.mnumber.focus();
		return false;
	}
	
	if(GenValidation(thisform.email,'Email Address','','')==0)
		return false;
		
	if(EmailValidation(thisform.email)==0)
		return false;
		
	if(GenValidation(thisform.enqdetail,'Enquiry Details','','')==0)
		return false;
	
	thisform.formaction.value="sendquery";
}
