// detect framesets if(top.location != location) top.location = location; function areaHide(areaName) { if (document.getElementById) { document.getElementById(areaName).style.visibility = "hidden"; } } function areaShow(areaName) { if (document.getElementById) { document.getElementById(areaName).style.visibility = "visible"; } } function areaHideBlock(areaName) { if (document.getElementById) { document.getElementById(areaName).style.display = "none"; } } function areaShowBlock(areaName) { if (document.getElementById) { document.getElementById(areaName).style.display = "block"; } } function showPopup(popupFile,popupWidth,popupHeight) { // shows a popup window // calculate the left + top position var popupLeft = (screen.width - popupWidth) / 2; var popupTop = (screen.height - 30 - popupHeight) / 2; // -30 due to taskbar var properties = "left=" + popupLeft + ",top=" + popupTop + ",toolbar=no,dependent=yes,"; properties += "hotkeys=no,width=" + popupWidth + ",height=" + popupHeight + ","; properties += "scrollbars=yes"; properties = window.open(popupFile,"popup",properties); } function loadingFinished() { } function setCursor(cursorName) { document.getElementsByTagName("body")[0].style.cursor = cursorName; } function showWaitSplash(waittext, formid) { setOpacity('waitSplash', 0); areaShowBlock("waitSplash"); document.getElementById("waitSplash").innerHTML = '

'+waittext+'

'; if(typeof document.getElementById("waitSplash").style.MozOpacity != undefined && !document.all) { var i; for(i=0; i<=20; i++) { window.setTimeout("setOpacity('wholepage', "+((20-i)/20)+");",50*i + 0); window.setTimeout("setOpacity('waitSplash', "+(i/20)+");",50*i + 0); } } else { areaHideBlock("wholepage"); } window.setTimeout("areaHide('wholepage');", 50*20); window.setTimeout("document.getElementById('" + formid + "').submit();", 2000); return; } function setOpacity(objectid, opacity) { if(typeof document.getElementById(objectid).style.MozOpacity != undefined && !document.all) document.getElementById(objectid).style.MozOpacity = opacity; document.getElementById(objectid).style.opacity = opacity; } function goToTop3() { var x1 = x2 = x3 = 0; var y1 = y2 = y3 = 0; if (document.documentElement) { x1 = document.documentElement.scrollLeft || 0; y1 = document.documentElement.scrollTop || 0; } if (document.body) { x2 = document.body.scrollLeft || 0; y2 = document.body.scrollTop || 0; } x3 = window.scrollX || 0; y3 = window.scrollY || 0; var x = Math.max(x1, Math.max(x2, x3)); var y = Math.max(y1, Math.max(y2, y3)); if(y == 0) return; if(y < 100) { scrollTo(0,0); return; } for(var i = 0; i <= y; i+=Math.floor(y/80)) window.setTimeout('window.scrollTo(0,'+(((-1*Math.cos((y-i)/y*Math.PI)+1)/2)*y)+');', i/3); } var goToTopFunction = goToTop3;