function doGetPage(Url){Url=Base64.decode(Url);var ResponseID=Utility.getParamByName(Url,'ResponseID');var Callback=Utility.getParamByName(Url,'Callback');var LoadModule=Utility.getParamByName(Url,'LoadModule');var ShowLoading=Utility.getParamByName(Url,'ShowLoading');if(ShowLoading==null)ShowLoading='Y';if(ResponseID=='')ResponseID=null;if(LoadModule=='Y'&&ResponseID==null)ResponseID='Body';if(Url!='')App.Load(Url,ResponseID,App.CommonCallback,ShowLoading);}function PageLocator(propertyToUse,dividingCharacter){this.propertyToUse=propertyToUse;this.defaultQS='';this.dividingCharacter=dividingCharacter;}PageLocator.prototype.getLocation=function(){return eval(this.propertyToUse);};PageLocator.prototype.getHash=function(){var url=this.getLocation();if(url.indexOf(this.dividingCharacter)>-1){var url_elements=url.split(this.dividingCharacter);return url_elements[url_elements.length-1];}else return this.defaultQS;};PageLocator.prototype.getHref=function(){var url=this.getLocation();var url_elements=url.split(this.dividingCharacter);return url_elements[0];};PageLocator.prototype.makeNewLocation=function(new_qs){return this.getHref()+this.dividingCharacter+new_qs;};function AjaxIframesFixer(iframeid){this.iframeid=iframeid;if(document.getElementById(iframeid)){this.locator=new PageLocator('document.frames["'+this.iframeid+'"].getLocation()','?');this.windowlocator=new PageLocator('window.location.href','#');this.timer=new Timer(this);this.delayInit();}};AjaxIframesFixer.prototype.delayInit=function(){this.timer.setTimeout('checkBookmark',100,'');};AjaxIframesFixer.prototype.checkBookmark=function(){window.location=this.windowlocator.makeNewLocation(this.locator.getHash());this.checkWhetherChanged(0);};AjaxIframesFixer.prototype.checkWhetherChanged=function(location){if(this.locator.getHash()!=location){doGetPage(this.locator.getHash());window.location=this.windowlocator.makeNewLocation(this.locator.getHash());}this.timer.setTimeout('checkWhetherChanged',200,this.locator.getHash());};function AjaxUrlFixer(){this.locator=new PageLocator('window.location.href','#');this.timer=new Timer(this);this.checkWhetherChanged(0);}AjaxUrlFixer.prototype.checkWhetherChanged=function(location){if(this.locator.getHash()!=location)doGetPage(this.locator.getHash());this.timer.setTimeout('checkWhetherChanged',200,this.locator.getHash());};function FixBackAndBookmarking(){if(!document.getElementById||!document.getElementsByTagName)return;if(document.msIE)document.fix=new AjaxIframesFixer(document.iframeAjaxFixId);else document.fix=new AjaxUrlFixer();}function makeNewLink(linkObj,location){location=Base64.encode(location);if(document.msIE)document.getElementById(document.iframeAjaxFixId).setAttribute('src',document.ajaxFixPage+'?'+location);linkObj.href='#'+location;}function makeNewLocation(location){location=Base64.encode(location);if(document.msIE)document.getElementById(document.iframeAjaxFixId).setAttribute('src',document.ajaxFixPage+'?'+location);else{var currLocation=window.location.href;if(currLocation.indexOf('#')>-1){var urlElements=currLocation.split('#');window.location.href=urlElements[0]+'#'+location;}else window.location.href+='#'+location;}}function ajaxFixDetectBrowser(iframeAjaxFixId,ajaxFixPage){var detect=navigator.userAgent.toLowerCase();if(detect.indexOf("msie")>-1){document.msIE=true;document.iframeAjaxFixId=iframeAjaxFixId;document.ajaxFixPage=ajaxFixPage;}if(document.msIE){var windowlocator=new PageLocator('window.location.href','#');document.write('<iframe id="'+iframeAjaxFixId+'" name="'+iframeAjaxFixId+'" src="'+ajaxFixPage+'?'+windowlocator.getHash()+'" style="display:none"></iframe>');}}
