// SpamProof jscript methods
//To be used to prevent spammers from grabbing email addresses from a website
//
//Example:
//For more information contact our <Script language="JavaScript">PrintMail('sales','hubbardone.com','Sales')</SCRIPT> department.
//results: For more information contact our sales department.
//	where sales will be a link to mailto.

function  SendMail(n,d){
	document.location.href='mailto:' + n + '@' + d;
}
function PrintMail(n,d,m){
	if(m == ""){
		m = n + '@' + d;
	}	
	document.write("<a href=\"JavaScript:SendMail('" + n + "','" + d + "'); \" onMouseOver=\"self.status='" + m + "'; return true;\" onMouseOut=\"self.status=''; return true;\">" + m + "</a>");
	return true;
}	

function PrintEmail(name, domain) { 
	document.write(name + "@" + domain) 
}

function SendEmail(name, domain){
		
		document.location.href = "mailto:" + name + "@" + domain;
}