// JavaScript Document function getObj(obj){ return (o = document.getElementById(obj))? o : document.all[obj]; } function winopen800x600(name){ if(window.lotterywnd){ lotterywnd.close(); } lotterywnd=window.open('add/pop_up.php?id='+name,'lotterywnd','width=800,height=600,scrollbars=no,left='+(screen.availWidth-800)/2+',top='+(screen.availHeight-600)/2+''); return false; } function decode(s) { symBase = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; result = ""; for( cur = 0; cur < s.length; cur += 4 ) { var c = new Array(4), nextChar; for( curC = 0; curC < 4; curC++) { curChar = s.substring(curC + cur, curC + cur + 1); if( '=' == curChar) c[curC] = 0; else c[curC] = symBase.indexOf(curChar); } result += String.fromCharCode(((c[0] << 2) % 256) | (c[1] >> 4)); result += String.fromCharCode(((c[1] << 4) % 256) | (c[2] >> 2)); result += String.fromCharCode(((c[2] << 6) % 256) | c[3]); } return result; } function mail(s) { window.location = "mailto:" + decode(s); } function UnCryptMailto( s ) { var n = 0; var r = ""; for( var i = 0; i < s.length; i++) { n = s.charCodeAt( i ); if( n >= 8364 ) { n = 128; } r += String.fromCharCode( n - 1 ); } return r; } function linkTo_UnCryptMailto( s ) { location.href=UnCryptMailto( s ); }