<!-- hide from old browsers

var days = new Array();
days[0] = "Sunday";
days[1] = "Monday";
days[2] = "Tuesday";
days[3] = "Wednesday";
days[4] = "Thursday";
days[5] = "Friday";
days[6] = "Saturday";

var months = new Array();
months[0] = "January";
months[1] = "February";
months[2] = "March";
months[3] = "April";
months[4] = "May";
months[5] = "June";
months[6] = "July";
months[7] = "August";
months[8] = "September";
months[9] = "October";
months[10] = "November";
months[11] = "December";

function externalLinks() { 
 if (!document.getElementsByTagName) return; 
 var anchors = document.getElementsByTagName("a"); 
 for (var i=0; i<anchors.length; i++) { 
   var anchor = anchors[i]; 
   if (anchor.getAttribute("href") && 
       anchor.getAttribute("rel") == "external") 
     anchor.target = "_blank"; 
 	} 
} 
window.onload = externalLinks;

function checkEmail(strng) {
	var error = "";

	var emailFilter=/^.+@.+\..{2,6}$/;

	if (!(emailFilter.test(strng))) {
		return false;
	}

	var illegalChars= /[\(\)\<\>\,\;\:\\\/\"\[\] ']/

	if (strng.match(illegalChars)) {
		return false;
	}

	return true;
}

function nl_validator(theForm)
{
	if(!checkEmail(theForm.newsletter.value)) {
		 alert("Please enter a valid Email Address");
		theForm.newsletter.focus();
		 return false;
	}

	return (true);
}

function toggleView(theid) {
	if (document.getElementById(theid).style.display=='none') {
		document.getElementById(theid).style.display='block';
	}else{
		document.getElementById(theid).style.display='none';
	}
}

function checkAnswer(theid) {
	theQ = document.getElementById('q'+theid)
	theA = document.getElementById('a'+theid)
	if (theQ.value.toLowerCase()==theA.value.toLowerCase()) {
		theQ.className="quizinput correct";
	}else{
		theQ.className="quizinput wrong";
	}
	
}

// - end hiding -->