<!-- Hide script from old browsers
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.email.value)) {
alert("Invalid email address")
passForm1.email.focus()
passForm1.email.select()
return false
}

if (passForm1.name.value == "") {
alert("The Name field cannot be blank")
passForm1.name.focus()
return false
}
if (passForm1.company.value == "") {
alert("The Company field cannot be blank")
passForm1.company.focus()
return false
}
if (passForm1.email.value == "" && passForm1.phone.value == "") {
alert("You must enter either an email address or a phone number")
passForm1.email.focus()
return false
}
if (passForm1.comments.value == "") {
alert("Please enter a comment or question")
passForm1.comments.focus()
return false
}

return true
}





function validRequestFree(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 -->

<!-- Hide script from old browsers


if (top.location != self.location) {
top.location = self.location
}



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 validRequest1(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 -->