<!--
function isNum(value)
{ 
	for (i = 0; i < value.length; i++) 
	{
		c = value.charAt(i);
		if ( c < "0"  ||  c > "9" )
			return false;
	}
	return true;
}

function isEmail(string) 
{
   if (!string) return false;
   var iChars = "*|,\":<>[]{}`\';()&$#%";

   for (var i = 0; i < string.length; i++) {
      if (iChars.indexOf(string.charAt(i)) != -1)
         return false;
   }
   return true;
}                      
function isProper(string) 
{
   if (!string) return false;
   var iChars = "*|\\:<>[]{}`/;()@&$#%+~^=";

   for (var i = 0; i < string.length; i++) {
      if (iChars.indexOf(string.charAt(i)) != -1)
         return false;
   }
   return true;
}    

function validator(theForm)
{
var empnum = false;
var payroll= false;

var contact = false;
for(var i=0; i<theForm.Contact.length; i++)
    {
    if(theForm.Contact[i].checked)
      {
        contact= true;
      }
    }

if (contact == "")
  {
   alert("Please choose how you would like to proceed with getting information.");
   return 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.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.Question.value =="")
{
var type="blank";
}
else 
{if  (isProper(theForm.Question.value) == false)

  {

    alert("Please delete special characters from your question.");

   theForm.Question.focus();

    return (false);

  }
}

var maxChar = 1000
    if (theForm.Question.value.length > maxChar) {
        diff=theForm.Question.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.Question.focus();
        return (false);
    }


}

//-->

