//<!--[CDATA[


/*-------------------------------------------
KOY WebDev AntiSpam Functions
Copyright (C) 2003 KOY Software/KOY Web Development

Version: 0.0.0003
Modified: 7/11/2006
Created: 9/12/2002


[Function List]
External
	- AntiSpam(address)
--------------------------------------------*/




/*--------------------------------------------------------------------------------------
AntiSpam(address)
	address		Email address, with the @ replaced with an //. Version 0.0.0002 also
				allows @ to be replaced with ? and . replaced with & .
	extra		Whatever needs to be tacked on to the end of the mailto (subject string perhaps?).
	
	Responds like a normal mailto, but with spambot protection.
--------------------------------------------------------------------------------------*/
function AntiSpam(address, extra) {
	window.location.href = ("mailto:"
		+ address.replace(new RegExp("//","g"), "@")
		.replace(new RegExp("\\?","g"), "@")
		.replace(new RegExp("&","g"), ".")
		+ (typeof(extra) == "undefined" ? "" : extra));
}


// ]]-->