<!--
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("Sorry, not a correct email address")
  return false
 }
 if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
  alert("Sorry, not a correct email address")
  return false
 }
 if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
  alert("Sorry, not a correct email address")
  return false
 }
  if (str.indexOf(at,(lat+1))!=-1){
   alert("Sorry, not a correct email address")
   return false
  }
  if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
   alert("Sorry, not a correct email address")
   return false
  }
  if (str.indexOf(dot,(lat+2))==-1){
   alert("Sorry, not a correct email address")
   return false
  }
  if (str.indexOf(" ")!=-1){
   alert("Sorry, not a correct email address")
   return false
  }
  return true    
}
function ValfrmContact()
{
var emailID=document.frmContact.txtEmail
if ((document.frmContact.txtName.value==""))
{
	alert("Please enter your name");
	document.frmContact.txtName.focus();
	document.frmContact.txtName.style.borderColor="#f1aa11";
	return (false);
}
if ((emailID.value==null)||(emailID.value==""))
{
	alert("Please enter your email address")
	emailID.focus()
	document.frmContact.txtEmail.style.borderColor="#f1aa11";
	return false
}
if (echeck(emailID.value)==false)
{
	emailID.value=""
	emailID.focus()
	document.frmContact.txtEmail.style.borderColor="#f1aa11";
	return false
}
if ((document.frmContact.txtDetails.value==""))
{
	alert("Please enter your enquiry details")
	document.frmContact.txtDetails.focus();
	document.frmContact.txtDetails.style.borderColor="#f1aa11";
	return false
}
return (true);
}
//-->
