
function upRootWindow()
{this.upType="upRootWindow";this.aInfoPipe={};this.oRegistry=new upRegistry();this.closeAll=false;this.oFormatInfo=new upFormatInfo();this.oUserInfo=new upUserInfo();this.loggedoutUrl="";}
upRootWindow.prototype=new upWindow();upRootWindow.prototype.createPopUp=RootCreatePopUp;upRootWindow.prototype.closePopUp=RootClosePopUp;upRootWindow.prototype.closeAllPopUp=RootCloseAllPopUp;upRootWindow.prototype.cleanUp=RootCleanUp;upRootWindow.prototype.registerFup=RootRegisterFup;upRootWindow.prototype.unregisterFup=RootUnregisterFup;upRootWindow.prototype.getFup=RootGetFup;upRootWindow.prototype.unregisterFrame=RootUnregisterFrame;upRootWindow.prototype.rebuildFrameReg=RootRebuildFrameReg;upRootWindow.prototype.registerFrame=RootRegisterFrame;upRootWindow.prototype.unregisterPopup=RootUnregisterPopup;upRootWindow.prototype.rebuildPopUpReg=RootRebuildPopUpReg;upRootWindow.prototype.registerPopup=RootRegisterPopup;upRootWindow.prototype.registerToolTipPopup=RootRegisterToolTipPopup;upRootWindow.prototype.unregisterToolTipPopup=RootUnregisterToolTipPopup;upRootWindow.prototype.popToolTipPopup=RootPopToolTipPopup;upRootWindow.prototype.countToolTipPopup=RootCountToolTipPopup;upRootWindow.prototype.rebuildToolTipPopupReg=RootRebuildToolTipPopupReg;upRootWindow.prototype.timeOutSession=RootTimeOutSession;upRootWindow.prototype.timeOutSessionWarn=RootTimeOutSessionWarn;upRootWindow.prototype.resetTimeOut=RootResetTimeOut;upRootWindow.prototype.adviceShow=RootAdviceShow;upRootWindow.prototype.adviceClose=RootAdviceClose;function RootAdviceShow(p_strHead,p_strBody,p_strNotifyId,p_oAdviceSettings,p_oWindow)
{setFrameConsts();if(arguments.length>=5||p_oWindow!=null&&typeof p_oWindow=="object")
{oWnd=p_oWindow;}
else
{var oWndAppmain=ContainerAgent.getAppMainFrame();var oWndStage=ContainerAgent.getStageFrame();if(oWndStage&&oWndStage.oMsgNotifier)
oWnd=oWndStage;else if(oWndAppmain)
oWnd=oWndAppmain;else
oWnd=self;}
if(typeof oWnd!="undefined"&&oWnd!=null)
{if(typeof oWnd.oMsgNotifier!="undefined"&&oWnd.oMsgNotifier&&typeof oWnd.oMsgNotifier=="object")
{if(arguments.length<3||p_strNotifyId==null)
contentKey=oWnd.oMsgNotifier.addContent(p_strHead,p_strBody);else
contentKey=oWnd.oMsgNotifier.addContentById(p_strHead,p_strBody,p_strNotifyId);oWnd.oMsgNotifier.setContentAttributes(contentKey,{classContainer:"",classHeaderBg:"SCUP_TT_ADVICE_Header_normal_BG",classHeader:"SCUP_TT_ADVICE_Header_normal",classHeaderLink:"SCUP_TT_ADVICE_Header_Link",classContentBg:"SCUP_TT_ADVICE_normal_BG",classContent:"SCUP_TT_ADVICE_normal",positionHandling:"bottom-right",closeButton:true,opacity:90,autoClose:true,autoCloseInterval:12000,waitOnClose:true,fadeIn:true,fadeInSteps:15,fadeOut:true,fadeOutSteps:10,zIndex:5000});if(arguments.length>=4&&p_oAdviceSettings!=null&&typeof(p_oAdviceSettings)=="object")
{for(var param in p_oAdviceSettings)
{oWnd.oMsgNotifier.setContentAttribute(contentKey,param,p_oAdviceSettings[param]);}}
if(p_strHead!=null&&p_oAdviceSettings!=null&&typeof(p_oAdviceSettings.closeButton)!="boolean")
oWnd.oMsgNotifier.setContentAttribute(contentKey,"closeButton",true);oWnd.oMsgNotifier.show(contentKey);return contentKey;}}
return false;}
function RootAdviceClose(p_strNotifyId,p_oWindow)
{setFrameConsts();if(arguments.length>=2||p_oWindow!=null&&typeof p_oWindow=="object")
{oWnd=p_oWindow;}
else
{var oWndAppmain=ContainerAgent.getAppMainFrame();var oWndStage=ContainerAgent.getStageFrame();if(oWndAppmain)
{oWnd=oWndAppmain;}
else
{if(oWndStage)
{oWnd=oWndStage;}}}
if(oWnd)
{if(oWnd.oMsgNotifier&&typeof oWnd.oMsgNotifier=="object")
{if(arguments.length<1)
oWnd.oMsgNotifier.close(true);else
oWnd.oMsgNotifier.close(true,p_strNotifyId);return true;}}
return false;}
function RootTimeOutSession(p_strUrl)
{self.oUp.strReloginUrl=p_strUrl;var oAction=new upActionControl();oAction.oHtml=new Object();oAction.oTarget=new upTarget();oAction.oTarget.rq_Template="internal/system/vm/html/login/getLogout.vm";oAction.requestType=2;oAction.oXmlHttp.bResetTimeOut=false;oAction.oXmlHttp.bAsync=false;oAction.oXmlHttp.bProcessResponse=true;oAction.oXmlHttp.processResponse=processResponseTimeoutSession;oAction.processRequest();}
function processResponseTimeoutSession()
{if(oRequest.readyState==State.done)
{if(oRequest.status==Status.ok)
{var status;var oXMLDocument=oRequest.responseXML.documentElement;if(oXMLDocument!=null)status=oXMLDocument.getElementsByTagName('status')[0].firstChild.data;if(status=="stale"||status=="loggedout")
{var l_strUrl;if(this.loggedoutUrl&&this.loggedoutUrl!="")
{l_strUrl="loggedout.html?url="+Helper.hexEncodeString(this.loggedoutUrl);}
else
{l_strUrl=Helper.hexDecodeString(self.oUp.strReloginUrl);l_strUrl=Helper.deleteParamFromUrl("rq_SId",l_strUrl);l_strUrl=Helper.deleteParamFromUrl("rq_xhr",l_strUrl);l_strUrl=Helper.deleteParamFromUrl("rq_MenuGuid",l_strUrl);l_strUrl="loggedout.html?url="+Helper.hexEncodeString(l_strUrl);}
Helper.deleteCookie("co_SId");if(self.oUp&&self.oUp.oFormatInfo)
{l_strUrl=Helper.setQsValueByParam("rq_Lang",self.oUp.oFormatInfo.lang,l_strUrl);l_strUrl=Helper.setQsValueByParam("rq_Layout",self.oUp.oFormatInfo.layoutDir,l_strUrl);l_strUrl=Helper.setQsValueByParam("rq_Portal",self.oUp.portalName,l_strUrl);}
document.location.href=l_strUrl;}
else
{setTimeOut(self.oUp.strReloginUrl,false,self.oUp.lTimeOutPortal);}}
else
{alert("Http Error "+oRequest.status+"\n"+oRequest.statusText+"\nfunction: processTimeoutSession");}}}
function RootTimeOutSessionWarn()
{return;var oAction=new upActionControl();oAction.oHtml=new Object();oAction.oTarget=new upTarget();oAction.oTarget.rq_Template="internal/system/vm/html/login/logoutwarn.vm";oAction.requestType=2;oAction.oXmlHttp.bResetTimeOut=false;oAction.oXmlHttp.bAsync=true;oAction.oXmlHttp.bProcessResponse=true;oAction.oXmlHttp.processResponse=processTimeoutWarnText;oAction.processRequest();return false;}
function processTimeoutWarnText()
{if(oRequest.readyState==State.done)
{if(oRequest.status==Status.ok)
{var bReturn=true;var oWnd=null;var oXmlResponseDoc=oRequest.responseXML.documentElement;if(oXmlResponseDoc&&oXmlResponseDoc.firstChild)
{var strContent=oXmlResponseDoc.firstChild.data;var l_aSettings=new Array();l_aSettings["autoClose"]=false;l_aSettings["closeButton"]=false;l_aSettings["waitOnClose"]=false;l_aSettings["fadeIn"]=true;l_aSettings["fadeInSteps"]=4;l_aSettings["fadeOut"]=true;l_aSettings["fadeOutSteps"]=4;oHtmlRoot.oUp.adviceShow(null,strContent,"logOutWarning",l_aSettings);}}
else
{alert("Http Error "+oRequest.status+"\n"+oRequest.statusText+"\nfunction: processTimeoutWarnText");}}}
function RootResetTimeOut(p_bServerReset)
{if(oHtmlRoot&&oHtmlRoot.oUp&&!isNaN(oHtmlRoot.oUp.l_lTimeOut))
{this.oHtml.clearTimeout(oHtmlRoot.oUp.l_lTimeOutVar);this.oHtml.clearTimeout(oHtmlRoot.oUp.l_lTimeOutWarnVar);oHtmlRoot.oUp.l_lTimeOutVar=oHtmlRoot.oUp.oHtml.setTimeout("oHtmlRoot.oUp.timeOutSession('"+oHtmlRoot.oUp.l_strTimeOutRequest+"')",oHtmlRoot.oUp.l_lTimeOut);oHtmlRoot.oUp.l_lTimeOutWarnVar=oHtmlRoot.oUp.oHtml.setTimeout("oHtmlRoot.oUp.timeOutSessionWarn()",oHtmlRoot.oUp.l_lTimeOutWarn);if(arguments.length==1&&p_bServerReset)
{var oAction=new upActionControl();oAction.oHtml=new Object();oAction.oTarget=new upTarget();oAction.oTarget.rq_Template="internal/system/vm/html/login/getRefreshServerTimeout.vm";oAction.requestType=2;oAction.oXmlHttp.bResetTimeOut=false;oAction.oXmlHttp.bAsync=true;oAction.oXmlHttp.bProcessResponse=true;oAction.oXmlHttp.processResponse=processRefreshServerTimeout;oAction.processRequest();}}}
function processRefreshServerTimeout()
{if(oRequest.readyState==State.done)
{if(oRequest.status==Status.ok)
{l_response=oRequest.responseXML.documentElement;if(l_response.getElementsByTagName('status')[0].firstChild.data!="1")
{alert("Could not refresh session timeout!\nfunction: processRefreshServerTimeout")}}
else
{alert("Http Error "+oRequest.status+"\n"+oRequest.statusText+"\nfunction: processResetTimeOut");}}}
function RootUnregisterFrame(p_frame)
{if(this.oRegistry.oFrameReg[p_frame])
{this.oRegistry.oFrameReg[p_frame]=null;}
this.rebuildFrameReg();return this.oRegistry.oFrameReg;}
function RootRebuildFrameReg()
{var newFrameReg={};for(var frame in this.oRegistry.oFrameReg)
{if(this.oRegistry.oFrameReg[frame]!=null)
{newFrameReg[frame]=this.oRegistry.oFrameReg[frame];}}
this.oRegistry.oFrameReg=newFrameReg;}
function RootRegisterFrame(p_frame,oFrame)
{this.rebuildFrameReg();this.oRegistry.oFrameReg[p_frame]=oFrame;return this.oRegistry.oFrameReg[p_frame];}
function RootUnregisterPopup(popup)
{if(this.oRegistry.oPopUpReg[popup])
{this.oRegistry.oPopUpReg[popup]=null;}
this.rebuildPopUpReg();return this.oRegistry.oPopUpReg;}
function RootRebuildPopUpReg()
{var newPopUpReg={};for(var popup in this.oRegistry.oPopUpReg)
{if(this.oRegistry.oPopUpReg[popup]!=null)
{newPopUpReg[popup]=this.oRegistry.oPopUpReg[popup];}}
this.oRegistry.oPopUpReg=newPopUpReg;}
function RootRegisterPopup(popup,oPopup)
{this.rebuildPopUpReg();this.oRegistry.oPopUpReg[popup]=oPopup;return this.oRegistry.oPopUpReg[popup];}
function RootCreatePopUp(p_wndName)
{if(!p_wndName||p_wndName=="")
{var wndName="newWnd";}
else
{var wndName=p_wndName;}
var wnd=this.registerPopup(wndName,new upPopUpWindow());wnd.id=wndName;wnd.aObjects={};wnd.setRefToRootWin();return wnd;}
function RootRegisterToolTipPopup(popup,oPopup)
{this.rebuildToolTipPopupReg();this.oRegistry.oToolTipPopupReg[popup]=oPopup;return this.oRegistry.oToolTipPopupReg[popup];}
function RootUnregisterToolTipPopup(popup)
{if(this.oRegistry.oToolTipPopupReg[popup])
{this.oRegistry.oToolTipPopupReg[popup]=null;}
this.rebuildToolTipPopupReg();return this.oRegistry.oToolTipPopupReg;}
function RootPopToolTipPopup()
{var counter1=0;var counter2=0;var newToolTipPopupReg={};for(var popup in this.oRegistry.oToolTipPopupReg)
{counter1+=1;}
for(var popup in this.oRegistry.oToolTipPopupReg)
{counter2+=1;if(counter2<counter1)
{newToolTipPopupReg[popup]=this.oRegistry.oToolTipPopupReg[popup];}
else
{this.oRegistry.oToolTipPopupReg[popup].closePopup();}}
this.oRegistry.oToolTipPopupReg=newToolTipPopupReg;if(counter2==1)return true;return false;}
function RootCountToolTipPopup()
{var counter=0;for(var popup in this.oRegistry.oToolTipPopupReg)
{counter+=1;}
return counter;}
function RootRebuildToolTipPopupReg()
{var newToolTipPopupReg={};for(var popup in this.oRegistry.oToolTipPopupReg)
{if(this.oRegistry.oToolTipPopupReg[popup]!=null)
{newToolTipPopupReg[popup]=this.oRegistry.oToolTipPopupReg[popup];}}
this.oRegistry.oToolTipPopupReg=newToolTipPopupReg;}
function RootGetFup(p_fupId)
{var oFup=null;if(this.oRegistry.oFuncPartReg[p_fupId]!=null&&typeof this.oRegistry.oFuncPartReg[p_fupId].oWindow!="unknown"&&this.oRegistry.oFuncPartReg[p_fupId].oWindow!=null&&this.oRegistry.oFuncPartReg[p_fupId].oWindow.oHtml!=null&&typeof this.oRegistry.oFuncPartReg[p_fupId].oWindow.oHtml.document!="unknown")
{oFup=this.oRegistry.oFuncPartReg[p_fupId];}
else
{var stack=this.oRegistry.oFuncPartRegStack;for(var i=stack.length-1;i>=0;i--)
{if(stack[i]!=null&&typeof stack[i].oWindow!="unknown"&&stack[i].oWindow!=null&&stack[i].id!="undefined"&&stack[i].id==p_fupId&&stack[i].oWindow!=null&&stack[i].oWindow.oHtml!=null)
{oFup=this.oRegistry.oFuncPartRegStack[i];this.oRegistry.oFuncPartReg[p_fupId]=oFup;this.oRegistry.oFuncPartRegStack[i]=null;}}}
return oFup;}
function RootRegisterFup(p_fupId,oNewFup)
{if(arguments.length<2)
return false;var newFuncPartReg={};var oFup=null;for(var fupId in this.oRegistry.oFuncPartReg)
{if(this.oRegistry.oFuncPartReg[fupId]!=null&&typeof this.oRegistry.oFuncPartReg[fupId].oWindow!="unknown"&&this.oRegistry.oFuncPartReg[fupId].oWindow&&this.oRegistry.oFuncPartReg[fupId].oWindow.oHtml&&typeof this.oRegistry.oFuncPartReg[fupId].oWindow.oHtml.document!="unknown")
if(this.oRegistry.oFuncPartReg[fupId]!=null)
{var oFup=this.getFup(fupId);newFuncPartReg[fupId]=oFup;if(fupId==p_fupId)
{if(typeof oFup.oWindow!="unknown"&&oFup.oWindow!=null&&oFup.oWindow.id&&oFup.oWindow.id!=oNewFup.oWindow.id)
{this.oRegistry.oFuncPartRegStack[this.oRegistry.oFuncPartRegStack.length]=oFup;}}}}
newFuncPartReg[p_fupId]=oNewFup;this.oRegistry.oFuncPartReg=newFuncPartReg;return true;}
function RootUnregisterFup(p_fupId)
{if(arguments.length<1)
return false;if(this.oRegistry.oFuncPartReg[p_fupId])
{var newFuncPartReg={};for(var fupId in this.oRegistry.oFuncPartReg)
{if(fupId!=p_fupId&&this.oRegistry.oFuncPartReg[fupId]!=null&&typeof this.oRegistry.oFuncPartReg[fupId].oWindow!="unknown")
{newFuncPartReg[fupId]=this.oRegistry.oFuncPartReg[fupId];}}
var stack=this.oRegistry.oFuncPartRegStack;for(var i=stack.length-1;i>=0;i--)
{if(stack[i]!=null&&typeof stack[i].oWindow!="unknown"&&stack[i].oWindow!=null&&stack[i].id!="undefined"&&stack[i].id==p_fupId)
{this.oRegistry.oFuncPartRegStack[i]=null;}}
this.oRegistry.oFuncPartReg[p_fupId].oWindow=null;this.oRegistry.oFuncPartReg[p_fupId].oPage=null;if(this.oRegistry.oFuncPartReg[p_fupId].oHtml)
this.oRegistry.oFuncPartReg[p_fupId].oHtml.oUp=null;this.oRegistry.oFuncPartReg[p_fupId].oStyle=null;this.oRegistry.oFuncPartReg[p_fupId].oHtml=null;this.oRegistry.oFuncPartReg[p_fupId]=null;this.oRegistry.oFuncPartReg=newFuncPartReg;}
return true;}
function RootClosePopUp(wndName)
{var wnd=null;if(!wndName||wndName=="")
{return false;}
wnd=this.oRegistry.oPopUpReg[wndName];if(wnd)
wnd.byUpClose=true;if(wnd&&wnd.oHtml&&wnd.oHtml!=null&&wnd.oHtml.open&&!wnd.oHtml.closed)
{wnd.oHtml.focus();if(wnd.oHtml.unloadHandler&&!this.closeAll)
{wnd.oHtml.unloadHandler();}
wnd.hide();}
this.unregisterPopup(wndName);this.unregisterFrame(wndName);return true;}
function RootCloseAllPopUp()
{for(var i in this.oRegistry.oPopUpReg)
{if(i!="upType"&&i!=null)
{this.closePopUp(i);}}
return true;}
function RootCleanUp()
{this.closeAll=true;var retStatus=this.closeAllPopUp();if(retStatus)
{if(this.oPage)
{this.oPage.oWindow=null;if(this.oPage.oHtml)
{this.oPage.oHtml.oUp=null;}
this.oPage.oHtml=null;this.oPage.oStyle=null;this.oPage=null;}
this.aInfoPipe=null;this.oFrameReg=null;this.oMenuReg=null;this.oFormatInfo=null;this.oMessage=null;this.oFormatInfo=null;this.oUserInfo=null;}}
function upFormatInfo()
{this.upType="upFormatInfo";this.dateSep="";this.dateFormatString="";this.timeFormatString="";this.leadingNulls="";this.decSep="";this.groupSep="";this.firstDayOfWeek="1";this.lang="de";}
function upUserInfo()
{this.upType="upUserInfo";this.password="";this.userName="";}
function upRegistry()
{this.upType="upRegistry";this.oFuncPartReg={};this.oFuncPartRegStack={};this.oFrameReg={};this.oFrameReg["wndRoot"]=self;this.oPopUpReg={};this.oToolTipPopupReg={};this.oMenuReg={};this.oJsReg=new upJsObjectRegistry();}
function upJsObjectRegistry()
{this.oObjects={};this.oObjects["upContextMenu"]={key:"upContextMenu",wrapper:"upContextMenu_Wrapper",jsFile:"include/contextmenu.js"};this.oObjects["upFilterGroup"]={key:"upFilterGroup",wrapper:"upFilterGroup_Wrapper",jsFile:"include/drfilter.js"};this.oObjects["upFilterTools"]={key:"upFilterTools",wrapper:"upFilterTools_Wrapper",jsFile:"include/filtertools.js"};this.oObjects["upScaleInterval"]={key:"upScaleInterval",wrapper:"upScaleInterval_Wrapper",jsFile:"include/scaleinterval.js"};this.oObjects["upGroovyCalNavigator"]={key:"upGroovyCalNavigator",wrapper:"upGroovyCalNavigator_Wrapper",jsFile:"include/groovycalnav.js"};this.oObjects["upPortal"]={key:"upPortal",wrapper:"upPortal_Wrapper",jsFile:"include/portal.js"};}
upJsObjectRegistry.prototype.getObject=upJsObjectRegistryGetObject;upJsObjectRegistry.prototype.loadObject=upJsObjectRegistryLoadObject;upJsObjectRegistry.prototype._loadObject=upJsObjectRegistry_LoadObject;function upJsObjectRegistryGetObject(key,win)
{var l_Ret=false;var l_oRegEntry=this.oObjects[key];if(typeof(l_oRegEntry)!="undefined")
{var l_aBuffer=new Array();if(this.loadObject(key))
{l_aBuffer.push(l_oRegEntry.wrapper+"(");for(var i=1;i<arguments.length;i++)
{if(i>1)l_aBuffer.push(",");l_aBuffer.push("arguments["+i+"]")}
l_aBuffer.push(")");l_Ret=eval(l_aBuffer.join(""));}}
return l_Ret;}
function upJsObjectRegistryLoadObject(key)
{var l_bRet=false;var l_oRegEntry=this.oObjects[key];if(typeof(l_oRegEntry)!="undefined")
{var test=eval("typeof("+l_oRegEntry.wrapper+")");if(test=="function"||test=="object")
l_bRet=true;else
l_bRet=this._loadObject(l_oRegEntry);}
return l_bRet;}
function upJsObjectRegistry_LoadObject(p_oRegEntry)
{Loader._loadJsFileOnDemand(p_oRegEntry.jsFile);var test=eval("typeof("+p_oRegEntry.wrapper+")");return(test=="function"||test=="object");}
function createBrowserHistory()
{if(!oHtmlRoot.oUp.oWAISettings.bBackButton)
return false;Browser.History=new BrowserHistory();Browser.HistoryManager=new HistoryManager();Browser.HistoryManager.initialize();return true;}
function BrowserHistory()
{}
function BrowserHistoryEntry(p_strUrl,p_aPostData)
{this.aQueryVariables=new Array();this.aFormVariables=new Array();if(p_strUrl.indexOf("?")>-1)
{var strQueryString=p_strUrl.substring(p_strUrl.indexOf("?")+1,p_strUrl.length);if(strQueryString.indexOf("#")>-1)
{strQueryString=strQueryString.substring(0,strQueryString.indexOf("#"));}
var aQueryString=strQueryString.split("&");for(var i=0;i<aQueryString.length;i++)
{var aQsPart=aQueryString[i].split("=");if(aQsPart[0]=="rq_SId"||aQsPart[0]=="rq_Lang")
continue;this.aQueryVariables.push({name:aQsPart[0],value:aQsPart[1]});}}
if(p_aPostData!=null)
{for(var i=0;i<p_aPostData.length;i++)
{if(p_aPostData[i].name=="fr_ActionId")
{this.aFormVariables.push({name:"fr_ActionId",value:""});}
else
{this.aFormVariables.push({name:p_aPostData[i].name,value:p_aPostData[i].value});this.aFormVariables[p_aPostData[i].name]=p_aPostData[i].value;}}}}
function HistoryManager()
{this.iCheckInterval=1000;this.iHistoryId=0;this.iMaxEntries=100;this.add=HistoryManagerAdd;this.check=HistoryManagerCheck;this.change=HistoryManagerChange;this.initialize=HistoryManagerInitialize;this.shift=HistoryManagerShift;this.onIFrameLoaded=HistoryManagerOnIFrameLoaded;}
function HistoryManagerShift()
{var aTempHistory={};var c1=1;try
{for(var c2 in Browser.History)
{if(c1>1)
aTempHistory[c2]=Browser.History[c2];c1++;}}
catch(e)
{ErrorHandler.warn(e,"HistoryManager.shift");}
Browser.History=aTempHistory;}
function HistoryManagerInitialize()
{this.iHistoryId=1;if(Browser.ie7down&&document.getElementById("ID_HistoryIframe"))
{var doc=document.getElementById("ID_HistoryIframe").contentWindow.document;doc.open("javascript:'<html></html>'");doc.write("<html><head><scri"+"pt type=\"text/javascript\">parent.Browser.HistoryManager.onIFrameLoaded("+this.iHistoryId+",'HistoryId');</scri"+"pt></head><title>"+document.title+"</title><body></body></html>");doc.close();}
else
{LocationWrapper.setHistoryId(this.iHistoryId.toString());}
if(typeof window.onhashchange!="undefined"&&!Browser.ie7down)
window.onhashchange=function(){Browser.HistoryManager.check();};else
window.setInterval("if(Browser.HistoryManager)Browser.HistoryManager.check();",this.iCheckInterval);}
function HistoryManagerAdd(p_strUrl,p_aPostData)
{this.iHistoryId=parseInt(this.iHistoryId)+1;var l_strOldLocationHistoryId=LocationWrapper.getHistoryId();var oHtmlStageFrame=ContainerAgent.getStageFrame();if(Browser.ie7down&&document.getElementById("ID_HistoryIframe"))
{if(l_strOldLocationHistoryId=="")
{var doc=document.getElementById("ID_HistoryIframe").contentWindow.document;doc.title=oHtmlStageFrame.document.title;doc.open("javascript:'<html></html>'");doc.write("<html><head><scri"+"pt type=\"text/javascript\">parent.Browser.HistoryManager.onIFrameLoaded("+this.iHistoryId+",'Hash');</scri"+"pt></head><title></title><body></body></html>");doc.close();}
else
{var doc=document.getElementById("ID_HistoryIframe").contentWindow.document;doc.title=oHtmlStageFrame.document.title;doc.open("javascript:'<html></html>'");doc.write("<html><head><scri"+"pt type=\"text/javascript\">parent.Browser.HistoryManager.onIFrameLoaded("+this.iHistoryId+",'HistoryId');</scri"+"pt></head><title></title><body></body></html>");doc.close();}}
else
{var oldTitle=document.title;document.title=oHtmlStageFrame.document.title;if(l_strOldLocationHistoryId=="")
{var l_iHistoryIdOld=this.iHistoryId-1;LocationWrapper.setHistoryId(l_iHistoryIdOld.toString());LocationWrapper.setHash(this.iHistoryId.toString(),"");}
else
{LocationWrapper.setHistoryId(this.iHistoryId.toString());}
document.title=oldTitle;}
if(this.iHistoryId-1>this.iMaxEntries)
{this.shift();}
Browser.History[this.iHistoryId]=new BrowserHistoryEntry(p_strUrl,p_aPostData);return true;}
function HistoryManagerOnIFrameLoaded(p_iHistoryId,p_strMode)
{if(p_strMode=="Hash")
{LocationWrapper.setHash(p_iHistoryId.toString(),"");}
else if(p_strMode=="HistoryId")
{LocationWrapper.setHistoryId(p_iHistoryId.toString());}
return;}
function HistoryManagerCheck()
{var l_strHistoryId=LocationWrapper.getHistoryId();if(l_strHistoryId=="")
{return;}
var l_iHistoryId=parseInt(l_strHistoryId);if(l_iHistoryId!=this.iHistoryId)
{this.change(l_iHistoryId);return;}
return;}
function HistoryManagerChange(p_iHistoryId)
{this.iHistoryId=p_iHistoryId;if(p_iHistoryId==1)
{document.location.href=oHtmlRoot.oUp.connector;return;}
if(typeof Browser.History[p_iHistoryId]=="undefined")
{return;}
var oHistoryEntry=Browser.History[p_iHistoryId];if(document.getElementById("Container_Stage"))
{oFupLoader=new upStageLoader();oFupLoader.loadFromHistory(oHistoryEntry);return;}
else if(oHtmlRoot.oUp.Stage&&typeof oHtmlRoot.oUp.oRegistry.oFrameReg[oHtmlRoot.oUp.Stage]=="undefined")
{}
else if(oHtmlRoot.oUp.Stage&&oHtmlRoot.oUp.oRegistry.oFrameReg[oHtmlRoot.oUp.Stage].Loader)
{oHtmlRoot.oUp.oRegistry.oFrameReg[oHtmlRoot.oUp.Stage].Loader.loadFromHistory(oHistoryEntry);return;}
return;}
