function inputFileChanged(a) {
 var o = document.options;
 var b = o.DataOption[0].checked;
 //
 enableField(o.userfile, b);
 //
// o.bootstrap.value="0";
 //
// o.correction.value="1";
}

function backboneTreeChanged() {
 var o = document.options;
 var b = o.BackboneTreeOption.checked;
 //
 enableField(o.BackboneTree, b);
}

function outgroupChanged() {
 var o = document.options;
 var b = o.OutgroupOption.checked;
 //
 enableField(o.Outgroup, b);
}

function validate() {
 var o = document.options;
 var msg="";
 //
 if (o.DataOption[0].checked)
   msg += checkTextFile(o.userfile.value, "file");
 //
 msg += checkNumber(o.bootstrap, "Bootstrap threshold");
 //
 msg += checkNumber(o.correction, "Correction 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;
}
