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 ) { var retCookie; if ( document.cookie == null ) putCookie ( cookie_name, Math.random()); 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; retCookie = document.cookie.substring(namestart, nameend); if ( retCookie == 'undefined' ) { putCookie ( cookie_name, Math.random()); namestart = (document.cookie.indexOf("=", index) + 1); nameend = document.cookie.indexOf(";", index); if (nameend == -1) nameend = document.cookie.length; retCookie = document.cookie.substring(namestart, nameend); } if ( retCookie == '' ) { putCookie ( cookie_name, Math.random()); namestart = (document.cookie.indexOf("=", index) + 1); nameend = document.cookie.indexOf(";", index); if (nameend == -1) nameend = document.cookie.length; retCookie = document.cookie.substring(namestart, nameend); } } else { putCookie ( cookie_name, Math.random()); retCookie = getCookie( cookie_name ); } return retCookie; } function putCookie( cookie_name, cookie_value ){ var expDateObj = new Date(); var expDay = expDateObj.getDate() + 7; var expDOW = expDateObj.getDay(); var m_names = new Array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"); var expMonth = m_names[expDateObj.getMonth()]; var expYear = expDateObj.getFullYear(); if ( cookie_value == '' ) cookie_value = Math.random(); if ( cookie_value == 'undefined' ) cookie_value = Math.random(); document.cookie = cookie_name + "=" + cookie_value +"; expires=" + expDOW + ", " + expDay + "-" + expMonth + "-" + expYear + " 12:00:00 GMT"; } function fmPublicWQO() { if ( document.forms[0].type != null ) { var myCookie = getCookie('cartid'); document.forms[0].cartid.value = myCookie; if ( document.forms[0].type.value == 'catalog') putCookie('cat', document.forms[0].cat.value); } }