function Form2_Validator(theForm){
if (((theForm.city.value != '') && (theForm.state.value == '') && (theForm.zip.value != ''))) {
theForm.city.value = '';
}
if (((theForm.city.value != '') && (theForm.state.value != '') && (theForm.zip.value != ''))) {
theForm.city.value = '';
theForm.state.value = '';
}
if (theForm.zip.value == ''){
if ((theForm.city.value == '') && (theForm.state.value == '')){
   alert('Please enter a city and state \"OR\" zip code.');
   theForm.city.focus();
   return (false);}
if ((theForm.city.value == '') && (theForm.state.value != '')){
   alert('Please enter a city \"OR\" zip code.');
   theForm.city.focus();
   return (false);}
if ((theForm.city.value != '') && (theForm.state.value == '')){
   alert('Please enter a state \"OR\" zip code.');
   theForm.city.focus();
   return (false);}}
if ((theForm.city.value == '') && (theForm.state.value == '')) {
if (theForm.zip.value == ''){
   alert('Please enter a city and state \"OR\" zip code.');
   theForm.zip.focus();
   return (false);}
// only allow numbers to be entered in bday3
var checkOK = "0123456789";
var checkStr = theForm.zip.value;
var allValid = true;
var allNum = "";
for (i = 0;  i < checkStr.length;  i++){
  ch = checkStr.charAt(i);
  for (j = 0;  j < checkOK.length;  j++)
    if (ch == checkOK.charAt(j))
      break;
    if (j == checkOK.length){
      allValid = false;
      break;}
    if (ch != ",")
      allNum += ch;}
if (!allValid){
  alert("Please enter only digit characters in the \"Zip Code\" field.");
  theForm.zip.focus();
  return (false);}}
return (true);}