var browserName = navigator.appName; function registrera(){parent.frames["main"].document.editPage.submit();} function loggaut(webb){window.top.location.href='/edit/loggaut.asp?strWebb=' + webb;} function tillTopp(){location.href='#top';} function laddaSida(sida){parent.frames["meny"].location.href='' + sida;} function laddaOmMain(){window.opener.parent.frames["main"].document.location.reload();} function nyProdukt(sidan){window.location.href = sidan;} function editlage(sidan,webb){ var sidanid = parent.frames["main"].location.href; var temp = '/edit/editlage.asp?' + sidanid; parent.frames["main"].location.href=temp; if (webb != ''){parent.frames["edit"].location.reload();} } function swapWebb(){ var webben = parent.frames["edit"].document.formKnappar.webb[parent.frames["edit"].document.formKnappar.webb.selectedIndex].value; window.top.location.href = '/edit/bytwebb.asp?strWebb=' + webben; } function swapModulRWB(webb){ var modulenRWB = document.formKnappar.modulerRWB.options[document.formKnappar.modulerRWB.selectedIndex].value; if(modulenRWB!='0') { parent.frames["edit"].location.href = '/edit/knappar.asp?strWebb=' + webb; dialog(modulenRWB);} } function swapModulSAD(webb){ var modulenSAD = document.formKnappar.modulerSAD.options[document.formKnappar.modulerSAD.selectedIndex].value; var str = modulenSAD; var delen; delen = str.substring(0,6); if (delen == '/shop/'){ parent.frames["edit"].location.href = '/edit/knappar.asp?strWebb=' + webb; dialogStoreAdmin(webb + modulenSAD); }else if(modulenSAD!='0'){ parent.frames["edit"].location.href = '/edit/knappar.asp?strWebb=' + webb; dialog(modulenSAD);} } var checkWin; function dialog(pageURL,webb){ if (window.opener==null){checkWin=null;} if (checkWin==null){ if (pageURL == "/hjalp.htm"){checkWin=window.open("http://hjalp.sajttool.nu",'dialogWin','height=500,width=791,left=10,top=10,scrollbars=yes,resizable=1'); }else{checkWin=window.open(pageURL,'dialogWin','height=540,width=420,left=10,top=10,resizable=1');} if (webb != ''){parent.frames["edit"].location.reload();}} checkWin.focus(); } var checkWin; function dialogStoreAdmin(pageURL){ var clWidth; var clHeight; clWidth = window.screen.availWidth - 20; clHeight = window.screen.availHeight - 40; if (window.opener==null){checkWin=null;} if(checkWin==null){checkWin=window.open(pageURL, '', 'Width='+clWidth+', Height='+clHeight+',top=5,left=5,scrollbars=yes,resizable=1');} checkWin.focus(); } var checkWin; function dialogEvents(webb,pageID,postID){ if (window.opener==null){checkWin=null;} if(checkWin==null){checkWin=window.open( "/edit/dialogEvents.asp?task=edit&strWebb="+webb+"&sidid="+pageID+"&postID="+postID, '', 'Width=600, Height=400');} checkWin.focus(); } var checkWin; function dialogListan(webb,pageID,postID){ if (window.opener==null){checkWin=null;} if(checkWin==null){checkWin=window.open( "/edit/dialogListan.asp?task=edit&strWebb="+webb+"&sidid="+pageID+"&postID="+postID, '', 'Width=600, Height=420');} checkWin.focus(); } var checkWin; function defWindow(pageURL,defWidth,defHeight){ if (window.opener==null){checkWin=null;} if (checkWin==null){checkWin=window.open(pageURL,"","width=" + defWidth + ",height=" + defHeight + ",resizable=1,scrollbars=1");} } var checkWinMini; function dialogMini(pageURL){ if (window.opener==null){checkWinMini=null;} if(checkWinMini==null){ //showModalDialog(pageURL,"","dialogWidth:420px; dialogHeight:390px; scroll:auto; status:no; help:no; resizable: Yes"); checkWinMini=window.open(pageURL,'dialogWinMini','width=400,height=370,left=100,top=100,resizable=1,scrollbars=auto'); } checkWinMini.focus(); } var statWin; function statistik(statURL,webb){ var statistikURL = statURL; if (window.opener==null){statWin=null;} if(statWin==null){statWin=window.open('/edit/statistik.asp?url=' + statURL + '&strWebb=' + webb,'statistikWin','width=550,height=600,left=100,top=100,scrollbars=1,resizable=1');} if (webb != ''){parent.frames["edit"].location.reload();} statWin.focus(); } function listaAddDel(webb,sidnr,aktId,tabellen){ var dennaSida=sidnr; var dettaId=aktId; var tabell=tabellen; var strWebb = webb; if (tabell.substring((tabell.length-5),tabell.length)=='Lista'){ if(dettaId>0){ if(confirm('Delete the item?')){ window.parent.frames["main"].location.href='/edit/dialogListan.asp?task=delete&strWebb=' + strWebb + '&sidid=' + dennaSida + '&postid=' + dettaId + '&sort=' + tabell } }else{ window.parent.frames["main"].location.href='/edit/dialogListan.asp?task=delete&strWebb=' + strWebb + '&sidid=' + dennaSida + '&postid=' + dettaId + '&sort=' + tabell } }else{ if(dettaId>0){ if(confirm('Delete the item?')){ window.parent.frames["main"].location.href='/edit/dialogEvents.asp?task=delete&strWebb=' + strWebb + '&sidid=' + dennaSida + '&postid=' + dettaId + '&sort=' + tabell } }else{ window.parent.frames["main"].location.href='/edit/dialogEvents.asp?task=delete&strWebb=' + strWebb + '&sidid=' + dennaSida + '&postid=' + dettaId + '&sort=' + tabell } } } function storBild(webb,prodId){ var id = prodId; var URL = '/storbild.asp?strWebb='+webb + '&ProdId='+ id; window.open(URL,"Produkt","width=400,height=500, scrollbars=yes") } function delProdukt(webb,sidan,produkten){ var page = "/edit/delProdukt.asp?strWebb=" + webb + "&sidid=" + sidan + "&prodid=" + produkten; window.location.href=page; } function storeHelp(varde){ var wassup = varde; if(varde == 'klickbarbild'){ dialog('/storeHelp.asp?help=klickbarbild') } }