//======================================================================
//DESC: validation & Field Edits for Functions for contact form
//
//PLATFORMS: NAV 3.0 IE 4.0
//
//USAGE NOTES: 
//
// Modifcations

/* ======================================================================
FUNCTION: Form_validator - Form validation for internal quotes

INPUT:		form object 
				
RETURNS: boolean		

DESC:							
====================================================================== */
  
function Form_Validator(objForm)
{

   var typeresult=objForm.selRadioType.value;

   if (objForm.selRadioType.value ==0 || (isWhitespace(objForm.selRadioType.value)) ) {
 		alert("Please Select a Feedback Type");
		objForm.StationID.focus();
		return (false);
	}

//alert(objForm.StationID.options[objForm.StationID.selectedIndex].text);
  if (objForm.StationID.selectedIndex < 1)
  {
    alert("Please select one of the Location Code options.");
    objForm.StationID.focus();
    return (false);
  }
   objForm.hStationDescription.value = objForm.StationID.options[objForm.StationID.selectedIndex].text;
   

   if (isWhitespace(objForm.FirstName.value)) {
 		alert("Please a value in the Name Field ");
		objForm.FirstName.focus();
		return (false);
	}	
	
	if (isWhitespace(objForm.LastName.value)) {
 		alert("Please a value in the Last Name Field ");
		objForm.LastName.focus();
		return (false);
	}
	
	if (isWhitespace(objForm.Email.value)) {
 		alert("Please a value in the eMail Field ");
		objForm.Email.focus();
		return (false);
	}

  return (true);

}

