function checkForm(theform){
cht = 0;
cht2 = 0;
var msg = "Please fill out all\nthe fields before submitting.";

for (x = 0; x < theform.elements.length; x++){
   var el = theform.elements[x];
   if (el.id == 'need') {
         if (el.value == ''){
            //alert(msg);
            el.className='formError';
            cht = 1;
            }else{
			el.className='formOK'; 
			}
       }

} 

if (cht == 1){
alert(msg);
return false;
}else{
return true;	   
}

}
