function checkMarketDate(theForm)
{

  if (theForm.Market_Date.selectedIndex == 0)
  {
    alert("The first \"Market Date\" option is not a valid selection. Please choose one of the other options.");
    theForm.Market_Date.focus();
    return (false);
  }
  return (true);
}

function validateRegistration(theForm)
{

  if (theForm.Store_Name.value == "")
  {
    alert("Please enter a value for the \"Store Name\" field.");
    theForm.Store_Name.focus();
    return (false);
  }

  if (theForm.Store_Name.value.length < 5)
  {
    alert("Please enter at least 5 characters in the \"Store Name\" field.");
    theForm.Store_Name.focus();
    return (false);
  }

  if (theForm.Store_Name.value.length > 62)
  {
    alert("Please enter at most 62 characters in the \"Store Name\" field.");
    theForm.Store_Name.focus();
    return (false);
  }

  if (theForm.Position.selectedIndex == 0)
  {
    alert("The first \"Position\" option is not a valid selection.  Please choose one of the other options.");
    theForm.Position.focus();
    return (false);
  }

  if (theForm.Address.value == "")
  {
    alert("Please enter a value for the \"Address\" field.");
    theForm.Address.focus();
    return (false);
  }

  if (theForm.Address.value.length < 10)
  {
    alert("Please enter at least 10 characters in the \"Address\" field.");
    theForm.Address.focus();
    return (false);
  }

  if (theForm.Address.value.length > 62)
  {
    alert("Please enter at most 62 characters in the \"Address\" field.");
    theForm.Address.focus();
    return (false);
  }

  if (theForm.Phone.value == "")
  {
    alert("Please enter a value for the \"Phone\" field.");
    theForm.Phone.focus();
    return (false);
  }

  if (theForm.Phone.value.length < 10)
  {
    alert("Please enter at least 10 characters in the \"Phone\" field.");
    theForm.Phone.focus();
    return (false);
  }

  if (theForm.Phone.value.length > 25)
  {
    alert("Please enter at most 25 characters in the \"Phone\" field.");
    theForm.Phone.focus();
    return (false);
  }

  if (theForm.Email.value == "")
  {
    alert("Please enter a value for the \"Email\" field.");
    theForm.Email.focus();
    return (false);
  }

  if (theForm.Email.value.length < 5)
  {
    alert("Please enter at least 5 characters in the \"Email\" field.");
    theForm.Email.focus();
    return (false);
  }

  if (theForm.Email.value.length > 70)
  {
    alert("Please enter at most 70 characters in the \"Email\" field.");
    theForm.Email.focus();
    return (false);
  }

  if (theForm.Badge_1.value == "")
  {
    alert("Please enter a value for the \"Badge 1\" field.");
    theForm.Badge_1.focus();
    return (false);
  }

  if (theForm.Badge_1.value.length < 5)
  {
    alert("Please enter at least 5 characters in the \"Badge 1\" field.");
    theForm.Badge_1.focus();
    return (false);
  }

  if (theForm.Badge_1.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"Badge 1\" field.");
    theForm.Badge_1.focus();
    return (false);
  }
  return (true);
}
