var ns4 = (navigator.appName == 'Netscape' && parseInt(navigator.appVersion) == 4); var ns6 = (document.getElementById)? true : false; var ie4 = (document.all)? true : false; function openTourWindow(url) { tourwin = window.open(url,"tourwin",'toolbar=1,location=1,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=520,height=350'); } function bookmarkPage(url, who) { if (ie4) { window.external.AddFavorite(url, who); } else { alert("To bookmark this page, press Control+D"); } } function checkFirst(link,url,e) { if (ie4) { if (e.ctrlKey & e.altKey) { link.href = url; } } else { if ((e.modifiers & Event.CONTROL_MASK) && (e.modifiers & EVENT.ALT_MASK)) { link.href = url; } } } function trim(str) { return str.replace(/^\s*/, '').replace(/\s*$/, ''); }