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 form_validator(theForm)
{

	if(!checkEmail(theForm.SignupEmail.value)) {
		 alert("Please enter a valid Email Address");
		theForm.SignupEmail.focus();
		 return false;
	}

	return (true);
}

function switchImage(srcID,image) {
	document.getElementById(srcID).src="/prodbig/" + image + ".jpg";
}

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;