function updateTotal (obj) {
  var tot=0, ship=0;
    with (document.form1) {
      if (Report1.checked)
        tot += 14.95;
      if (Report2.checked)
        tot += 14.95;
      if (Report3.checked)
        tot += 14.95;
      if (Report4.checked)
        tot += 15.95;
      if (Report1_ship.checked)
        ship += 6;
      if (Report2_ship.checked)
        ship += 6;
      if (Report3_ship.checked)
        ship += 6;
      if (Report4_ship.checked)
        ship += 6;
     amount.value = tot.toFixed (2);
     if (ship == 0)
	shipping.value = "0.00";
     else
        shipping.value = ship.toFixed (2);
     tot += ship;
     total.value = tot.toFixed (2);
    }
}

function checkArguments() {
 return(true);
}
function isEmpty(str) {
  var str2;
  str2 = str.replace(/^\s+|\s+$/g, '');
  return (str2.length == 0);
}
function packOptional () {
  var str = "";
  with (document.form1) {
    on0.value = "Reports>> ";
    if (Report1.checked)
      str += (Report1.value + " ");
    if (Report1_ship.checked)
      str += "-By Mail "
    if (Report2.checked)
      str += (Report2.value + " ");
    if (Report2_ship.checked)
      str += "-By Mail "
    if (Report3.checked)
      str += (Report3.value + " ");
    if (Report3_ship.checked)
      str += "-By Mail "
    if (Report4.checked)
        str += (Report4.value + " ");
    if (Report4_ship.checked)
      str += "-By Mail "
    str += (" Total Amount: " + total.value);
    str += " Person 1>>";
    if (chart1_name.value)
      str += (" Name: " + chart1_name.value);
    str += " BirthDate: ";
    if (chart1_month.value)
      str += (chart1_month.value);
    if (chart1_day.value)
      str += (" " + chart1_day.value);
    if (chart1_year.value)
      str += (" " + chart1_year.value);
    str += " BirthTime: ";
    if (chart1_hour.value)
      str += (chart1_hour.value);
    if (chart1_minute.value)
      str += (":" + chart1_minute.value);
    if (chart1_am_pm.value)
      str += (" " + chart1_am_pm.value);
    if (notime1.checked)
      str += (" " + notime1.value);
    str += " BirthPlace: ";
    if (chart1_city.value)
      str += (chart1_city.value);
    if (chart1_state.value)
      str += (" " + chart1_state.value);
    if (chart1_country.value)
      str += (" " + chart1_country.value);
    if (chart1_sex.value)
      str += (" Sex: " + chart1_sex.value);
    os0.value = str;
    on1.value = " [Person 2]>>";
    str = "";
    if (chart2_name.value)
      str += (" Name: " + chart2_name.value);
    str += " BirthDate: ";
    if (chart2_month.value)
      str += (chart2_month.value);
    if (chart2_day.value)
      str += (" " + chart2_day.value);
    if (chart2_year.value)
      str += (" " + chart2_year.value);
    str += " BirthTime: ";
    if (chart2_hour.value)
      str += (chart2_hour.value);
    if (chart2_minute.value)
      str += (":" + chart2_minute.value);
    if (chart2_am_pm.value)
      str += (" " + chart2_am_pm.value);
    if (notime2.checked)
      str += (" " + notime2.value);
    str += " BirthPlace: ";
    if (chart2_city.value)
      str += (chart2_city.value);
    if (chart2_state.value)
      str += (" " + chart2_state.value);
    if (chart2_country.value)
      str += (" " + chart2_country.value);
    if (chart2_sex.value)
      str += (" Sex: " + chart2_sex.value);
    if (text_style[0].checked)
     str += (" F/L " + text_style[0].value);
    if (text_style[1].checked)
     str += (" F/L " + text_style[1].value);
    os1.value = str;
  }
}  
function submitHandler(thisform) {
  if (checkArguments ()) {
    packOptional();
    return true;
    }
  else
    return false;
}//submitHandler
