function inputFileChanged(a) {
 var o = document.options;
 var b = o.DataOption[0].checked;
 //
 enableField(o.userfile, b);
 //
 o.threshold.value="70";
}

function startingChanged(a) {
 var o = document.options;
 var b = o.StartingTreeOption.checked;
 //
 enableField(o.StartingTree, b);
}

function validate() {
 var o = document.options;
 var msg="";
 //
 if (o.DataOption[0].checked)
   msg += checkTextFile(o.userfile.value, "file");
 //
 msg += checkNumber(o.threshold, "Threshold");
 //
// msg += checkEmpty(o.Name, "name");
 //
 msg += checkEmail(o.Email, " to get the results");
 //
 if (!o.DataOSOption[0].checked && !o.DataOSOption[1].checked && !o.DataOSOption[2].checked)
   msg += "You have to choose the file format used by your computer.";
 //
 if (msg) {
  msg += "\n\nPlease make your corrections and re-submit the form.";
  alert (msg);
  return false;
 }
 else
  return true;
}
