itext = new Array(); function change_itext(name) { window.document.images.itext.src = itext[name].src; } function default_itext() { window.document.images.itext.src = itext['default'].src; } function setdefault_itext(name) { itext['default']=itext[name]; default_itext(); } function newCenteredWindow(page, name, w, h, scroll,toolbar) { var winl = (screen.width - w) / 2; var wint = (screen.height - h) / 2; winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',toolbar='+toolbar+',resizable' win = window.open(page, name, winprops) } function openCenteredWindow(page, name, width, height, properties) { var winl = (screen.width - width) / 2; var wint = (screen.height - height) / 2; winprops = properties + ',height=' + height + ',width=' + width + ',top=' + wint + ',left=' + winl win = window.open(page, name, winprops) } function getCookie(name) { var dc = document.cookie; if (dc.indexOf(name + "=") != -1) { var begin = dc.indexOf(name) + name.length + 1; var end = (dc.indexOf(";", begin) != -1) ? dc.indexOf(";", begin) : dc.length; return unescape(dc.substring(begin, end)); } else return null; } function setCookie(name, value, expires, path, domain, secure) { document.cookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires.toUTCString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); } var count = 0; function showMenu(value){ if(count == 0){ document.getElementById(value).className = 'showMenu'; count = 1; } else{ hideMenu(value); count = 0; } } function hideMenu(value){ document.getElementById(value).className = 'hideMenu'; } function showMenu2(value, bool) { if(bool == true){ document.getElementById(value).className = 'showMenu'; } else{ hideMenu(value); } }