function openWin( url, title, height, width, toolbar, resizeable) { var win = top.open( url, 'popupWin', 'height=' + height + ',width=' + width + ',resizeable=' + resizeable + 'top=200,left=200,scrollbars=1,toolbar=' + toolbar + ',location=0,directories=0,menuBar=0'); return win; } function winH(){ var winH = 0; if (parseInt(navigator.appVersion)>3) { if (navigator.appName=="Netscape") { winH = window.innerHeight-16; } } if (navigator.appName.indexOf("Microsoft")!=-1) { winH = document.body.offsetHeight-20; } return winH; } function winW(){ var winW = 0; if (parseInt(navigator.appVersion)>3) { if (navigator.appName=="Netscape") { winW = window.innerWidth-16; } } if (navigator.appName.indexOf("Microsoft")!=-1) { winW = document.body.offsetWidth-20; } return winW; } function getCookie( cookie_name ) { if(document.cookie) { index = document.cookie.indexOf(cookie_name); if (index != -1){ namestart = (document.cookie.indexOf("=", index) + 1); nameend = document.cookie.indexOf(";", index); if (nameend == -1) { nameend = document.cookie.length; } //alert( 'returning ' + cookie_name + ' - ' + document.cookie.substring(namestart, nameend) ); return document.cookie.substring(namestart, nameend); } } } function putCookie( cookie_name, cookie_value ){ //alert( 'setting ' + cookie_name + ' - ' + cookie_value); document.cookie= cookie_name + "=" + cookie_value +"; expires=Monday, 01-Jan-2100 05:00:00 GMT"; }