var tipTimer; var prevTooltipUid = null; function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i0 && parent.frames.length) { d = parent.frames[n.substring(p+1)].document; n = n.substring(0,p); } if(!(x=d[n]) && d.all) x=d.all[n]; for (i=0; !x&&i\n'+ ' \n'+ ' \n'+ ' \n'+ ' \n'+ ' \n'+ ' \n'+ ' \n'+ '
'+title+'
'+text+'
\n'+ '\n'+ '\n'; window.clearTimeout(tipTimer); if (prevTooltipUid!=null) { hideTooltip(prevTooltipUid); } if (document.all) { // ie object.style.left = 3; object.style.top = document.body.scrollTop + 3; object.style.visibility = "visible"; object.innerHTML = content; } else if (document.layers) { // ns4 object.left = 3; object.top = window.pageYOffset + 3; object.document.write(content); object.document.close() object.visibility="show"; } prevTooltipUid = tooltipUid; tipTimer=window.setTimeout("hideTooltip('"+tooltipUid+"')", 60000); return true; } function redirect(screenId, componentId, actionId, actionParam, refreshCtrl, sessionThreadId, target) { var myForm = eval("document.redirectForm"); myForm.screenId.value = systemScreenId; myForm.componentId.value = ""; myForm.actionId.value = ""; myForm.actionParam.value = ""; myForm.refreshCtrl.value = systemRefreshCtrl; myForm.sessionThreadId.value = systemSessionThreadId; myForm.target = ""; submitForm('redirectForm', screenId, componentId, actionId, actionParam, refreshCtrl, sessionThreadId, target); } function submitForm(formId, screenId, componentId, actionId, actionParam, refreshCtrl, sessionThreadId, target) { var myForm = eval("document." + formId); if (screenId) myForm.screenId.value = screenId; if (componentId) myForm.componentId.value = componentId; if (actionId) myForm.actionId.value = actionId; if (actionParam) myForm.actionParam.value = actionParam; if (sessionThreadId) myForm.sessionThreadId.value = sessionThreadId; if (refreshCtrl) myForm.refreshCtrl.value = refreshCtrl; if (target){ myForm.target = target; } myForm.submit(); } function cookiesDisabled() { var result=true; if (navigator.cookiesEnabled) return false; document.cookie = "testcookie=yes;"; var cookieSet = document.cookie; if (cookieSet.indexOf("testcookie=yes") > -1) { result=false; } document.cookie = "testcookie=;expires=;"; return result; } function openPictureWindow_Fever(imageType,imageName,imageWidth,imageHeight,alt,posLeft,posTop) { newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+posLeft+",top="+posTop); newWindow.document.open(); newWindow.document.write(''+alt+''); if (imageType == "swf"){ newWindow.document.write(''); newWindow.document.write(''); newWindow.document.write(''); newWindow.document.write(''); } else { newWindow.document.write('\"'+alt+'\"'); } newWindow.document.write(''); newWindow.document.close(); newWindow.focus(); } function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } function confirmNewsletterBlockDelete(id){ var decision = confirm('Kustutades ploki, kustutate ka kõik temaga seotud elemendid (artiklid, pildid).'); if(decision) submitForm('newsletterForm','html.admin-profile.newsletter.edit','NewsletterEditComponent','Delete', id); }