// javascript mailto hider
//  copyright © 24 May, 2004 dean_arpajian
// feel free to use this... but don't remove my copyright info...
// (as in: please give me credit!)
// usage: mail2hider(user,domain,domType [,linktext])
//    ex: mail2hider('foo','bar','null') -> foo@bar.null

function mail2hider()
{
	var argv = mail2hider.arguments;
	var argc = argv.length;

	var fulldomain = argv[1] + '.' + argv[2];

	document.write('<a h' + 're' + 'f="');
	document.write('ma'+'il'+'to:');
	showmail(argv[0],fulldomain);
	document.write('">'); 
	if (argc == 4) document.write(argv[3]);
		else {
			showmail(argv[0],fulldomain);
			}
	document.write('</a>');
	
}

function showmail(user,domain)
{
	document.write(user);
	document.write('&#64;');
	document.write(domain);
}
