function disableIt(obj) {
  if (document.getElementById) {
    // this is the way the standards work
    document.getElementById(obj).disabled = true;
    document.getElementById(obj).value="Please Wait...";
  }
  else if (document.all) {
    // this is the way old msie versions work
    document.all[obj].disabled = true;
    document.all[obj].value="Please Wait...";
  }
  else if (document.layers) {
    // this is the way nn4 works
    document.layers[obj].disabled = true;
    document.layers[obj].value="Please Wait...";
  }
}

function disableForm() {
  disableIt('FormSubmit');
}
