function validateEmail(path){
	pattern=/^([\w]+)(.[\w]+)*@([\w]+)(.[\w]{2,3}){1,2}$/;
	if(document.getElementById("email")){
		if (document.getElementById('email').value.search(pattern)==-1 || document.getElementById('email').value==""){
			errors="Invalid email address";
			document.getElementById('errorDiv').innerHTML=errors;
		}
		else{
			ajaxSubmit(document.getElementById('email').value, 'email', path + 'inc/header.inc.dsp.php', 'errorDiv');
		}
	}
	else{
		throw new Error("Element with id of \"email\" not found in  this document.")	
	}
}


// start: mouseover script and image preloader
function msover(img,ref)
	{
			document.images[img].src = ref;
	}

function msout(img,ref)
	{
			document.images[img].src = ref;
	}
	
	
