var win = null; // =============================================================================================================================== function NewWindow(mypage, myname, w, h, scroll) { if (win && !win.closed) win.close(); LeftPosition = (screen.width) ? (screen.width-w)/2 : 0; TopPosition = (screen.height) ? (screen.height-h)/2 : 0; settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'; win = window.open(mypage, myname, settings); if (win.window.focus) { win.window.focus(); } } // =============================================================================================================================== function maildecode (input) { var output=input; output=output.replace(/\|/, '@'); output=output.replace("#xxcom#", "."); output=output.replace("#xxcom#", "."); output=output.replace("#xxcom#", "."); output=output.replace("#xxcom#", "."); output=output.replace("#xxcom#", "."); output=output.replace("#xxcom#", "."); return (output); } // =============================================================================================================================== function writemaillink ($input,$hid) { $showmail=maildecode($input); $showmail=$showmail.replace('@','@'); $showmail=$showmail.replace(/\./,'.'); $showmail=$showmail.replace(/\?.*/,''); document.write('E-Mail: '); document.write (""); document.write($showmail); document.write ('
'); } // =============================================================================================================================== function makemail($link,$hid) { if ($hid>0) mailtocount($hid); $link=maildecode($link); this.location.href="mailto:"+$link; } // =============================================================================================================================== function img_act($imgName,$onoff) { if (document.images) { $newimg = eval("navbar_"+$imgName + "_"+$onoff+".src"); document.getElementById($imgName).src = $newimg; } return true; }