/*
+----------------------------------------------------------------------+
Переделанная функция
Принимает шестой аргумент - атрибут тэга "class"
для дополнительного форматирования ссылки
+----------------------------------------------------------------------+
*/
function showmail (nospamplease, idontlikespam, nothanks, no, way, my_class) {

	var str_out = ''; 
	var num_out = '';
	var num_in;

	num_out = nospamplease;  
	for(i = 0; i < num_out.length; i += 2) {
		num_in = parseInt(num_out.substr(i,2)) + 23;
		num_in = unescape('%' + num_in.toString(16));
		str_out += num_in;
		str_out = unescape(str_out);
	}
	nospamplease = str_out;
	speakfriendandenter = '&#109;&#97;&#105;&#108;&#116;&#111;:' + nospamplease;

	voila = '<a href="' + speakfriendandenter + '" title="' + nospamplease + '"';
	
	if (my_class != "") voila += ' class="'+my_class+'"'
	
	voila += '>';
	
	if((idontlikespam != "") && (nothanks != "")) {
		voila = idontlikespam  + " " + voila;
	}
	else if((idontlikespam != "") && (nothanks == "")) {
		voila += idontlikespam;
	}
	if(nothanks != "") {
		voila += '<img src="' + nothanks + '" width="' + no + '" height="' + way + '" border="0" alt="' + nospamplease + '" />';
	}
	else if((idontlikespam == "") && (nothanks == "")) {
		voila += nospamplease ;
	}
	voila += '</a>';
	document.write(voila);
	nospamplease = "";
	idontlikespam = "";
	nothanks = "";
}
