/* Hide email addresses */
function hideEmail(name,domain,text){
		if (text == '') { text=name+'@'+domain; }
		var a="<a href='mailto:";
		var b=name+"@"+domain+"' class='linkEmail'>";
		var c=text;
		var d="</a>";
		document.write(a+b+c+d);
}

// Simple email form validation
//
function emailFormVal()
{

	var emailValue = (document.forms["emailForm"].elements["email"].value)
	if (emailValue.match(/^([a-zA-Z0-9])+([\.a-zA-Z0-9_-])*@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-]+)+/))
	{
		// continue
	}
	else
	{
		alert ("Please enter a valid email address!");
		document.emailForm.email.value = "";
		document.emailForm.email.focus();
		return false;
	}

	return true;
}