<!-- Hide script from old browsers


if (top.location != self.location) {
top.location = self.location
}

function newWindow(bookgif) {
bookWindow = window.open(bookgif, 'bookWin', 'toolbar=yes,scrollbars=yes,resizable=yes,width=950,height=635')
bookWindow.focus()
}

function validate(form) {
if (form.studentname.value == "") {
alert("You must enter a Student User Name")
return false
form.studentname.focus()
form.studentname.select()
}
if (form.studentpw.value == "") {
alert("You must enter a Password")
return false
form.studentpw.focus()
form.studentpw.select()
}
if (form.course.value == "") {
alert("You must select a course from the drop down list")
return false
form.course.focus()
form.course.select()
}
return true
}
function validEmail(email) {
invalidChars = " /:,;|"
for (i=0; i<invalidChars.length; i++) {
badChar = invalidChars.charAt(i)
if (email.indexOf(badChar,0) > -1){
return false
}
}
atPos = email.indexOf("@",1)
if (atPos == -1) {
return false
}
if (email.indexOf("@",atPos+1) > -1) {
return false
}
periodPos = email.indexOf(".",atPos)
if (periodPos == -1) {
return false
}
if (periodPos+3 > email.length) {
return false
}
return true
}
function validRequest(passForm1) {
if (!validEmail(passForm1.Email1.value)) {
alert("Invalid email address")
passForm1.Email1.focus()
passForm1.Email1.select()
return false
}
if (passForm1.Email1.value == "") {
alert("Please enter an email address")
passForm1.Email1.focus()
passForm1.Email1.select()
return false
}
if (passForm1.Name.value == "") {
alert("Please enter your name")
passForm1.Name.focus()
passForm1.Name.select()
return false
}

return true
}




// End hiding script from old browsers -->
