function killErrors() { return true; } window.onerror = killErrors; window.focus(); function MM_reloadPage(init) { // reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i 0) { var siteStyles = document.styleSheets[0]; siteStyles.addRule("cinput", "font-size:9pt; height:18px; width:100px;"); } } function getlogin(id) { var url = '_login.php'; var ajax = new Ajax.Updater( {success: id}, url, {method: 'get', onFailure: reportError, evalScripts:true}); } function reportError(s) { return false; } function mouse_capture(b) { if (b.keyCode == 113) { getlogin('quicklogin'); } } function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { if (oldonload) { oldonload(); } func(); } } } function activePageHighlight(elm) { var thispage = '/.php'; var chosen = ""; if (typeof elm == 'string') elm = document.getElementById(elm); if (!elm) return; var links = elm.getElementsByTagName('a'), chosen = null; for (var i = 0; i -1) if(links[i].getAttribute("href",2) == thispage) { chosen = links[i]; } } // alert(chosen); // alert(chosen.nodeName); while (chosen && chosen.className != 'menulist') { if (chosen.nodeName.toLowerCase() == 'li') { chosen.getElementsByTagName('a').item(0).className = 'current-page'; } chosen = chosen.parentNode; } // alert(chosen.nodeName); }; function setFocus() { var links = document.getElementsByTagName("a"); for(var i=0; i the_at +1) && (the_dot 0) { for (index = 0; index