
<!--
function validator(theForm)
{
var paperless = false;	
var employees = false;
var rate = false;	
var selfservice = false;	
var access = false;
	
for(var i=0; i<theForm.PaperlessInitiatives.length; i++)
    {
    if(theForm.PaperlessInitiatives[i].checked)
	{
     paperless = true;
     }
   }

if (paperless == "")

{

 alert("Please answer question #1.");

return false;

} 


for(var i=0; i<theForm.Employees.length; i++)
    {
    if(theForm.Employees[i].checked)
	{
     employees = true;
     }
   }

if (employees == "")

{

 alert("Please answer question #2.");

return false;

} 



for(var i=0; i<theForm.DDRate.length; i++)
    {
    if(theForm.DDRate[i].checked)
	{
     rate = true;
     }
   }

if (rate == "")

{

 alert("Please answer question #3.");

return false;

} 




for(var i=0; i<theForm.ESS.length; i++)
    {
    if(theForm.ESS[i].checked)
	{
     selfservice = true;
     }
   }

if (selfservice == "")

{

 alert("Please answer question #4.");

return false;

} 


for(var i=0; i<theForm.ComputerAccess.length; i++)
    {
    if(theForm.ComputerAccess[i].checked)
	{
     access = true;
     }
   }

if (access == "")

{

 alert("Please answer question #5.");

return false;

} 


  if (document.theForm.Results.checked == true)
    {
     	 if (theForm.Name.value == "")

 		 {

   			 alert("In order to receive the results of this survey, you must enter your name.");
	
   			 theForm.Name.focus();

    		 return (false);

		  }
	
		if (theForm.Organization.value == "")
 		 {

   			 alert("In order to receive the results of this survey, you must enter your organization.");

   			 theForm.Organization.focus();

   			 return (false);

  		}
		if ((theForm.Email.value.indexOf ('@',0) == -1) || (theForm.Email.value == ""))
		{
   			 alert("In order to receive the results of this survey, you must enter your e-mail address. Please verify the correct format.");
   
   			 theForm.Email.focus();
 
  			  return (false);
  		} 
	 
	 
	 
    }


 
}



//-->
