var submitted = 0;
function checkFormSubmit() {
    if (submitted) {
        alert("Page already submitted, please wait...");
        return false;
    }
    if (!submitted) {
        submitted = 1;
        return true;
    }
}