
function Form_Validator(theForm,flag)
{ 
  
  zip = trimWhiteSpace(theForm.strRepZip.value)
  if (zip == "")
  {
    alert("Please enter a value for the \"Zipcode\" field.");
	theForm.strRepZip.focus();
    return (false); 
  } else if ( (zip.length != 5) || (isNaN(zip)) ) {
  	alert("Please enter a 5 digit value for the \"Zipcode\" field.");
	theForm.strRepZip.focus();
    return (false);  
  }
  
  theForm.lngTry.value = flag
  return (true);     
}

