//////////// email validation script/////////////////////////////////////////////////////////////// Email validation script I borrowed from who knows where...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}//////////////////////////////////////////////////////////////////// Popup Window Function.function popupWindow (url,winName,details) {	var showWindow = window.open(url,winName,details);}function ValidateContactForm() {	var the_form = document.forms['form_contact'];			if (the_form.first_name.value == "") {		alert ("Please enter your first name");		the_form.first_name.focus();		return false;	}		if (the_form.last_name.value == "") {		alert ("Please enter your last name");		the_form.last_name.focus();		return false;	}			if (the_form.email1.value == "") {		alert ("Please enter your email");		the_form.email1.focus();		return false;	}		if (the_form.email2.value == "") {		alert ("Please enter your email twice");		the_form.email2.focus();		return false;	}		if (the_form.body.value == "") {		alert ("Don't forget to enter your message");		the_form.body.focus();		return false;	}			// also check that the email is in a valid format at least...	if (!validEmail(the_form.email1.value)) {		alert ("Your first email entry does not look like a valid email format to me. Please double check your typing.");		the_form.email1.focus();		return false;	}		if (!validEmail(the_form.email2.value)) {		alert ("Your second email entry does not look like a valid email format to me. Please double check your typing.");		the_form.email2.focus();		return false;	}		// make sure that the email address match each other	if ((the_form.email1.value) != (the_form.email2.value) ) {		alert ("The two email address that you entered do not match each other. Please check your typing.");		the_form.email2.focus();		return false;	}		document.form_contact.submit();	}function ValidateTeleseminarForm() {	var the_form = document.forms['form_teleseminar'];			if (the_form.first_name.value == "") {		alert ("Please enter your first name");		the_form.first_name.focus();		return false;	}		if (the_form.last_name.value == "") {		alert ("Please enter your last name");		the_form.last_name.focus();		return false;	}			if (the_form.email1.value == "") {		alert ("Please enter your email");		the_form.email1.focus();		return false;	}		if (the_form.email2.value == "") {		alert ("Please enter your email twice");		the_form.email2.focus();		return false;	}				// also check that the email is in a valid format at least...	if (!validEmail(the_form.email1.value)) {		alert ("Your first email entry does not look like a valid email format to me. Please double check your typing.");		the_form.email1.focus();		return false;	}		if (!validEmail(the_form.email2.value)) {		alert ("Your second email entry does not look like a valid email format to me. Please double check your typing.");		the_form.email2.focus();		return false;	}		// make sure that the email address match each other	if ((the_form.email1.value) != (the_form.email2.value) ) {		alert ("The two email address that you entered do not match each other. Please check your typing.");		the_form.email2.focus();		return false;	}		document.form_teleseminar.submit();	}function ValidateMailingList() {	var the_form = document.forms['mailing_list'];			if (the_form.first_name.value == "") {		alert ("Please enter your first name");		the_form.first_name.focus();		return false;	}		if (the_form.last_name.value == "") {		alert ("Please enter your last name");		the_form.last_name.focus();		return false;	}			if (the_form.email1.value == "") {		alert ("Please enter your email");		the_form.email1.focus();		return false;	}		if (the_form.email2.value == "") {		alert ("Please enter your email twice");		the_form.email2.focus();		return false;	}			// also check that the email is in a valid format at least...	if (!validEmail(the_form.email1.value)) {		alert ("Your first email entry does not look like a valid email format to me. Please double check your typing.");		the_form.email1.focus();		return false;	}		if (!validEmail(the_form.email2.value)) {		alert ("Your second email entry does not look like a valid email format to me. Please double check your typing.");		the_form.email2.focus();		return false;	}		// make sure that the email address match each other	if ((the_form.email1.value) != (the_form.email2.value) ) {		alert ("The two email address that you entered do not match each other. Please check your typing.");		the_form.email2.focus();		return false;	}		document.mailing_list.submit();	}// Toggle Block Visibility//// Use this to toggle the visibility of a block item on the page// input: item_idfunction ToggleBlockVisibility(item_id) {	if (document.getElementById(item_id).style.display != "block") {		document.getElementById(item_id).style.display = "block";	}	else {		document.getElementById(item_id).style.display = "none";	}}