// ************************************************* // * doLoadNextFrame() * // ************************************************* // Transfer to and load next frame with function details // - callingFrame: Who calls it // - Parameter: URL parameters (not beginning with "?" or "&") // // VERY IMPORTANT!! // This function sets up the LOAD ORDER - be careful! function doLoadNextFrame(callingFrame){ //------------------------------ //-- Execute the next frame //------------------------------ if (callingFrame == 'Tab') { window.parent.login1.location = '/sapanytt/sapanytt_new.asp' }; }// END FUNCTION function doLoadNextFrame2(callingFrame){ //------------------------------ //-- Execute the next frame //------------------------------ alert(callingFrame); parent.frame.location = callingFrame }// END FUNCTION function SetTab(id){ var i; ResetTab(); document.all.item("Tab" + id).className = "tabActive"; if (id==1){ window.parent.login1.location = '/sapanytt/sapanytt_new.asp' document.all.item("divider1").className = "TabImgLeadingActive"; document.all.item("divider2").className = "TabImgActiveInactive"; doExpandContract(id); } if (id==2){ window.parent.login1.location = '/sapanytt/analyser.asp' document.all.item("divider2").className = "TabImgInactiveActive"; document.all.item("divider3").className = "TabImgActiveInactive"; doExpandContract(id); } if (id==3){ window.parent.login1.location = '/sapanytt/producenten/prod_frame.asp' document.all.item("divider3").className = "TabImgInactiveActive"; document.all.item("divider4").className = "TabImgActiveInactive"; doExpandContract(id); } if (id==4){ window.parent.login1.location = '/sapanytt/citerat.asp' document.all.item("divider4").className = "TabImgInactiveActive"; document.all.item("divider5").className = "TabImgActiveInactive"; doExpandContract(id); } if (id==5){ window.parent.login1.location = '/sapanytt/svarar.asp' document.all.item("divider5").className = "TabImgInactiveActive"; document.all.item("divider6").className = "TabImgActiveInactive"; doExpandContract(id); } if (id==6){ window.parent.login1.location = '/sapanytt/newmess.asp' document.all.item("divider6").className = "TabImgInactiveActive"; document.all.item("divider7").className = "TabImgActiveInactive"; doExpandContract(id); } if (id==7){ window.parent.login1.location = '/sapanytt/dom.asp' document.all.item("divider7").className = "TabImgInactiveActive"; document.all.item("divider8").className = "TabImgTrailingActive"; doExpandContract(id); } } //END FUNCTION function SetTabSpec(id) { var i; ResetTab(); window.parent.login1.location = '/sapanytt/newmess.asp' alert("hej"); document.all.item("Tab" + id).className = "tabActive"; document.all.item("divider2").className = "TabImgLeadingActive"; document.all.item("divider3").className = "TabImgActiveInactive"; doExpandContract(id); } //END FUNCTION function ResetTab(){ var i; window.parent.login1.location = 'blank.asp' document.all.item("divider1").className = "TabImgLeadingInactive"; document.all.item("divider2").className = "TabImgInactiveInactive"; document.all.item("divider3").className = "TabImgInactiveInactive"; document.all.item("divider4").className = "TabImgInactiveInactive"; document.all.item("divider5").className = "TabImgInactiveInactive"; document.all.item("divider6").className = "TabImgInactiveInactive"; document.all.item("divider7").className = "TabImgInactiveInactive"; document.all.item("divider7").className = "TabImgInactiveInactive"; document.all.item("divider8").className = "TabImgTrailingInactive"; for (i=1; i<8;i++){ document.all.item("Tab" + i).className = "tabInactive"; } } //END FUNCTION function doExpandContract(StatusId) { //-- Expand the selected frame switch (StatusId) { case 1: //------------------------------------v window.parent.ProjFrameset.rows = '40,*'; break; case 2: window.parent.ProjFrameset.rows = '40,*'; break; case 3: window.parent.ProjFrameset.rows = '40,*'; break; case 4: window.parent.ProjFrameset.rows = '40,*'; break; case 5: window.parent.ProjFrameset.rows = '40,*'; break; case 6: window.parent.ProjFrameset.rows = '40,*'; break; case 7: window.parent.ProjFrameset.rows = '40,*'; break; default: alert ('Status Id Error at JavaScript function doExpandContract: ' + StatusId); return; //Not allowed } } //END FUNCTION