/*
safeEmail
(c)2003 alan
this function preserves e-mail addresses from robots and sniffers.
to call it, use these 4 arguments:
safeEmail('name','domain','css class selector','')
*/
	var seLink;
	var seArob = "@";
	function safeEmail (seLl, seLr, seLs, seD, subj, txt) {
		seLink = ("<a ");
			if ((seLs!=null) && (seLs!="")) {
				seLink += ("class=\"" + seLs + "\" ");
			} 
		//seLink += ("href=\"mailto:" + seLl + seArob + seLr + "\"");	
	seLink += ("href=\"mailto:" + seLl + seArob + seLr);			
		
	if ((subj!=null) && (subj!="")) {
		subjClean=subj.replace( /'/g, "´" ).replace( /"/g, "-" );
		seLink += ("?");
		seLink += ("subject=" + subjClean);
	}

	if ((txt!=null) && (txt!="")) {
		if ((subj!=null) && (subj!="")) {seLink +="&";} else {seLink +="?";}
		txtClean=txt.replace( /'/g, "´" ).replace( /"/g, "-" );
		seLink += ("body=" + txtClean);
	} 
		
		seLink += ("\">")
			if ((seD!=null) && (seD!="")) {
				seLink += seD;
			}
			else {
				seLink += (seLl+seArob+seLr);
			}
		seLink += ("</a>");
		document.write (seLink);
	}
