/*  
Script made by Martial Boissonneault © 2001-2003 http://getElementById.com/
This script may be used and changed freely as long as this msg is intact
Visit http://getElementById.com/ for more free scripts and tutorials.
*/
function SwitchMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("cont").getElementsByTagName("DIV");
		if(el.style.display == "none"){
			for (var i=0; i<ar.length; i++){
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}
function ChangeClass(menu, newClass) { 
	 if (document.getElementById) { 
	 	document.getElementById(menu).className = newClass;
	 } 
} 
document.onselectstart = new Function("return false");

function validateForm2() {
with (document.myForm) {
var alertMsg = "Some REQUIRED info is missing\nPlease enter your:\n";
if (Name.value == "") alertMsg += "\nName";
if (Email.value == "") alertMsg += "\nEmail address";
if (alertMsg != "Some REQUIRED info is missing\nPlease enter your:\n") {
alert(alertMsg);
return false;
} else {
return true;
} } }

function validateForm() {
with (document.updateForm) {
var alertMsg = "Some REQUIRED info is missing\nPlease enter your:\n";
if (Name.value == "") alertMsg += "\nName";
if (Name.value == "Enter your name here") alertMsg += "\nName";
if (Email.value == "") alertMsg += "\nEmail address";
if (Email.value == "Enter your email address") alertMsg += "\nEmail address";
if (alertMsg != "Some REQUIRED info is missing\nPlease enter your:\n") {
alert(alertMsg);
return false;
} else {
return true;
} } }


function openWindow(windowURL,windowName,windowWidth,windowHeight) {
  window.name = 'parentWnd';
  newWindow = window.open(windowURL,windowName,'width='+windowWidth+',height='+windowHeight+',toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=1');
  newWindow.focus();
}



/*
CSS Menu highlight- By Marc Boussard (marc.boussard@syntegra.fr)
Modified by DD for NS4 compatibility
Visit http://www.dynamicdrive.com for this script
*/

var ns4class=''