/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Justin Barlow | http://www.netlobo.com/ */

function disableSubmit(whichButton) {
  if (document.getElementById) {
    // this is the way the standards work
    document.getElementById(whichButton).disabled = true;
  } else if (document.all) {
    // this is the way old msie versions work
    document.all[whichButton].disabled = true;
  } else if (document.layers) {
    // this is the way nn4 works
    document.layers[whichButton].disabled = true;
  }
}