//Antispam email function mkcore(jmeno, domena, tld){ var ret=jmeno; ret += String.fromCharCode(63+1); if(typeof(domena)=="undefined") ret += 'letovair.cz'; else if(typeof(tld)=="undefined") ret += domena+'.cz'; else ret += domena+'.'+tld; return (ret); } function mke(jmeno, domena, tld) { document.write(mkcore(jmeno, domena, tld)); } function mkm(jmeno, domena, tld) { document.write('mai'); document.write('lto'+String.fromCharCode(58)); mke(jmeno, domena, tld); } function gom(jmeno, domena, tld) { var dst='mai'; dst += 'lto'+String.fromCharCode(58); dst += mkcore(jmeno,domena,tld); w1=window.open(dst); if (w1) w1.close(); } function mkhref(jmeno, celejmeno, domena, tld, atr) { document.write(''); if(typeof(celejmeno)!=="undefined" && celejmeno!=""){ document.write(celejmeno); }else{ document.write(mkcore(jmeno, domena, tld)); } document.write(''); } function mkhrefnopen(jmeno, domena, tld, atr) { document.write(''); document.write(mkcore(jmeno, domena, tld)); } function mk_form_to (form_name, jmeno) { var F = MM_findObj ( form_name ); F.To.value=mkcore(jmeno); } ///------------------------------------ //////////////////////////////// (function( $ ){ $.fn.antispam = function( options ) { var settings = {'emailname' : 'i','emaildomain' : 'd','emailltd' : 'c'}; if ( options ) { $.extend( settings, options );} this.each(function(){ aemail = $(this).html().split(','); if( aemail[0] == undefined ){ aemail[0] = settings.emailname; } if( aemail[1] == undefined ){ aemail[1] = settings.emaildomain; } if( aemail[2] == undefined ){ aemail[2] = settings.emailltd; } $(this).attr( 'href','mailto: ' + aemail[0] + '@' + aemail[1] + '.' + aemail[2] ); if( aemail[3] == undefined ){ $(this).html( aemail[0] + '@' + aemail[1] + '.' + aemail[2] ); }else{ $(this).html( aemail[3] ); } }); }; })( jQuery ); /* $('a.mail').antispam({ 'emailname' : 'info','emaildomain' : 'empemont','emailltd' : 'cz' }); */ ////////////////////////////////////