function Validate()
{
	if(frmEnquiry.txtName.value=="")
	{
		alert("Please enter the name");
		frmEnquiry.txtName.focus();
		return false;
	}
	if(frmEnquiry.txtEmail.value=="")
	{
		alert("Please enter the Email Id");
		frmEnquiry.txtEmail.focus();
		return false;
	}
	else if (checkmail(frmEnquiry.txtEmail.value) == false)
	{
			alert("Please enter valid Email Id");
			frmEnquiry.txtEmail.focus();
			return false;
	}
	
	if(frmEnquiry.txtCompanyName.value=="")
	{
		alert("Please enter the company name");
		frmEnquiry.txtCompanyName.focus();
		return false;
	}
	if(frmEnquiry.txtNumber.value=="")
	{
		alert("Please enter the access code");
		frmEnquiry.txtNumber.focus();
		return false;
	}
	frmEnquiry.submit();
}

var emailfilter=/^\w+[\+\.\w-]*@([\w-]+\.)*\w+[\w-]*\.([a-z]{2,4}|\d+)$/i
function checkmail(eid)
{
	return emailfilter.test(eid)
}
