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