numberoftimes = 0;

function onlyonce() {
//
//  Keep the user from pressing submit more than once
//
numberoftimes += 1;

  if (numberoftimes > 1) { 
    var themessage = "Please be patient.  You have already submitted this form.  Pressing submit multiple times will result in your account being billed multiple times.  You will receive a response momentarily.";
    if (numberoftimes == 3) {
      themessage = "DO NOT PRESS SUBMIT MULTIPLE TIMES!!!  YOUR ACCOUNT WILL BE BILLED EACH TIME YOU PRESS SUBMIT!!!  Processing may take up to one minute.";
    }
    alert(themessage);
    return false; 
  } 
  else {
    return true;
  }
}

