<!--

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;


  
		if (document.theForm.Name.value=="" ||  (isProper(document.theForm.Name.value) == false))
  {
    alert("Please enter your name.  Characters only.");
    document.theForm.Name.focus();
    return (false);
  }
				if (document.theForm.Title.value=="" ||  (isProper(document.theForm.Title.value) == false))
  {
    alert("Please enter your Title.  Characters only.");
    document.theForm.Title.focus();
    return (false);
  }
		
	 if (document.theForm.Organization.value == "" || (isProper(document.theForm.Organization.value) == false))

  {

    alert("Please enter the name of your Organization.  Alphanumeric only.");

    document.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 (document.theForm.Phonearea.value=="" || !isNum(document.theForm.Phonearea.value)) 
	{
		alert("Please enter your area code.");
		document.theForm.Phonearea.focus();
		return false;
	}
	
		if (document.theForm.Phonearea.value.length < 3)
  {
    alert("Please enter your 3 digit area code.");
    document.theForm.Phonearea.focus();
    return (false);
  }
 
	if (document.theForm.phone.value=="" || !isNum(document.theForm.phone.value)) 
	{
		alert("Please enter your phone number.");
		document.theForm.phone.focus();
		return false;
	}
	
		if (document.theForm.phone.value.length < 3)
  {
    alert("Please enter the first 3 digits of your phone number.");
    document.theForm.phone.focus();
    return (false);
  }
				
				 if (document.theForm.phone2.value=="" || !isNum(document.theForm.phone2.value)) 
	{
		alert("Please enter your phone number.");
		document.theForm.phone2.focus();
		return false;
	}	
	
		if (document.theForm.phone2.value.length < 4)
  {
    alert("Please enter the last 4 digits of your phone number.");
    document.theForm.phone2.focus();
    return (false);
  }

for(var i=0; i<theForm.Employees.length; i++)
    {
    if(theForm.Employees[i].checked)
	{
     empnum = true;
     }
   }

if (empnum == "")

{

 alert("Please choose the number of employees in your organization.");

return false;

} 

}

//-->

