<!--
function echeck(str)
{
  var at="@"
  var dot="."
  var lat=str.indexOf(at)
  var lstr=str.length
  var ldot=str.indexOf(dot)
  if (str.indexOf(at)==-1){
     alert("Not a valid email address")
     return false
  }
  if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
     alert("Not a valid email address")
     return false
  }
  if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
     alert("Not a valid email address")
     return false
  }
   if (str.indexOf(at,(lat+1))!=-1){
      alert("Not a valid email address")
      return false
   }
   if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
      alert("Not a valid email address")
      return false
   }
   if (str.indexOf(dot,(lat+2))==-1){
      alert("Not a valid email address")
      return false
   }
   if (str.indexOf(" ")!=-1){
      alert("Not a valid email address")
      return false
   }
   return true          
}
function ValidateForm()
{
var emailID=document.frmQuoteRequest.txtEmail
if (document.frmQuoteRequest.txtFirstName.value=="")
{
	alert("Please enter your first name");
	document.frmQuoteRequest.txtFirstName.focus();
	document.frmQuoteRequest.txtFirstName.style.borderColor="#a30046";
	return (false);
}
if (document.frmQuoteRequest.txtLastName.value=="")
{
	alert("Please enter your last name");
	document.frmQuoteRequest.txtLastName.focus();
	document.frmQuoteRequest.txtLastName.style.borderColor="#a30046";
	return (false);
}
if (document.frmQuoteRequest.txtTelephone.value =="")
{
	alert("Please enter your telephone number");
	document.frmQuoteRequest.txtTelephone.focus();
	document.frmQuoteRequest.txtTelephone.style.borderColor="#a30046";
	return false;
}
if ((emailID.value==null)||(emailID.value==""))
{
	alert("Please enter your email address")
	emailID.focus()
	document.frmQuoteRequest.txtEmail.style.borderColor="#a30046";
	return false
}
if (echeck(emailID.value)==false)
{
	emailID.value=""
	emailID.focus()
	document.frmQuoteRequest.txtEmail.style.borderColor="#a30046";
	return false
}
if (document.frmQuoteRequest.txtType.value =="")
{
	alert("Please select the type of enquiry");
	document.frmQuoteRequest.txtType.focus();
	document.frmQuoteRequest.txtType.style.borderColor="#a30046";
	return false;
}
if (document.frmQuoteRequest.txtEnquiry.value =="")
{
	alert("Please enter your enquiry / extra details");
	document.frmQuoteRequest.txtEnquiry.focus();
	document.frmQuoteRequest.txtEnquiry.style.borderColor="#a30046";
	return false;
}
return (true);
}
//-->
