window.onerror=new Function("return true") function WindowSize(param){var myWidth=0,myHeight=0;if(typeof(parent.window.innerWidth)=='number'){myWidth=parent.window.innerWidth;myHeight=parent.window.innerHeight;}else if(document.documentElement&&(parent.document.documentElement.clientWidth||document.documentElement.clientHeight)){myWidth=parent.document.documentElement.clientWidth;myHeight=parent.document.documentElement.clientHeight;}else if(parent.document.body&&(parent.document.body.clientWidth||parent.document.body.clientHeight)){myWidth=parent.document.body.clientWidth;myHeight=parent.document.body.clientHeight;} if(param=="width"){return myWidth} if(param=="height"){return myHeight}} function findPosY(obj){var curtop=0;if(obj.offsetParent){while(obj.offsetParent){curtop+=obj.offsetTop;obj=obj.offsetParent;}} else if(obj.y)curtop+=obj.y;return curtop;} function newWindow(mypage,title,w,h){if(screen.width){var winl=(screen.width-w)/2;var wint=(screen.height-h)/2;} else{winl=0;wint=0;} if(winl<0)winl=0;if(wint<0)wint=0;var settings='scrollbars=1,resizable=1,status=yes,height='+h+','+'width='+w+','+'top='+wint+','+'left='+winl;win=window.open(mypage,title,settings);win.window.focus();} function ShowPicture(virtualroot,url){window.open('editor/billedPopUp.aspx?url='+url,'','width=2,height=2,status=yes,scrollbars=1,resizable=1');} function ShowGalleryPicture(fileID,galleryID){window.open('editor/billedPopUp.aspx?url='+fileID+'&categoryID='+galleryID,'','width=100,height=100,status=yes');} function Delete(name,url){var agree=confirm("Er du sikker p\345,du vil slette "+name+"?");if(agree){self.location.href=url}} function fnTrapKD(btn){if(document.all){if(event.keyCode==13){ event.returnValue=false;event.cancel=true;btn.click();}}} function gotoshow(){window.open(slidelinks[whichlink],'');}