﻿var errlabel;

// check login form
function checkForm(theForm) {
    var why = "";
    errlabel = document.getElementById("ctl00_main_error");
    why += isEmpty(theForm.txtUserId.value);
    why += isEmpty(theForm.password.value);
    return why == "";
}

// non-empty textbox
function isEmpty(strng) {
    var error = "";
    if (strng.length == 0) {
        error = "The mandatory text area has not been filled in.\n"
    }
    return error;
}

// check listserv_form value
function CLS(theForm) {
   return !(theForm.skdb_email.value == "your e-mail address");
}
function CLS2(theForm) {
   return !(theForm.steornLab_email.value == "your e-mail address");
}
