<!--
function checkForm(theForm)
{

 if (theForm.nom_wr_fname.value == "")
  {
    alert("Please enter your first name.");
    theForm.nom_wr_fname.focus();
    return (false);
  }
  
  if (theForm.nom_wr_lname.value == "")
  {
    alert("Please enter your last name.");
    theForm.nom_wr_lname.focus();
    return (false);
  }
 
   if (theForm.nom_wr_comp.value == "")
  {
    alert("Please enter your company or organization.");
    theForm.nom_wr_comp.focus();
    return (false);
  }
 
    if (theForm.nom_wr_phone.value == "")
  {
    alert("Please enter your phone number.");
    theForm.nom_wr_phone.focus();
    return (false);
  }
 
   if (theForm.nom_wr_email.value == "")
  {
    alert("Please enter your email.");
    theForm.nom_wr_email.focus();
    return (false);
  }
  
  invalidChars = " /:,;"
  for (i=0; i<invalidChars.length; i++)
  	badChar = invalidChars.charAt(i)
  	if (document.form1.nom_wr_email.value.indexOf(badChar,0) > -1) {
  		alert ('Your email address contains invalid chars.');
		document.form1.nom_wr_email.focus();
  		return (false);
  		}
  		
  atPos = document.form1.nom_wr_email.value.indexOf("@",1)
  if (atPos == -1) {
  	alert ('Your email address doesn\'t contain \"@\" ');
	document.form1.nom_wr_email.focus();
  	return (false);
  	}
  	
  if (document.form1.nom_wr_email.value.indexOf("@",atPos+1) >	 -1) {
 	alert ('Your email address contains 2 \"@s\" ');
	document.form1.nom_wr_email.focus();
  	return (false);
  	}
  	
  	periodPos = document.form1.nom_wr_email.value.indexOf(".",atPos)
  	if (periodPos == -1) {
  		alert ('Your email address doesn\'t contain \".\" ');
		document.form1.nom_wr_email.focus();
		return (false);
  	}
  
  if (periodPos +2 > document.form1.nom_wr_email.value.length) {
		alert ('Your email address is incorrect. ');
		document.form1.nom_wr_email.focus();
		return (false);
	}

   if (theForm.nom_fname.value == "")
  {
    alert("Please enter the nominee's first name.");
    theForm.nom_fname.focus();
    return (false);
  }
  
  if (theForm.nom_lname.value == "")
  {
    alert("Please enter the nominee's last name.");
    theForm.nom_lname.focus();
    return (false);
  }
 
   if (theForm.nom_comp.value == "")
  {
    alert("Please enter the nominee's company or organization.");
    theForm.nom_comp.focus();
    return (false);
  }
 
    if (theForm.nom_phone.value == "")
  {
    alert("Please enter the nominee's phone number.");
    theForm.nom_phone.focus();
    return (false);
  }
 
   if (theForm.nom_email.value == "")
  {
    alert("Please enter the nominee's email.");
    theForm.nom_email.focus();
    return (false);
  }
  
  invalidChars = " /:,;"
  for (i=0; i<invalidChars.length; i++)
  	badChar = invalidChars.charAt(i)
  	if (document.form1.nom_email.value.indexOf(badChar,0) > -1) {
  		alert ('Nominee\'s email address contains invalid chars.');
		document.form1.nom_email.focus();
  		return (false);
  		}
  		
  atPos = document.form1.nom_email.value.indexOf("@",1)
  if (atPos == -1) {
  	alert ('Nominee\'s email address doesn\'t contain \"@\" ');
	document.form1.nom_email.focus();
  	return (false);
  	}
  	
  if (document.form1.nom_email.value.indexOf("@",atPos+1) >	 -1) {
 	alert ('Nominee\'s email address contains 2 \"@s\" ');
	document.form1.nom_email.focus();
  	return (false);
  	}
  	
  	periodPos = document.form1.nom_email.value.indexOf(".",atPos)
  	if (periodPos == -1) {
  		alert ('Nominee\'s email address doesn\'t contain \".\" ');
		document.form1.nom_email.focus();
		return (false);
  	}
  
  if (periodPos +2 > document.form1.nom_email.value.length) {
		alert ('Nominee\'s email address is incorrect. ');
		document.form1.nom_email.focus();
		return (false);
	}
  
     if (theForm.nom_why.value == "")
  {
    alert("Please tell us why you think this nominee exemplifies leadership in the selected category.");
    theForm.nom_why.focus();
    return (false);
  }

     if (theForm.nom_example.value == "")
  {
    alert("Please give an example of how this nominee showed his/her leadership skills.");
    theForm.nom_example.focus();
    return (false);
  }
  


var char_count = theForm.nom_why.value.length;
var fullStr = theForm.nom_why.value + " ";
var initial_whitespace_rExp = /^[^A-Za-z0-9]+/gi;
var left_trimmedStr = fullStr.replace(initial_whitespace_rExp, "");
var non_alphanumerics_rExp = rExp = /[^A-Za-z0-9]+/gi;
var cleanedStr = left_trimmedStr.replace(non_alphanumerics_rExp, " ");
var splitString = cleanedStr.split(" ");
var word_count = splitString.length -1;


if (word_count > 300) 
 {
    alert("Please limit your answer to \'Why do you think...\' to 300 words.");
    theForm.nom_why.focus();
    return (false);
  }
  
var char_count = theForm.nom_example.value.length;
var fullStr = theForm.nom_example.value + " ";
var initial_whitespace_rExp = /^[^A-Za-z0-9]+/gi;
var left_trimmedStr = fullStr.replace(initial_whitespace_rExp, "");
var non_alphanumerics_rExp = rExp = /[^A-Za-z0-9]+/gi;
var cleanedStr = left_trimmedStr.replace(non_alphanumerics_rExp, " ");
var splitString = cleanedStr.split(" ");
var word_count = splitString.length -1;


if (word_count > 300) 
 {
    alert("Please limit your example to 300 words.");
    theForm.nom_example.focus();
    return (false);
  }

 
    theForm.Submit.value="Processing...";
    theForm.Submit.disabled = true;
	
    return (true);
	
 
}


