function Form1_Validator(theForm)
{
  if (!theForm.Agree.checked)
  {
    alert("Please agree to the terms before proceeding.");
    theForm.Agree.focus();
    return (false);
  }
  if (theForm.item_name.value == "")
  {
    alert("Please enter a value for the \"URL\" field.");
    theForm.URL.focus();
    return (false);
  }
  if (theForm.URL.value.length < 10)
  {
    alert("Please enter at least 10 characters in the \"URL\" field.");
    theForm.URL.focus();
    return (false);
  }
  if (theForm.URL.value.length > 110)
  {
    alert("Please enter at most 100 characters in the \"URL\" field.");
    theForm.URL.focus();
    return (false);
  }
  theForm.item_name.value = theForm.item_name.value + " for " + theForm.URL.value;
  if (theForm.choice[0].checked)
  {
    theForm.item_name.value = "10,000 unique visitors for " + theForm.URL.value;
    theForm.item_number.value = "10";
    theForm.amount.value = "39.95";
  }
  if (theForm.choice[1].checked)
  {
    theForm.item_name.value = "25,000 unique visitors for " + theForm.URL.value;
    theForm.item_number.value = "25";
    theForm.amount.value = "99.95";
  }
  if (theForm.choice[2].checked)
  {
    theForm.item_name.value = "50,000 unique visitors for " + theForm.URL.value;
    theForm.item_number.value = "50";
    theForm.amount.value = "179.95";
  }
  if (theForm.choice[3].checked)
  {
    theForm.item_name.value = "100,000 unique visitors for " + theForm.URL.value;
    theForm.item_number.value = "100";
    theForm.amount.value = "299.95";
  }
   if (theForm.choice[5].checked)
  {
    theForm.item_name.value = "1,000 unique visitors for " + theForm.URL.value;
    theForm.item_number.value = "110";
    theForm.amount.value = "9.95";
  }
  
  return (true);
}
 
