function ChkForm(theForm){
if(theForm.cboCats.selectedIndex < 1){
 	alert("Please select the category of your testimonial.");
	theForm.cboCats.focus();
	return(false);
}
 if(theForm.stxtReview.value == ""){
 	alert("Please provide your testimonial.");
	theForm.stxtReview.focus();
	return(false);
 }
 if(theForm.txtRName.value == ""){
 	alert("Please provide your name.");
	theForm.txtRName.focus();
	return(false);
 }
 if(theForm.txtRTitle.value == ""){
 	alert("Please provide your Title or position.");
	theForm.txtRTitle.focus();
	return(false);
 }
 if(theForm.txtREmail.value == ""){
 	alert("Please provide your email address so may send you a confirmation email.");
	theForm.txtREmail.focus();
	return(false);
 }
var EMValue = theForm.txtREmail.value;	
	var delim1 = EMValue.indexOf("@");
	var delim2 = EMValue.indexOf(".");
	if (delim1 == -1) {
		alert("Please fix your email address.");
		theForm.txtREmail.focus();
		return (false);
	}		
	if (delim2 == -1) {
		alert("Please fix your email address.");
		theForm.txtREmail.focus();
		return (false);
	}		
	if ((delim2 - delim1) < 3) {
		alert("Please fix your email address.");
		theForm.txtREmail.focus();
		return (false);
	}

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789@.-_";
  var checkStr = theForm.txtREmail.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("Your EMail Address contains characters we don't recognize.");
    theForm.txtREmail.focus();
    return (false);
  }
	return(true)
}

