
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function callbtnSave()
{
	if (frmInquiry.txtCname.value=='')
		{
		alert("Please enter your Comany Name");
		frmInquiry.txtCname.focus();
		return false;
		}
	if (frmInquiry.txtName.value=='')
		{
		alert("Please enter your Full Name");
		frmInquiry.txtName.focus();
		return false;
		}
	if(!checkEmail()){frmInquiry.txtemail.focus();
	return false;
		}
		frmInquiry.htext.value="send email";
		frmInquiry.submit();
		}
	var testresults
function checkEmail()
		{
		//alert("caled");
		var str=document.frmInquiry.txtEmail.value

		var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
		if (filter.test(str))
		testresults=true
		else{
		alert("Please enter a valid email address!");
		testresults=false;
		}
return (testresults)
}

function btnSave_onclick() {
	//alert("dhaval");
	return callbtnSave();

}
