var CancelSubmit = false function changeBox(cbox) { box = document.getElementById(cbox); box.checked = true; } function page_submit() { if (!CancelSubmit) { CancelSubmit = true; if (typeof (ValidatorOnSubmit) == 'function') { return ValidatorOnSubmit(); } else { return true; } } alert("Recherche en cours, veuillez attendre.") CancelSubmit = true; return false; } function link_submit() { if (!CancelSubmit) { if (typeof (Page_ClientValidate) != 'function' || Page_ClientValidate()) { CancelSubmit = true; } return true; } alert("Recherche en cours, veuillez attendre.") CancelSubmit = true; return false; }