window.onload = function() {
		//external links to open in a new window
		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.getAttribute("rel") == "pdf")) anchor.target = "_blank";
		}
}//end window.onload

function checkForm(theForm){
var theName = theForm.Name;
var theEmail = theForm.email;
var str=theEmail.value
var testresults
var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i

	if ((theName.value == "" || theName.value == "Please enter your full name")){
		alert('Please enter your full name in the designated box');
		theName.focus();
		theName.style.background="#ebebeb";
		return false;
	}//end if
	
	if (theEmail.value == "" || theEmail.value == "Please enter your email address"){
		alert('Please enter your email address in the designated box');
		theEmail.focus();
		theName.style.background="#fff";
		theEmail.style.background="#ebebeb";
		return false;
	}//end if

	//Advanced Email Check credit-
	//By JavaScript Kit (http://www.javascriptkit.com)
	//Over 200+ free scripts here!
	
	if (filter.test(str)){
		return true
	}//end if
		else{
		window.alert("Please enter a valid email address in the designated box");
		theEmail.focus();
		theEmail.value = "";
		theName.style.background="#fff";
		theEmail.style.background="#ebebeb";
		return false;
	}//end else


}//end function