<!--

function validator(theForm)
{
var empnum = false;
var payroll= false;


  if (theForm.Name.value == "")

  {

    alert("Please enter your name.");

    theForm.Name.focus();

    return (false);

  }

	if (theForm.Title.value == "")
  {

    alert("Please enter your title.");

    theForm.Title.focus();

    return (false);
  }

	 if (theForm.Organization.value == "")

  {

    alert("Please enter your organization.");

    theForm.Organization.focus();

    return (false);

  }

  if (theForm.State.selectedIndex == 0) 
   {
    alert('Please select your state.');
	theForm.State.focus();
    return false;
	}
	
 if (theForm.Country.selectedIndex == 0) 
   {
    alert('Please select your country.');
	theForm.Country.focus();
    return false;
	}	
	
    if ((theForm.Email.value.indexOf ('@',0) == -1) || (theForm.Email.value == ""))
  {
    alert("Please verify your email address.");
   
    theForm.Email.focus();
 
    return (false);
  } 
	 
	  if (theForm.Phonearea.value == "")
 
  {
 
    alert("Please enter your area code.");
 
    theForm.Phonearea.focus();
 
    return (false);
 
  }
 if (((theForm.Phonearea.value / theForm.Phonearea.value) != 1) && (theForm.Phonearea.value != 0)) 
    {
    alert('Please enter only a number into this text box');
    theForm.Phonearea.focus();
    return (false);
    }
    
     if (theForm.phone.value == "")
 
  {
 
    alert("Please enter your phone number.");
 
    theForm.phone.focus();
 
    return (false);
 
  }
     if (((theForm.phone.value / theForm.phone.value) != 1) && (theForm.phone.value != 0)) 
    {
    alert('Please enter only a number into this text box');
    theForm.phone.focus();
    return (false);
    }
     if (theForm.phone2.value == "")
 
  {
 
    alert("Please enter your phone number.");
 
    theForm.phone2.focus();
 
    return (false);
 
  }


  if (theForm.Employees.value == "")

  {

    alert("Please enter the number of employees in your organization.");

    theForm.Employees.focus();

    return (false);

  }

if (theForm.Comments.value == "")

  {

    alert("Please enter your comment or question.");

    theForm.Comments.focus();

    return (false);

  }

  var maxChar = 255
    if (theForm.Comments.value.length > maxChar) {
        diff=theForm.Comments.value.length - maxChar;
        if (diff>1)
            diff = diff + " characters";
        else
            diff = diff + " character";
            
        alert("This field is limited to " + maxChar + " characters\n" + "Please reduce the text by " + diff);
        theForm.Comments.focus();
        return (false);
    }
	return true;
}

//-->