    function formCheck()
    {
      var spName,spPhone,spEmail,spEchk1,spEchk2;
      var nom2,nom,nomTitle,nomComp,nomPhone,nomEmail,nomEchk1,nomEchk2,nomBirthday,nomSummary;
      var pattern1 = /\d{10}/;
      var pattern2 = /\d{1,2}[/-]\d{1,2}[/-]\d{4}/;
      var patt1,patt2,patt3,b1,c1,a2,b2,c2,a3,b3,c3,a4,b4,c4,a5,b5,c5,a6,b6,c6,a7,b7,c7,a8,b8,c8,a9,b9,c9,a10,b10,c10;

      patt1 = new RegExp("\'");
      patt2 = new RegExp("\;");
      patt3 = new RegExp("\-{2}");

      spName=document.nomForm.sponName.value;
      if (spName == ""){
        alert("Please enter your name.");
        return false;
      }
      b1 = spName.match(patt2);
      c1 = spName.match(patt3);
      if (b1 != null) {
        alert ("Please enter your name with no semicolons.");
        return false;
      }
      if (c1 != null) {
        alert ("Please enter your name with no dashes.");
        return false;
      }
      spPhone=document.nomForm.sponPhone.value;
      if (spPhone == ""){
        alert("Please enter your phone#.");
        return false;
      }
      a2 = spPhone.match(patt1);
      b2 = spPhone.match(patt2);
      c2 = spPhone.match(patt3);
      if (a2 != null) {
        alert ("Please enter your phone# with no apostrophes.");
        return false;
      }
      if (b2 != null) {
        alert ("Please enter your phone# with no semicolons.");
        return false;
      }
      if (c2 != null) {
        alert ("Please enter your phone# with no dashes.");
        return false;
      }
      var res = spPhone.match(pattern1);
      if (res == null){
        alert(" Please enter your 10-digit phone# with no spaces or non-numeric characters.");
        return false;
      }
      if (spPhone.length > 10){
        alert("Please enter your 10-digit phone# with no spaces or non-numeric characters.");
        return false;
      }
      spEmail=document.nomForm.sponEmail.value;
      spEchk1=document.nomForm.sponEmail.value.indexOf('@');
      spEchk2=document.nomForm.sponEmail.value.indexOf('.');
      if (spEmail == ""){
        alert("Please enter your e-mail address.");
        return false;
      }
      else if (spEchk1 == '-1'){
        alert("Please enter a valid e-mail address for yourself.");
        return false;
      }
      else if (spEchk2 == '-1'){
        alert("Please enter a valid e-mail address for yourself.");
        return false;
      }
      a3 = spEmail.match(patt1);
      b3 = spEmail.match(patt2);
      c3 = spEmail.match(patt3);
      if (a3 != null) {
        alert ("Please enter your e-mail address with no apostrophes.");
        return false;
      }
      if (b3 != null) {
        alert ("Please enter your e-mail address with no semicolons.");
        return false;
      }
      if (c3 != null) {
        alert ("Please enter your e-mail address with no dashes.");
        return false;
      }
      nom=document.nomForm.nominee.value;
      if (nom == ""){
        alert("Please enter the name of your nominee.");
        return false;
      }
      nom2=nom.length;
 
      if (nom2 < 3){
        
        return false;
      }
  
      b4 = nom.match(patt2);
      c4 = nom.match(patt3);
      if (b4 != null) {
        alert ("Please enter the nominee's name with no semicolons.");
        return false;
      }
      if (c4 != null) {
        alert ("Please enter the nominee's name with no dashes.");
        return false;
      }
      nomTitle=document.nomForm.nomTitle.value;
      if (nomTitle == ""){
        alert("Please enter your nominee's job title.");
        return false;
      }
      a5 = nomTitle.match(patt1);
      b5 = nomTitle.match(patt2);
      c5 = nomTitle.match(patt3);
      if (a5 != null) {
        alert ("Please enter the nominee's title with no apostrophes.");
        return false;
      }
      if (b5 != null) {
        alert ("Please enter the nominee's title with no semicolons.");
        return false;
      }
      if (c5 != null) {
        alert ("Please enter the nominee's title with no dashes.");
        return false;
      }
      nomComp=document.nomForm.nomCompany.value;
      if (nomComp == ""){
        alert("Please enter the name of your nominee's company.");
        return false;
      }
      a6 = nomComp.match(patt1);
      b6 = nomComp.match(patt2);
      c6 = nomComp.match(patt3);
      if (a6 != null) {
        alert ("Please enter the nominee's company name with no apostrophes.");
        return false;
      }
      if (b6 != null) {
        alert ("Please enter the nominee's company name with no semicolons.");
        return false;
      }
      if (c6 != null) {
        alert ("Please enter the nominee's company name with no dashes.");
        return false;
      }
      nomPhone=document.nomForm.nomPhone.value;
      if (nomPhone == ""){
        alert("Please enter your nominee's phone#.");
        return false;
      }
      var res1 = nomPhone.match(pattern1);
      if (res1 == null){
        alert("Please enter your nominee's 10-digit phone# with no spaces or non-numeric characters.")
        return false;
      }
      if (nomPhone.length > 10){
        alert("Please enter a 10-digit phone# with no spaces or non-numeric characters for your nominee.")
        return false;
      }
      a7 = nomPhone.match(patt1);
      b7 = nomPhone.match(patt2);
      c7 = nomPhone.match(patt3);
      if (a7 != null) {
        alert ("Please enter the nominee's phone# with no apostrophes.");
        return false;
      }
      if (b7 != null) {
        alert ("Please enter the nominee's phone# with no semicolons.");
        return false;
      }
      if (c7 != null) {
        alert ("Please enter the nominee's phone# with no dashes.");
        return false;
      }
      nomEmail=document.nomForm.nomEmail.value;
      nomEchk1=document.nomForm.nomEmail.value.indexOf('@');
      nomEchk2=document.nomForm.nomEmail.value.indexOf('.');
      if (nomEmail == ""){
        alert("Please enter your nominee's e-mail address.");
        return false;
      }
      else if (nomEchk1 == '-1'){
        alert("Please enter a valid e-mail address for your nominee.");
        return false;
      }
      else if (nomEchk2 == '-1'){
        alert("Please enter a valid e-mail address for your nominee.");
        return false;
      }
      a8 = nomEmail.match(patt1);
      b8 = nomEmail.match(patt2);
      c8 = nomEmail.match(patt3);
      if (a8 != null) {
        alert ("Please enter the nominee's e-mail address with no apostrophes.");
        return false;
      }
      if (b8 != null) {
        alert ("Please enter the nominee's e-mail address with no semicolons.");
        return false;
      }
      if (c8 != null) {
        alert ("Please enter the nominee's e-mail address with no dashes.");
        return false;
      }
      nomBirthday=document.nomForm.nomBirthday.value;
      if (nomBirthday == ""){
        alert("Please enter your nominee's date of birth.");
        return false;
      }
      var res2 = nomBirthday.match(pattern2);
      if (res2 == null){
        alert("Please enter your nominee's birthdate in the 'mm/dd/yyyy' format.")
        return false;
      }
      if (nomBirthday.length > 10){
        alert("Please enter your nominee's birthdate in the 'mm/dd/yyyy' format with no extra characters.");
        return false;
      }
      a9 = nomBirthday.match(patt1);
      b9 = nomBirthday.match(patt2);
      c9 = nomBirthday.match(patt3);
      if (a9 != null) {
        alert ("Please enter the nominee's birthday with no apostrophes.");
        return false;
      }
      if (b9 != null) {
        alert ("Please enter the nominee's birthday with no semicolons.");
        return false;
      }
      if (c9 != null) {
        alert ("Please enter the nominee's birthday with no dashes.");
        return false;
      }
      nomSummary=document.nomForm.nomSummary.value;
      if (!nomSummary.length){
        alert("Please enter a reason why your nominee should be a winner.");
        return false;
      }
      b10 = nomSummary.match(patt2);
      c10 = nomSummary.match(patt3);
      if (b10 != null) {
        alert ("Please enter the reason for the nomination with no semicolons.");
        return false;
      }
      if (c10 != null) {
        alert ("Please enter the reason for the nomination with no dashes.");
        return false;
      }
      return true;
    }
