	if (document.images) {
		homeover = new Image
		homeup = new Image
		accessover = new Image
		accessup = new Image
		newsover = new Image
		newsup = new Image
		scheduleover = new Image
		scheduleup = new Image
		classesover = new Image
		classesup = new Image
		howover = new Image
		howup = new Image
		schoolover = new Image
		schoolup = new Image
		formsover = new Image
		formsup = new Image
		adminover = new Image
		adminup = new Image
		admin2over = new Image
		admin2up = new Image
	
		homeover.src = 'images/home-over.gif'
		homeup.src = 'images/home-up.gif'
		accessover.src = 'images/access-over.gif'
		accessup.src = 'images/access-up.gif'	
		newsover.src = 'images/news-over.gif'
		newsup.src = 'images/news-up.gif'	
		scheduleover.src = 'images/schedule-over.gif'
		scheduleup.src = 'images/schedule-up.gif'	
		classesover.src = 'images/classes-over.gif'
		classesup.src = 'images/classes-up.gif'
		howover.src = 'images/how-over.gif'
		howup.src = 'images/how-up.gif'	
		schoolover.src = 'images/school-over.gif'
		schoolup.src = 'images/school-up.gif'	
		formsover.src = 'images/forms-over.gif'
		formsup.src = 'images/forms-up.gif'	
		adminover.src = 'images/admin-over.gif'
		adminup.src = 'images/admin-up.gif'	
		admin2over.src = 'images/admin2-over.gif'
		admin2up.src = 'images/admin2-up.gif'
	}
	else {
		homeover = ""
		homeup = ""
		document.home = ""
		accessover = ""
		accesshomeup = ""
		document.access = ""
		newsover = ""
		newsup = ""
		document.news = ""
		scheduleover = ""
		scheduleup = ""
		document.schedule = ""
		classesoverover = ""
		classesoverup = ""
		document.classesover = ""
		howover = ""
		howhomeup = ""
		document.how = ""
		schoolover = ""
		schoolup = ""
		document.school = ""
		formsover = ""
		formsup = ""
		document.forms = ""
		adminoverover = ""
		adminoverup = ""
		document.adminover = ""
		admin2overover = ""
		admin2overup = ""
		document.admin2over = ""
	}





function FrontPage_Form1_Validator(theForm) {

  if (theForm.FirstName.value == "") {
    alert("Please enter a value for the \"First Name\" field.");
    theForm.FirstName.focus();
    return (false);
  }

  if (theForm.FirstName.value.length > 10) {
    alert("Please enter at most 10 characters in the \"First Name\" field.");
    theForm.FirstName.focus();
    return (false);
  }

  if (theForm.LastName.value == "") {
    alert("Please enter a value for the \"Last Name\" field.");
    theForm.LastName.focus();
    return (false);
  }

  if (theForm.LastName.value.length > 20) {
    alert("Please enter at most 20 characters in the \"Last Name\" field.");
    theForm.LastName.focus();
    return (false);
  }

  if (theForm.Instructor.value == "") {
    alert("Please enter a value for the \"Primary Instructor\" field.");
    theForm.Instructor.focus();
    return (false);
  }

  if (theForm.Instructor.value.length > 20) {
    alert("Please enter at most 20 characters in the \"Primary Instructor\" field.");
    theForm.Instructor.focus();
    return (false);
  }

  if (theForm.EmailAddress.value == "") {
    alert("Please enter a value for the \"Email Address\" field.");
    theForm.EmailAddress.focus();
    return (false);
  }

  if (theForm.EmailAddress.value.length > 50) {
    alert("Please enter at most 256 characters in the \"Email Address\" field.");
    theForm.EmailAddress.focus();
    return (false);
  }
  
  if (theForm.Username.value == "") {
    alert("Please enter a value for the \"User Name\" field.");
    theForm.EmailAddress.focus();
    return (false);
  }

  if (theForm.EmailAddress.value.length > 8) {
    alert("Please enter at most 8 characters in the \"User Name\" field.");
    theForm.EmailAddress.focus();
    return (false);
  }
  
  if (theForm.Password.value == "") {
    alert("Please enter a value for the \"Password\" field.");
    theForm.EmailAddress.focus();
    return (false);
  }

  if (theForm.EmailAddress.value.length > 8) {
    alert("Please enter at most 8 characters in the \"Password\" field.");
    theForm.EmailAddress.focus();
    return (false);
  }
  
  return (true);
}

function openForgotPassword() {
    newWindow = window.open("forgotpassword.asp", "newWin", "toolbar=no, location=no, scrollbars=no, width=230, height=10");
}

function openEditMyProfile(strUserID) {
    newWindow = window.open("m_editmyprofile.asp?UserID=" + strUserID, "newWin", "toolbar=no, location=no, scrollbars=no, width=340, height=335");
}

function openSendEmail(strEOption) {
    newWindow = window.open("m_email.asp?SendTo=" + strEOption, "newWin", "toolbar=no, location=no, scrollbars=no, width=463, height=280");
}

function openStats() {
    newWindow = window.open("stats.asp", "newWin", "toolbar=no, location=no, scrollbars=no, width=400, height=420");
}

function openMemberList() {
    newWindow = window.open("m_members.asp", "newWin", "toolbar=no, location=no, scrollbars=yes, width=600, height=550");
}

function openUserPass() {
    newWindow = window.open("m_userpass.asp", "newWin", "toolbar=no, location=no, scrollbars=no, width=300, height=80");
}

function openAddNews() {
    newWindow = window.open("m_addnews.asp", "newWin", "toolbar=no, location=no, scrollbars=no, width=385, height=170");
}

function openPrintTestForm() {
    newWindow = window.open("m_forms.asp", "newWin", "toolbar=no, location=no, scrollbars=no, width=400, height=420");
}

function openPrintSomeOtherForm() {
    newWindow = window.open("m_forms.asp", "newWin", "toolbar=no, location=no, scrollbars=no, width=400, height=420");
}

function openEditMemberProfile() {
    newWindow = window.open("m_edituserprofile.asp", "newWin", "toolbar=no, location=no, scrollbars=no, width=340, height=380");
}

function openDeleteMemberProfile() {
    newWindow = window.open("m_removeuserprofile.asp", "newWin", "toolbar=no, location=no, scrollbars=no, width=340, height=380");
}

function openAddPromotion() {
    newWindow = window.open("m_addpromotion.asp", "newWin", "toolbar=no, location=no, scrollbars=no, width=385, height=170");
}

function openGenerateList() {
    newWindow = window.open("m_emaillist.asp", "newWin", "toolbar=no, location=no, scrollbars=yes, width=600, height=500");
}

function openAddMember() {
    newWindow = window.open("m_addnewprofile.asp", "newWin", "toolbar=no, location=no, scrollbars=no, width=340, height=380");
}

function CheckForm () {

	var errorMsg = "";

	    //Check for a first name
        if (document.form.FirstName.value.length == ''){
                errorMsg += "\n\tFirst Name \t- Enter your first name";
        }

	    //Check for a last name
        if (document.form.LastName.value.length == ''){
                errorMsg += "\n\tLast Name \t- Enter your last name";
        }

        //Check for an instructor
        if (document.form.Instructor.value.length == ''){
                errorMsg += "\n\tInstructor \t- Enter a primary instuctor";
        }

        //If an e-mail is entered check that the e-mail address is valid
        if (document.form.EmailAddress.value == "" || (document.form.EmailAddress.value.indexOf("@",0) == -1||document.form.EmailAddress.value.indexOf(".",0) == -1)) {
                errorMsg +="\n\tEmail Address\t- Enter your valid email address";
        }
        
        //Validate the home phone format
        if (document.form.HomePhone.value == "" || document.form.HomePhone.value.indexOf("-",0) == -1) {
                errorMsg +="\n\tHome Phone\t- Enter a home phone, format is 123-456-7890";
        }

        //Validate the work phone format
        if (document.form.WorkPhone.value != "" && document.form.WorkPhone.value.indexOf("-",0) == -1) {
                errorMsg +="\n\tWork Phone\t- Proper format is 123-456-7890";
        }

        //Check for a username
        if (document.form.Username.value.length == ''){
                errorMsg += "\n\tUsername \t- Enter a Username";
        }

        //Check for a password
        if (document.form.Password.value.length == ''){
                errorMsg += "\n\tPassword \t- Enter a password";
        }

        //Check both passwords are the same
        if ((document.form.Password.value) != (document.form.PasswordCheck.value)){
                errorMsg += "\n\tPassword Error\t- The passwords entered do not match";
                document.form.Password.value = ""
                document.form.PasswordCheck.value = ""
        }

	//If there is a problem with the form then display an error
	if (errorMsg != ""){
		msg = "The following field(s) need to be corrected: -\n";

		errorMsg += alert(msg + errorMsg + "\n\n");
		return false;
	}

	return true;
}