function Login(theForm) {
        var theUser=theForm.p1;
        var thePword=theForm.p2;
        var Nums = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_";
        var theUserVal = theUser.value.toUpperCase();
        var thePwordVal = thePword.value.toUpperCase();
        var UserLen = theUserVal.length;
        var PwordLen = thePwordVal.length;
        var theDigit="";
        var soFar="";

        if (theUserVal=="") {
                alert("Please enter a complete User Name before attempting to Login.");
                theUser.focus();
                theUser.select();
                return false;
        }

        if (thePwordVal=="") {
                alert("Please enter a complete Password before attempting to Login.");
                thePword.focus();
                thePword.select();
                return false;
        }

        for (i=0;i<UserLen;i++) {
                theDigit = theUserVal.charAt(i);
                if (Nums.indexOf(theDigit)==-1) {
                        theUser.value=soFar;
                        alert("User Names may not contain  " + theDigit + "'s.  Please enter a valid User Name.");
                        theUser.focus();
                        theUser.select();
                        return false;
                }
                soFar=soFar+theDigit;
        }
        soFar=""
        for (i=0;i<PwordLen;i++) {
                theDigit = thePwordVal.charAt(i);
                if (Nums.indexOf(theDigit)==-1) {
                        thePword.value=soFar;
                        alert("Passwords may not contain  " + theDigit + "'s.  Please enter a valid Password.");
                        thePword.focus();
                        thePword.select();
                        return false;
                }
                soFar=soFar+theDigit;
        }

        theForm.submit();
        return true;
}


function allCaps(theField) {
        theField.value=theField.value.toUpperCase();
}