防止重复提交

//prevent to submit repeatedly
//add by Jerry Gao 3/5/2007
//AR47148
var submit_status = false;
function check_repeated() {
    if (submit_status) {
      return false;
    } else {
      submit_status = true;
      return true;
    }
}

function toNextPage(){  
    if(check_repeated()){
  document.body.style.cursor = "wait";
  document.selectDisForm.submit();
  return true;
 }else{
  return false;
 }
}

//end

你可能感兴趣的:(防连打)