/**
 * Misc JS functions
 *
 * authors:
 * Boris Belenski [www.belenski.com]
 * Hristo Drumev [www.hdrumev.com]
 *
 */

function isEmpty(_v,_r) { var _tv= (_v==null || typeof(_v)=="undefined" || _v==''); return ( _r==null || typeof(_r)=="undefined" )?_tv:(_tv?_r:_v) } // Проверка за празна _v. Ако е празна връща _r

function antiSpam(_d,_e,_u1,_t,_ex,_u2,_ls) { var _tv=_u1+isEmpty(_u2,'')+'@'+_d+'.'+_e; _t=isEmpty(_t)?_tv:_t; document.write('<a href="mai'+'lto:'+_tv+(isEmpty(_ex)?'':('?'+_ex))+'" '+(isEmpty(_ls)?'':(_ls.indexOf(':')!=-1?('style="'+_ls+'"'):('class="'+_ls+'"')))+'>'+_t+'</a>'); }
