function Check_Administrative_Password()
{
    var pwInput = this.elements[0];
    var pwInputText = pwInput.value;
    var alertMsg;

    if (pwInputText == "")
        alertMsg = "Please type your administrative password in the red blank.";
    else if (pwInputText.search(/ /) >= 0)
        alertMsg = "One or more blanks were found in your administrative password; blanks are not permitted.";
    else if (pwInputText.search(/[^\w]+/) >= 0)
        alertMsg = "Only letters, digits, and the '_' character are permitted in your administrative password.";
    else
        alertMsg = "";

    if (alertMsg == "") return true;

    pwInput.className = "badvalue";
    alert(alertMsg);

    return false;
}


function Submit_Event_Selection()
{
    document.forms[1].submit();
}


function EventResultsHome_Init()
{
    document.forms[1].elements[0].onchange = Submit_Event_Selection;
    document.forms[2].onsubmit = Check_Administrative_Password;
}

