function checkform(frm)
{			
		v1=frm.name
		if(isblank(v1)==false) 
	 		{
			alert("Name Can not be Blank.");
			v1.focus(); 
			return false;
			}	
			v1=frm.query
		if(isblank(v1)==false) 
	 		{
			alert("Your Query cannot be blank.");
			v1.focus(); 
			return false;
			}	
			v1=frm.phone
		if(isblank(v1)==false) 
	 		{
			alert("Phone No. cannot be blank.");
			v1.focus(); 
			return false;
			}	
			v1=frm.email
		if(isblank(v1)==false) 
			{
			alert("E-mail cannot be blank.");
			v1.focus(); 
			return false
			}
		if(isemail(v1)==false) 
			{
			alert("The email \""+ v1.value+" \"is not valid email");
			v1.focus(); 
			return false;
			}
			
function isblank(s3) 
{
	if (s3.value == "") 
	{
	return false;
	}
else 
	{
	return true;
   }
}



function isemail(s2) 
{
	if ((s2.value == "" || s2.value.indexOf('@', 0) == -1) || s2.value.indexOf('.')<5) 
	{
	return false;
	}
else {
	return true;
   	}
}
