/* ***********************************************
    script by Brandon Luhring (luhring-design.com) 
	                     2002
    advanced email protection against spam-bots 
   *********************************************** */

at = '@';
mailer = 'mailto:';

function getmail(name, domain, suffix, text, status){ //user supplied email parts and alt text
		hiddenMail=(name + at + domain + '.' + suffix);
		if ((! text) || (text == '')){ //if no alt text then use full email address
			text = hiddenMail.split('?'); //removes any ? parameters like 'subject'
			text = text[0];
		}
		if (! status){ //if no onMouseOver status bar change use full email address
			status = hiddenMail.split('?'); //removes any ? parameters like 'subject'
			status = status[0];
		}
		email = '<a href="' + mailer + hiddenMail + '" onMouseOver="return display(\'' + status + '\');" onMouseOut="remove();">' + text + '</a>';
		return email;
}
