<!--
// Hide e-mail address from web spiders, but make it available to surfers
// Parameters:
//	addr,dom,ex: part of the e-mal address: ie. addr@dom.ex
//	displ:	if defined, it will be the content of the mailto anchor
//			it can contain HTML as well, but the "/" ought to be changed to "\/"
//	subj:	subject of the e-mails
//	txt:	initial content of the e-mail message text (body)
function safeMail(addr,dom,ex,displ,subj,txt){
	var first = 'ma';
	var second = 'il';
	var third = 'to:';
	var address = ''+addr;
	var domain = ''+dom;
	var ext = ''+ex;
	var display = ''+displ;
	var subject = ''+subj;
	var text = ''+txt;
	
	if (address=='undefined') display = '';
	if (domain=='undefined') display = '';
	if (ext=='undefined') display = '';
	if (display=='undefined') display = '';
	if (subject== 'undefined') subject = '';
	if (text=='undefined') text = '';
	
	document.write('<a href="');
	document.write(first+second+third);
	document.write(address);
	document.write('@');
	document.write(domain);
	document.write('.');
	document.write(ext);  
	if (subject!='')
	{
		document.write('?Subject='+subject);
		if (text!='')
		{
			document.write('&Body='+text);
		}
	}
	document.write('">'); 
	
	if (display!='')
	{
		document.write(display);
	}
	else
	{
		document.write(address);
		document.write('@');
		document.write(domain);
		document.write('.');
		document.write(ext);  
	}

	document.write('<\/a>');
}
//-->