<!--
function isEmail( strValue) {
    var objRegExp = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
    return objRegExp.test(strValue);
}
// -->

<!--
function frm_validate(theForm) {

  if (theForm.name.value == "")
  {
    alert("Please enter your first name.");
    theForm.name.focus();
    return (false);
  }

  if (theForm.surname.value == "")
  {
    alert("Please enter your surname.");
    theForm.surname.focus();
    return (false);
  }

   myOption = -1;
	for (i=theForm.sex.length-1; i > -1; i--) {
	if (theForm.sex[i].checked) {
	myOption = i; i = -1;
	}
	}
	if (myOption == -1) {
	alert("Please enter your gender, male or female.");
	return false;
	}

  if (theForm.email.value == "")
  {
    alert("Please enter an email address.");
    theForm.email.focus();
    return (false);
  }

   if(!isEmail(theForm.email.value))
  {
    alert("Please enter a valid email address");
    theForm.email.focus();
    return (false);
  }

  if (theForm.telephone.value == "")
  {
    alert("Please enter a value for the \"telephone\" field.");
    theForm.telephone.focus();
    return (false);
  }

  if (theForm.telephone.value.length < 10)
  {
    alert("Please enter at least 10 characters in the \"telephone\" field.");
    theForm.telephone.focus();
    return (false);
  }

  if (theForm.telephone.value.length > 25)
  {
    alert("Please enter at most 25 characters in the \"telephone\" field.");
    theForm.telephone.focus();
    return (false);
  }

  var checkOK = "0123456789-() \t\r\n\f";
  var checkStr = theForm.telephone.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }

  }
  if (!allValid)
  {
    alert("Please enter only digit, whitespace and \"()\" characters in the \"telephone\" field.");
    theForm.telephone.focus();
    return (false);
  }

return true ;
}
//-->

