	function Validate(theForm){
		if (theForm.txtName.value==""){
			document.getElementById("nmsg").innerHTML = "Please provide the Reviewers Name.";
			theForm.txtName.focus();
			return(false);
		}
		if (theForm.txtLcn.value==""){
			document.getElementById("lmsg").innerHTML = "Please provide the Reviewers or Event Location.";
			theForm.txtLcn.focus();
			return(false);
		}

  if (theForm.txtEmail.value ==""){
    document.getElementById("emsg").innerHTML = "Please enter the Email Address.";
    theForm.txtEmail.focus();
    return (false);
  }
  if (theForm.txtEmail.value.length < 5)  {
    document.getElementById("emsg").innerHTML = "Please enter at least 5 characters for the Email Address.";
    theForm.txtEmail.focus();
    return (false);
  }

  	var EMValue = theForm.txtEmail.value;	
	var delim1 = EMValue.indexOf("@");
if (delim1 < 2) {
	document.getElementById("emsg").innerHTML = "Please fix the Email Address.";
	theForm.txtEmail.focus();
    return (false);
}		

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789@.-_";
  var checkStr = theForm.txtEmail.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)  {
    document.getElementById("emsg").innerHTML = "The EMail Address contains characters we don't recognize.";
    theForm.txtEmail.focus();
    return (false);
  }

		if (theForm.cboCat.selectedIndex==0){
			document.getElementById("cmsg").innerHTML = "Please select the Review Category.";
			theForm.cboCat.focus();
			return(false);
		}
		if (theForm.txtEvtName.value==""){
			document.getElementById("wmsg").innerHTML = "Please provide event, video, or presenter you are reviewing.";
			theForm.txtEvtName.focus();
			return(false);
		}
		if (theForm.txtReview.value==""){
			document.getElementById("rmsg").innerHTML = "Please provide your Review.";
			theForm.txtReview.focus();
			return(false);
		}
return(true)
}
