function verify_contact()
{
	if(Trim(document.frm.txt_company.value)=="")
	{
		alert("Please enter Company!");
		document.frm.txt_company.focus();
		return false;
	}
	if(Trim(document.frm.txt_name.value)=="")
	{
		alert("Please enter Contact Name!");
		document.frm.txt_name.focus();
		return false;
	}
	if(!isAlphanumericnotspecial(Trim(document.frm.txt_name.value)))
	{
		alert("Contact Name should not contain special charactors!");
		document.frm.txt_name.select();
		document.frm.txt_name.focus();
		return false;
	}
	if(Trim(document.frm.txt_email.value)=="")
	{
		alert("Please enter Email!");
		document.frm.txt_email.focus();
		return false;
	}
	if(Trim(document.frm.txt_email.value) != "")
	{
		if(!isEmail(document.frm.txt_email.value,1,0) || (document.frm.txt_email.value.length==0))
		{
			alert("Please enter valid Email!");
			document.frm.txt_email.select();
			document.frm.txt_email.focus();
			return false;
		}
	}	
	if(Trim(document.frm.txt_phone.value)=="")
	{
		alert("Please enter Telephone No!");
		document.frm.txt_phone.focus();
		return false;
	}
	if(Trim(document.frm.txt_phone.value) != "")
	{
		if(isNaN(Trim(document.frm.txt_phone.value)) == true)
		{
			alert("Please enter only numeric value for Telephone No!");
			document.frm.txt_phone.select();
			return false;
		}
	}
	if(Trim(document.frm.txt_list.value)=="")
	{
		alert("Please select atleast one option from list!");
		document.frm.txt_list.focus();
		return false;
	}
	if(Trim(document.frm.txt_list.value) != "")
	{
		lists = "";
		for (i=0; i<document.frm.txt_list.length;i++)
		{
			if (document.frm.txt_list[i].selected)
			{ 
				if(lists)
				{
					lists = lists + "," + document.frm.txt_list[i].value;
				} 
				else
					lists = lists + document.frm.txt_list[i].value;
			}
		}	
	}
	document.frm.hid_lists.value = lists;
	document.frm.action="contactus.php?ACTION=SENDMAIL";
	document.frm.submit();
	return true;
}