function showEmailAFriendPopUp(page)
{
	page = page.split('&amp;').join('&');
	var popUp = window.open( page, 'popup', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=no,width=350,height=250');
}		 

function checkEmail (strng) {
		error=validateEmail(strng);
		if (error!="") {
			alert(error);
			return false;
		}else
		return true;    
}

function validateEmail (strng) {
		var error="";
		if (strng == "") {
			 error = "You didn't enter an email address.\n";
		}
		
		var emailFilter=/^.+@.+\..{2,3}$/;
		if (!(emailFilter.test(strng))) { 
			 error = "There appears to be something wrong with the email address that you have entered. Please try again.\n";
		}
		else {
//test email for illegal characters
			 var illegalChars= /[\(\)\<\>\,\;\:\\\"\[\]]/
				 if (strng.match(illegalChars)) {
					error = "There appears to be something wrong with the email address that you have entered. Please try again.\n";
			 }
    }
		
		return error
}