/* *+------------------------------------------------------------------------+ *| Licensed Materials - Property of IBM *| *| IBM Cognos Products: CPSCRN *| *| (C) Copyright IBM Corp. 2009, 2010 *| *| US Government Users Restricted Rights - Use, duplication or *| disclosure restricted by GSA ADP Schedule Contract with IBM Corp. *| *+------------------------------------------------------------------------+ */ _F_Config={origObj:window._F_Config!==undefined?window._F_Config:null,version:(window._F_Config!==undefined&&window._F_Config.version!==undefined)?window._F_Config.version:"1.0.2",browser:"unknown",browserVersion:"unknown",OS:"unknown",enableLog:false,xmlHttpDefault:null,webContent:(window._F_Config!==undefined&&window._F_Config.webContent!==undefined)?window._F_Config.webContent:null,gateway:(window._F_Config!==undefined&&window._F_Config.gateway!==undefined)?window._F_Config.gateway:null,application:(window._F_Config!==undefined&&window._F_Config.application!==undefined)?window._F_Config.application:null,help:(window._F_Config!==undefined&&window._F_Config.help!==undefined)?window._F_Config.help:null,responsePattern:(window._F_Config!==undefined&&window._F_Config.responsePattern!==undefined)?window._F_Config.responsePattern:null,cookieSecure:(window._F_Config!==undefined&&window._F_Config.cookieSecure!==undefined)?window._F_Config.cookieSecure:null,initialize:function(){ this.browser=this.lookup(this.browsers).toLowerCase()||"unknown"; this.browserVersion=this.parseVersion(navigator.userAgent)||this.parseVersion(navigator.appVersion)||"unknown"; this.OS=this.lookup(this.systems)||"unknown"; this.xmlHttpDefault=this.findXMLHttpActiveXVersion(); if(this.origObj!=null){ for(var _1 in this.origObj){ if((this[_1]===undefined)&&!(this.origObj[_1] instanceof Function)){ this[_1]=this.origObj[_1]; } } delete this.origObj; } if(window.CAMAuthenticityTokenSession){ var _2=new CAMAuthenticityTokenSession(); this.authToken=_2.generate(); } },getSecure:function(){ if(this.cookieSecure==="true"){ return true; } return null; },expandMacros:function(_3,_4){ var _5=this.gateway; var _6=this.webContent; var _7=this.productLocale; var _8=this.skin; if(typeof _4!=="undefined"){ if(typeof _4.gateway!=="undefined"){ _5=_4.gateway; } if(typeof _4.webContent!=="undefined"){ _6=_4.webContent; } if(typeof _4.productLocale!=="undefined"){ _7=_4.productLocale; } if(typeof _4.skin!=="undefined"){ _8=_4.skin; } } return _3.replace(/\$CGI\$/g,_5).replace(/\$WEB\$/g,_6).replace(/\$PRODUCT_LOCALE\$/g,_7).replace(/\$SKIN\$/g,_8); },buildGatewayURI:function(_9){ return this.gateway+(_9||""); },buildApplicationURI:function(_a,_b){ return this.gateway+(_a||this.application)+(_b||""); },buildWebContentURI:function(_c){ return this.webContent+(_c||""); },lookup:function(_d){ var i,l=_d.length; for(i=0;i/g,">"); },htmlDecode:function(_1e){ return _1e.replace(/\</g,"<").replace(/\>/g,">").replace(/\&/g,"&"); },xmlEncode:function(_1f){ return _1f.replace(/\&/g,"&").replace(/").replace(/\'/g,"'").replace(/\"/g,"\"").replace(/\&/g,"&"); }}; function urlEncode(_21){ _F_log("W","DEPRECATED FUNCTION: urlEncode --> _F_Strings.urlEncode"); return _F_Strings.urlEncode(_21); }; function htmlEncode(_22){ _F_log("W","DEPRECATED FUNCTION: htmlEncode --> _F_Strings.htmlEncode"); return _F_Strings.htmlEncode(_22); }; function xmlEncode(_23){ _F_log("W","DEPRECATED FUNCTION: xmlEncode --> _F_Strings.xmlEncode"); return _F_Strings.xmlEncode(_23); }; function _F_strip(str){ _F_log("W","DEPRECATED FUNCTION: _F_strip --> _F_Strings.normalize"); return _F_Strings.normalize(str); }; var _F_Array={indexOf:function(_25,_26,_27,_28){ for(var i=+_27||0,l=_25.length;i=0){ _39.splice(i,1); return obj; } } return null; },removeAt:function(_3c,i){ if(i!==undefined){ _3c.splice(i,1); } }}; function _F_log(_3e,msg){ if(!_F_Config.enableLog){ return; } if(window.console!==undefined){ var _40=[]; for(var i=1;i250){ _4f(); return; } try{ for(var i=0;i=0)?"&":"?")+_5b; _5b=""; } } if((_5a=="post"||_5a=="put")&&(_55.postBody===undefined)){ _5c=url.split("?"); url=_5c[0]; _5b=_5c[1]; } this.transport=_F_Ajax.getTransport(); this.transport.open(_5a.toUpperCase(),url,_57); var _5f={"X-Fragment-Version":_F_Config.version,"X-Controller-Agent":"fragment/"+_F_Config.version,"Accept":"text/javascript, text/html, application/xml, text/xml, */*"}; if(_5a=="post"){ _5f["Content-Type"]=_58+(_59?"; charset="+_59:""); var _60=_F_Document.getCookie("XSRF-TOKEN"); if(_60){ _5f["X-XSRF-TOKEN"]=_60; } } for(var rh in _55.requestHeaders){ _5f[rh]=_55.requestHeaders[rh]; } for(var h in _5f){ this.transport.setRequestHeader(h,_5f[h]); } if(_57){ var _63=this; this.transport.onreadystatechange=function(){ try{ if(_63.transport.readyState==4){ if(_63.transport.status>=200&&_63.transport.status<300){ if(typeof _55.onSuccess=="function"){ _55.onSuccess.call(_63,_63.transport); } }else{ if(typeof _55.onFailure=="function"){ _55.onFailure.call(_63,_63.transport); } } _63.transport.onreadystatechange=_F_Config.emptyFunction; } } catch(e){ try{ if(typeof _55.onException=="function"){ if(this.status!==0){ _55.onException.call(this,e); } } } catch(e1){ _F_alert(e1); } } }; } this.transport.send(_55.postBody||_5b); if(!_57){ try{ if(this.transport.status>=200&&this.transport.status<300){ if(typeof _55.onSuccess=="function"){ _55.onSuccess.call(this,this.transport); } }else{ if(typeof _55.onFailure=="function"){ _55.onFailure.call(this,this.transport); } } } catch(e){ try{ if(typeof _55.onException=="function"){ _55.onException.call(this,e); } } catch(e1){ _F_alert(e1); } } } } catch(e2){ try{ if(typeof _55.onException=="function"){ _55.onException.call(this,e2); } } catch(e3){ _F_alert(e3); } this.transport.abort(); } }; _F_Ajax.Request.prototype={getHeader:function(_64){ try{ return this.transport.getResponseHeader(_64); } catch(e){ return null; } },getResponseXml:function(){ var _65=null; if(this.transport.status===200){ if("ActiveXObject" in window){ _65=new ActiveXObject("Microsoft.XMLDOM"); _65.async="false"; _65.loadXML(this.transport.responseText); }else{ var _66=new DOMParser(); _65=_66.parseFromString(this.transport.responseText,"text/xml"); } } return _65; },getResponseText:function(){ return (this.transport.status===200)?this.transport.responseText:null; },getStatus:function(){ return this.transport.status; }}; var _F_Document={associate:function(_67,obj,_69){ return function(e){ e=e||window.event; return obj[_69](e,_67); }; },addEventListener:function(_6b,_6c,_6d,_6e){ _6c=_6c.toLowerCase(); if(_6b.addEventListener){ _6b.addEventListener(_6c,_6d,_6e); }else{ if(_6b.attachEvent){ _6b.attachEvent("on"+_6c,_6d); }else{ _6b["on"+_6c]=_6d; } } },buildHeadTagId:function(id,_70){ return (id+_70.toLowerCase()+"s"); },addHeadTag:function(_71,_72,id){ try{ var _74=document.getElementsByTagName("HEAD").item(0); var _75,_76; if(id){ _75=$(id); if(_75&&_75.parentNode==_74){ _74.removeChild(_75); } } _71=_71.toUpperCase(); _75=document.createElement(_71); if(id){ _75.id=id; } if(_71=="SCRIPT"){ _75.type="text/javascript"; _75.text=_72; }else{ if(_71=="STYLE"){ _75.type="text/css"; if(_75.styleSheet){ _75.styleSheet.cssText=_72; }else{ _76=document.createTextNode(_72); _75.appendChild(_76); } }else{ _76=document.createTextNode(_72); _75.appendChild(_76); } } _74.appendChild(_75); } catch(e){ _F_log("E",e); } },removeHeadTag:function(id){ if(id){ var _78=document.getElementsByTagName("HEAD").item(0); var _79=$(id); if(_79&&_79.parentNode==_78){ _78.removeChild(_79); } domtag=null; } },extractTagText:function(_7a,_7b){ var _7c=_7a.toLowerCase(); _7b=_7b.toLowerCase(); var _7d=_7c.indexOf("<"+_7b); if(_7d==-1){ return ""; } _7d=_7c.indexOf(">",_7d+_7b.length+1); if(_7d==-1){ return ""; } _7d++; var _7e=_7c.indexOf("",_7d); if(_7e==-1){ return ""; } return _7a.substring(_7d,_7e); },addHeadUniqueTag:function(_7f,id,_81){ if(_7f){ var _82=""; var i,l=_7f.length; for(i=0;i0){ var _87=_85+"="; var _88=document.cookie.indexOf(_87); if(_88!=-1){ var _89=_88+_87.length; var end=document.cookie.indexOf(";",_89); if(end==-1){ end=document.cookie.length; } _86=unescape(document.cookie.substring(_89,end)); } } return _86; },setCookie:function(_8b,_8c,_8d,_8e,_8f,_90){ if(typeof _8d=="number"){ _8d=new Date(new Date().getTime()+(1000*_8d)); } if(!_90){ _90=_F_Config.getSecure(); } document.cookie=_8b+"="+_8c+((_8d)?"; expires="+_8d.toGMTString():"")+((_8e)?"; path="+_8e:"")+((_8f)?"; domain="+_8f:"")+((_90)?"; secure":""); },getTextContent:function(obj){ if(obj.innerText){ return obj.innerText; }else{ if(obj.textContent){ return obj.textContent; }else{ return ""; } } },parseXml:function(_92){ var _93=findXMLHttpActiveXVersion(); if(_93){ _93.async="false"; _93.loadXML(_92); }else{ var _94=new DOMParser(); _93=_94.parseFromString(_92,"text/xml"); } return _93; }}; var _F_DOM={selectNodes:function(_95,_96){ var arr=[]; var doc=(_95.ownerDocument)?_95.ownerDocument:_95; if(doc.evaluate){ var _99=doc.evaluate(_96,_95,doc.createNSResolver(doc.documentElement),XPathResult.ORDERED_NODE_ITERATOR_TYPE,null); if(_99){ _95=_99.iterateNext(); while(_95!=null){ arr.push(_95); _95=_99.iterateNext(); } return arr; } }else{ if("all" in document&&"selectNodes" in _95){ var _9a=_95.selectNodes(_96); var i,l=_9a.length; for(i=0;i _F_DOM.selectNodes"); return _F_DOM.selectNodes(_a7,_a8); }; function _F_DOM_selectSingleNode(_a9,_aa){ _F_log("W","DEPRECATED FUNCTION: _F_DOM_selectSingleNode --> _F_DOM.selectSingleNode"); return _F_DOM.selectSingleNode(_a9,_aa); }; function _F_DOM_getAttribute(_ab,_ac){ _F_log("W","DEPRECATED FUNCTION: _F_DOM_getAttribute --> _F_DOM.getAttribute"); return _F_DOM.getAttribute(_ab,_ac); }; function _F_DOM_text(_ad){ _F_log("W","DEPRECATED FUNCTION: _F_DOM_text --> _F_DOM.text"); return _F_DOM.text(_ad); }; var _F_Form={find:function(_ae){ return document.forms[_ae]; },lookupAction:function(_af){ var _b0=document.forms; var i,l=_b0.length; for(i=0;i-1){ return _b0[i]; } } return null; },getParamForInput:function(_b3,_b4){ if(_b4.disabled){ return null; } switch(_b4.type){ case "select-multiple": var s=""; var i,l=_b4.options.length; for(i=0;i=0){ return this.getParamName(_b3,_b4.name)+"="+_F_Strings.urlEncode(_b4.value); } break; case "radio": case "checkbox": if(!_b4.checked){ return null; } case "text": case "textarea": case "password": case "hidden": case "submit": if(_b4.value!=null){ return this.getParamName(_b3,_b4.name)+"="+_F_Strings.urlEncode(_b4.value); } case "button": return null; default: _F_log("W","unsupported input named: "+_b4.name+" ("+_b4.type+")"); break; } return null; },getParamName:function(_b8,_b9){ return _b9; },getParams:function(_ba){ var s=""; if(_ba!=null){ var i,l=_ba.elements.length; for(i=0;i _F_Form.getParams"); return _F_Form.getParams(_c1); }; function _F_formParams(_c2){ _F_log("W","DEPRECATED FUNCTION: _F_formParams --> _F_Form.getActionParams"); return _F_Form.getActionParams(_c2); }; function _F_depth(obj){ var p=obj.parent; var _c5=1; while(p!=null){ _c5++; p=p.parent; } return _c5; }; function _F_descendants(sId,_c7,_c8){ var _c9=[]; for(var id in fragments){ if(fragments[id]!=null){ if(id.indexOf(sId)==0&&id!=_c7){ _c9.push(id); } } } _c9=_c9.sort(); var _cb=(_c8)?{}:[]; var i,l=_c9.length; if(_c8){ for(i=0;i-1){ this.dispatch(_d5,evt,false); } }else{ if(evt.name.indexOf("fragment.")!=0){ var _d9=_F_Array.indexOf(_d5,evt.target.id); if(_d9>-1){ this.dispatch(_d5,evt,true); } } } if(evt.eventPhase==evt.AT_TARGET&&"fragment.refresh"==evt.name){ evt.preventDefault(); } if(window._F_Debug!==undefined&&evt.debugEnabled()){ _F_Debug.log.groupEnd(); } },execute:function(_da,_db,evt){ var _dd=null; if(typeof _db[1]=="string"){ try{ _dd=eval(_db[1]); } catch(e){ } }else{ _dd=_db[1]; } if(typeof _dd=="function"){ try{ _dd.call(_da,evt); } catch(e1){ _F_log("E","Error in event handler function: "+e1+", function name="+_db[1]); } }else{ _F_log("E","Expecting an event handler function, got: "+_db[1]); } }}; _F_Event.Event=function(){ this.name=""; this.type=""; this.payload=null; this.source=null; this.target=null; this.currentTarget=null; this.eventPhase=0; this.bubbles=true; this.cancelable=true; this.cancelled=false; this.stopped=false; this.timeStamp=new Date(); this.reflected=false; }; _F_Event.Event.prototype={CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3,initEvent:function(_de,_df,_e0,_e1,_e2){ this.name=_de; this.type=_df; this.payload=_e0; this.bubbles=_e1; this.cancelable=_e2; this.cancelled=false; this.stopped=false; },preventDefault:function(){ if(this.cancelable){ this.cancelled=true; } },stopPropagation:function(){ this.stopped=true; }}; function _F_eventDistributor(_e3,evt){ _F_log("W","DEPRECATED FUNCTION: _F_eventDistributor --> _F_Event.distribute"); _F_Event.distribute(_e3,evt); }; function _F_eventProxy(evt){ _F_log("W","DEPRECATED FUNCTION: _F_eventProxy --> this.proxyEvent"); this.proxyEvent(evt); }; var fragments={}; function fragment(_e6,id,div){ this.id=id; this.path=_e6; this.parent=findParent(this.id); this.div=div?div:id+"content"; this.state=null; this.custom=null; this.mode="view"; this.windowState="normal"; this.visibility="visible"; this.view=""; this.transientState={}; this.eventListeners=[]; this.modes=[]; this.windowStates=[]; this.loaded=false; this.page=false; this.validator=null; this.internal={requestCount:0,locked:false,dirty:false}; this.addEventListener("fragment.visibility.change",this.setVisibilityEvent,false); fragments[this.id]=this; function findParent(sId){ var _ea=null; var _eb=0; for(var id in fragments){ var _ed=fragments[id]; if(_ed!=null){ if(sId!=_ed.id&&sId.indexOf(_ed.id)==0&&_ed.id.length>_eb){ _ea=_ed; _eb=_ea.id.length; } } } return _ea; }; }; fragment.prototype={getRoot:function(){ var _ee=this; while(_ee.parent){ _ee=_ee.parent; } return _ee; },getChildren:function(){ var _ef=[]; for(var sId in fragments){ if(fragments[sId].parent==this){ _ef.push(fragments[sId]); } } return _ef; },getAncestors:function(){ var _f1=[]; var _f2=this.parent; while(_f2){ _f1.push(_f2); _f2=_f2.parent; } return _f1; },baseURI:function(){ return "$CGI$"+_F_Config.application+this.path; },attach:function(obj){ for(var _f4 in obj){ this[_f4]=obj[_f4]; } },encodedTransients:function(){ var _f5; var _f6={}; var p=this.getPageFragment(); for(_f5 in p.transientState){ if(_f6[_f5]===undefined){ _f6[_f5]=p.transientState[_f5]; } } for(_f5 in this.transientGlobal){ if(_f6[_f5]===undefined){ _f6[_f5]=this.transientGlobal[_f5]; } } var s=""; for(_f5 in _f6){ s+="&"+_F_Strings.urlEncode(_f5)+"="+_F_Strings.urlEncode(_f6[_f5]); } return s; },fragmentURI:function(){ var s="frag-id="+this.id+"&frag-agent="+_F_Strings.urlEncode(navigator.userAgent)+"&frag-mode="+this.mode; if(_F_config.authToken){ s+="&frag-authToken="+_F_Strings.urlEncode(_F_config.authToken); } if(this.validator!=null&&this.validator.remote){ s+="&frag-validator="+this.validator.remote; } if(this.loaded&&this.mode!="view"&&_F_Array.indexOf(this.modes,this.mode)==-1){ s+="&frag-delegate="+_F_Strings.urlEncode(this.mode); } if(this.view!=""){ s+="&frag-view="+_F_Strings.urlEncode(this.view); } if(this.windowState!=""){ s+="&frag-windowState="+_F_Strings.urlEncode(this.windowState); } if(this.channel!==undefined&&this.channel!=null){ s+="&frag-channel="+_F_Strings.urlEncode(this.channel); } if(this.state!=null){ s+="&frag-state="+_F_Strings.urlEncode(this.state); } if(this.custom!=null){ s+="&frag-custom="+_F_Strings.urlEncode(this.custom); } s+=this.encodedTransients(); if(this.customProperties!=null){ var _fa=""; for(var cp in this.customProperties){ if(_fa!=""){ _fa+="&"; } _fa+=cp+"="+_F_Strings.urlEncode(this.customProperties[cp]); } s+="&frag-customProperties="+_F_Strings.urlEncode(_fa); } return s; },renderURI:function(_fc){ var s=this.baseURI(); s+=((s.indexOf("?")>=0)?"&":"?")+this.fragmentURI(); if(_fc===undefined||_fc==false){ var _fe=_F_descendants(this.id,this.id); if(_fe){ for(var i=0;i<_fe.length;i++){ s+="&frag-sub="+_F_Strings.urlEncode(_fe[i].fragmentURI()); } } } return s; },interactionURI:function(_100,_101){ if(_100&&_100!=""){ if(_100.indexOf("&")!=0){ return (this.renderURI(_101)+"&"+_100); }else{ return (this.renderURI(_101)+_100); } } return this.renderURI(_101); },update:function(_102,div){ div=div?div:this.div; var _104=$(div); var _105=_104==$(this.div); var _106=false; if(_104!=null){ if(_105){ this.raiseEvent("fragment.unload",null,"",false,false); } var _107=document.createElement("div"); _107.innerHTML=" "+_102; _107.removeChild(_107.firstChild); var _108=_107.getElementsByTagName("SCRIPT"); var _109=[]; var _10a=_108.length; for(var i=_10a-1;i>=0;i--){ _109.unshift(""); if(_108[i].parentNode){ _108[i].parentNode.removeChild(_108[i]); } } var _10c=_107.getElementsByTagName("STYLE"); var _10d=[]; _10a=_10c.length; for(var j=_10a-1;j>=0;j--){ _10d.unshift(""); if(_10c[j].parentNode){ _10c[j].parentNode.removeChild(_10c[j]); } } _F_Document.addHeadUniqueTag(_10d,div,"style"); if(_107.childNodes){ var _10f=_107.childNodes.length; for(var k=_10f-1;k>=0;k--){ if((_107.childNodes[k].nodeType!=3)||(_107.childNodes[k].nodeType==3&&_107.childNodes[k].nodeValue.replace(/^\s*|\s*$/g,"")!="")){ if(!_106){ _104.innerHTML=""; _104.appendChild(_107.childNodes[k]); _106=true; }else{ _104.insertBefore(_107.childNodes[k],_104.firstChild); } } } } _107=null; if(_105&&!xIE4Up){ var _111=""; _109.push(_111); } _F_Document.addHeadUniqueTag(_109,div,"script"); if(window._F_Debug!==undefined&&this.debugEnabled()){ _F_Debug.log.logDetails("Update innerHTML for fragment: "+this.id+"\ttitle: "+_F_Strings.normalize(this.title),this); } if(_105&&xIE4Up){ this.raiseEvent("fragment.load",{source:"retrieve"},"",false,false); } }else{ _F_log("W","target div was not found: "+div); } return _106; },performAction:function(_112){ this.retrieve(_112); },retrieve:function(_113,dest,_115,_116){ if(!this.loaded){ if(!_113){ _113=""; } _113+="&frag-action=attach"; } if(_F_depth(this)>100){ window[this.id]=this; fragments[this.id]=this; this.processError("maxnestedlevels",PFM.JS.IDS_JS_ERROR_RETRIEVE,""); return; } if(this.clearerror){ this.clearerror(); } this.send(_113,dest,_115,_116); },send:function(_117,dest,_119,_11a){ if(this.internal.locked>0){ this.internal.dirty=true; return; }else{ this.internal.dirty=false; if(!this.raiseEvent("fragment.retrieve.before",_117,"xsd:string")){ this.raiseEvent("fragment.retrieve.after",false,"xsd:boolean"); return; } } this.setRefreshDelay(0); var _11b=++this.internal.requestCount; var _11c=this; var _11d={requestHeaders:{"Connection":"keep-alive","Accept":"text/xml,application/xml"},onSuccess:function(_11e){ window[_11c.id]=_11c; fragments[_11c.id]=_11c; if(dest==null){ dest=_11c.div; } if(dest==_11c.div){ if(_11b!=_11c.internal.requestCount){ _F_log("W","discarding expired response for fragment: "+_11c.id); _11c.raiseEvent("fragment.retrieve.after",false,"xsd:boolean"); return; } } var _11f=this.getResponseXml(); var _120=false; if(_11f){ if((_11f.parseError&&_11f.parseError.errorCode!=0)||(_11f.documentElement&&_11f.documentElement.nodeName=="parsererror")){ _120=true; } }else{ _120=true; } if(!_120){ var _121=_F_DOM.selectSingleNode(_11f,"/fragment"); if(_121!=null){ var list=[]; var i,l,href; var _126=_F_DOM.selectNodes(_121,"./css"); if(_126&&_126.length>0){ l=_126.length; for(i=0;i0){ l=_128.length; for(i=0;i XML for fragment: "+_11c.id); } }else{ var txt=this.getResponseText(); var _130=_F_Document.extractTagText(txt,"ERROR_CODE"); if(_130=="CAM_PASSPORT_ERROR"){ _11c.processError("invalidCredentials",null,null); _11c.raiseEvent("fragment.retrieve.after",false,"xsd:boolean"); _F_log("W","expecting XML, got HTML for fragment: "+_11c.id); }else{ var _131=false; if(txt!=null&&_F_Config.responsePattern!=null&&_F_Config.responsePattern.length>0){ var _132=_F_Config.responsePattern.split(","); var i,l; var _133=txt.toUpperCase(); for(i=0,l=_132.length;i0){ this.customProperties={}; l=_14b.length; for(i=0;i-1&&_F_DOM.selectSingleNode(_151,"./params")){ var _153=_F_DOM.selectNodes(_151,"./params/param"); _152={}; var j,m=_153.length; for(j=0;j0){ var list=[]; l=_15e.length; for(i=0;i0){ l=_161.length; for(i=0;i-1); }; function addEmbedFrame(_16d){ if(_F_Array.indexOf(_16a,_16d,0,true)<0){ _16a.push(_16d); } }; function searchEmbedFrames(frag){ if(_F_config.browser!="firefox"){ return false; } var div=$(frag.div); if(div){ var _170=div.getElementsByTagName("iframe"); if(_170){ var i,l=_170.length; for(i=0;i=0;i--){ if(_194[i]){ var j,m=_194[i].length; for(j=0;j-1; }else{ _1aa=!(evt.proxy&&evt.proxy==this); } if(_1aa){ _1a9=this.getChildren(); var i,l=_1a9.length; for(i=0;i-1||_F_Array.indexOf(_1a9,evt.proxy)>-1){ evt.stopPropagation(); var _1ad=new _F_Event.Event(); _1ad.initEvent(evt.name,evt.type,evt.payload,evt.bubbles,evt.cancelable); _1ad.source=evt.source; _1ad.proxy=this; this.dispatchEvent(_1ad); } } } if(evt.eventPhase==evt.AT_TARGET&&"fragment.refresh"==evt.name){ evt.preventDefault(); } if(window._F_Debug!==undefined&&evt.debugEnabled()){ _F_Debug.log.groupEnd(); } },onloadInitialized:false,onloadHandlers:[],setOnloadHandler:function(func){ if(this.onloadInitialized){ func(); }else{ this.onloadHandlers.push(func); } },transientGlobal:{},transientUpdate:function(_1af,_1b0,_1b1,_1b2){ var _1b3; _1b2=((_1b2==null||_1b2===undefined)?this.channel||"":_1b2); var sKey=_1af+"["+_1b2+"]"; if(_1b1=="private"){ _1b3=[this]; }else{ if(_1b1=="page"){ var p=this.getPageFragment(); p.transientState[sKey]=_1b0; _1b3=_F_descendants(p.id); }else{ if(!(_1b1)||_1b1==""||_1b1=="application"){ _1b3=[]; this.transientGlobal[sKey]=_1b0; for(var id in fragments){ if(fragments[id]!=null){ _1b3.push(fragments[id]); } } }else{ _1b3=[]; } } } var i,l; var _1b9=(arguments.length>4)?arguments[4]:null; if(_1b9){ l=_1b3.length; for(i=0;i1)?arguments[1]:false; var _1bc=[]; var i,l=list.length; for(i=0;i-1)&&((arguments[1]===undefined)||(arguments[1]!="internal"))){ this.retrieve(); } } },setVisibilityEvent:function(evt){ if(evt.eventPhase==evt.AT_TARGET){ evt.payload.currentVisibility=this.visibility; var _1d4; if(evt.payload.setVisibility=="hidden"){ _1d4="hidden"; }else{ if(this.windowState=="minimized"){ _1d4="hidden"; }else{ _1d4="visible"; } } evt.payload.newVisibility=_1d4; this.visibility=_1d4; } },setRefreshDelay:function(sec){ if(this.refreshTimeout){ window.clearInterval(this.refreshTimeout); } if(sec>0){ var _1d6=this; this.refreshTimeout=window.setTimeout(function(){ _1d6.retrieve(); },sec*1000); } },onerror:function(msg,_1d8,code){ _F_alert(code+":\n"+msg+"\n\n"+_1d8,this.title); },destroy:function(){ this.raiseEvent("fragment.unload",null,"",true,false); var _1da=this.getChildren(); var i,l=_1da.length; for(i=0;i(this.startX+8))||(e.pageX<(this.startX-8))||(e.pageY>(this.startY+8))||(e.pageY<(this.startY-8))){ this.start(e); } } if(this.context){ this.context.move(e); } },stop:function(e){ if(this.context){ this.context.release(e); } this.obj=null; this.dragging=false; this.context=null; }}; function _F_dragMD(evt){ var e=new xEvent(evt); var obj=_F_findParentObj(e.target,"dragitem_"); if(obj){ xPreventDefault(evt); _F_Drag.pending(obj,e); xAddEventListener(document,"mousemove",_F_dragMM,false); xAddEventListener(document,"mouseup",_F_dragMU,false); } }; function _F_dragMM(evt){ var e=new xEvent(evt); xPreventDefault(evt); _F_Drag.move(e); }; function _F_dragMU(evt){ var e=new xEvent(evt); xPreventDefault(evt); _F_Drag.stop(e); xRemoveEventListener(document,"mousemove",_F_dragMM); xRemoveEventListener(document,"mouseup",_F_dragMU); }; var _F_Queue={}; _F_Queue.Runnable=function(obj,func,args){ this.obj=obj; this.func=func; this.args=args; }; _F_Queue.Runnable.prototype={run:function(){ var _207=this.func.apply(this.obj,this.args); this.func=null; this.obj=null; this.args=null; return _207; }}; _F_Queue.Queue=function(){ this.head=null; this.tail=null; }; _F_Queue.Queue.prototype={add:function(obj){ var _209={value:obj,next:null}; if(this.tail){ this.tail.next=_209; }else{ this.head=_209; } this.tail=_209; },hasNext:function(){ return (this.head!=null); },next:function(){ var _20a=this.head; var obj=_20a.value; this.head=_20a.next; if(_20a.next==null){ this.tail=null; } _20a.next=null; delete (_20a); return obj; }}; _F_Queue.RunQueue=function(){ this.queue=new _F_Queue.Queue(); this.isRunning=false; }; _F_Queue.RunQueue.prototype={add:function(obj,func,args){ this.queue.add(new _F_Queue.Runnable(obj,func,args)); },run:function(){ if(!this.isRunning){ this.isRunning=true; this.resume(); } },resume:function(){ while(this.queue.hasNext()){ if(this.queue.next().run()){ break; } } this.isRunning=this.queue.hasNext(); }}; var _F_runQueue=new _F_Queue.RunQueue(); var _F_eventQueue=new _F_Queue.RunQueue(); function _F_attach(obj){ var frag=fragments[obj.id]; if(!frag){ frag=new fragment(obj.path,obj.id,obj.div); } if(!frag.loaded){ frag.attach(obj); if(frag.title){ frag.setTitle(frag.title); } frag.loaded=true; if(window._F_Debug!==undefined&&frag.debugEnabled()){ _F_Debug.log.logDetails("Attach fragment: "+frag.id+"\ttitle: "+_F_Strings.normalize(frag.title),"path: "+obj.path,frag); } frag.raiseEvent("fragment.create",null,"",true,false); }else{ frag.channel=obj.channel; } return frag; }; function _F_resize(){ var _211=null; var list=(arguments.length==1)?arguments[0]:fragments; for(var id in list){ if(_211!=null&&id.indexOf(_211)==0){ continue; } if(fragments[id]!=null&&fragments[id].onresize&&fragments[id].onresize()==true){ _211=id; }else{ _211=null; } } }; function _F_onload(){ if(window.location.href.indexOf("#frag-logon")!=-1){ document.cookie="frag_login="; } fragment.prototype.onloadInitialized=true; var i,l=fragment.prototype.onloadHandlers.length; for(i=0;i _F_Document.getCookie"); return _F_Document.getCookie(name); }; function _F_setCookie(name,_21d,_21e,path,_220,_221){ _F_log("W","DEPRECATED FUNCTION: _F_setCookie --> _F_Document.setCookie"); _F_Document.setCookie(name,_21d,_21e,path,_220,_221); }; if(window.dojo){ dojo.require("dijit.dijit"); } var maximizeBVToAvailableHeight=true; var ui_templates={contentTemplate:"
"+""+""+""+""+"
"+"


"+"
"+""+"
"+""+PFM.JS.IDS_JS_TAB_WAIT+""+"
"+"


"+"
"+"
",get:function(_222){ var _223=_222; var i,l=arguments.length; if(l==2&&typeof arguments[1]=="object"&&arguments[1].length>0){ args=arguments[1]; l=args.length; for(i=0;i=0){ this.pos=0; }else{ var td=xParent(xParent(_239,true),true); var maxX=(xPageX(_239)+xWidth(_239))-(xPageX(td)+xWidth(td))-5; if(maxX<0){ this.pos-=maxX; } } _239.style.marginLeft=this.pos+"px"; },scrollTo:function(tab){ var node=$(tab.tabID); var _23e=xLeft(node); var _23f=xWidth(node); var _240=xClientWidth(); if((_23e+this.pos)>_240){ this.setScrollPosition(_240-_23e-_23f-30); } },startScroll:function(dir){ if(!this.buttonsEnabled){ return; } if(this.scrollTimer!=null){ window.clearInterval(this.scrollTimer); this.scrollTimer=null; } var _242=this; this.scrollTimer=window.setInterval(function(){ _242.scroll(dir); },10); },stopScroll:function(){ if(!this.buttonsEnabled){ return; } if(this.scrollTimer!=null){ window.clearInterval(this.scrollTimer); this.scrollTimer=null; } },adjustLayout:function(){ var _243=$(this.tableID); var _244=$(this.tabCellID); if(_243==null){ return; } if(_244){ _244.style.width="0"; _244.style.width=""; } var td=xParent(xParent(_243,true),true); if(xWidth(td)==0){ xWidth(td,xWidth(_243)); } var tabX=xPageX(td)+xWidth(td); if(this.pos<0){ var maxX=(xPageX(_243)+xWidth(_243))-tabX; if(maxX<0){ this.pos-=maxX; } if(this.pos>0){ this.pos=0; } _243.style.marginLeft=this.pos+"px"; } this.buttonsEnabled=(xPageX(_243)+xWidth(_243))>=tabX; this.buttons.left.setEnable(this.buttonsEnabled); this.buttons.right.setEnable(this.buttonsEnabled); }}; function ui_htab(obj){ this.id=null; this.parent=null; this.loaded=false; this.refreshRequired=false; this.href=null; this.subtabs=null; this.width=-1; this.height=-1; this.customProperties=null; for(var o in obj){ this[o]=obj[o]; } }; ui_htab.prototype={uniqueID:function(){ if(this.parent!=null){ return this.parent.uniqueID()+this.id; } return this.id; },attach:function(_24a){ this.parent=_24a; var _24b=this.parent.uniqueID()+this.id; if(this.tabID==null){ this.tabID=_24b+"tab"; } if(this.pageID==null){ this.pageID=_24b+"page"; } if(this.contentID==null){ this.contentID=_24b+"content"; } if(this.subtabs!=null){ this.subtabs.attach(this); } var elem=$(this.tabID); if(elem!=null){ xAddEventListener(elem,"click",_F_Document.associate(elem,this,"onclick")); xAddEventListener(elem,"keypress",_F_Document.associate(elem,this,"onkeypress")); } },createPage:function(){ var _24d=$(this.parent.frag.id+"bvContainer"); var _24e=document.createElement("DIV"); _24e.id=this.pageID; _24e.style.display="none"; _24e.style.width="100%"; _24e.style.height="100%"; _24e.setAttribute("role","tabpanel"); var _24f=this.tabID+"_anchor"; _24e.setAttribute("aria-labelledby",_24f); var _250=$(_24f); if(_250!=null){ _250.setAttribute("aria-controls",this.pageID); } var _251=ui_templates.get(ui_templates.contentTemplate,"CONTENTID",this.contentID,"CONTENTCLASS",(this.parent.isFixed()?"cogstyle-htabs-page-content-fixed":"cogstyle-htabs-page-content")); _24e.innerHTML=_251; _24d.appendChild(_24e); },isLoaded:function(){ return this.loaded; },select:function(){ if(!this.isLoaded()){ if($(this.pageID)){ this.loaded=true; this.refreshRequired=true; }else{ this.createPage(); } } var frag=fragments[this.uniqueID()]; if(frag){ frag.lockUpdates(false); frag.raiseEvent("fragment.visibility.change",{"setVisibility":"visible"},"params",false,false); } var alt=""; var td=$(this.tabID); var div=xFirstChild(td,"DIV"); div.className="cogstyle-htabs"+alt+"-active-left-edge"; div=xFirstChild(div,"DIV"); div.className="cogstyle-htabs"+alt+"-active-right-edge"; div=xFirstChild(div,"DIV"); div.className="cogstyle-htabs"+alt+"-active"; if(this.subtabs!=null){ $(this.pageID).style.display="block"; this.subtabs.tabs[this.subtabs.active()].select(); }else{ $(this.pageID).style.display="block"; } var _256=xFirstChild(div,"A"); _256.tabIndex=0; _256.focus(); _256.setAttribute("aria-selected","true"); this.refresh(); this.parent.scrollTo(this); },deselect:function(){ var frag=fragments[this.uniqueID()]; if(frag){ frag.lockUpdates(true); frag.raiseEvent("fragment.visibility.change",{"setVisibility":"hidden"},"params",false,false); } var alt=""; var td=$(this.tabID); var div=xFirstChild(td,"DIV"); div.className="cogstyle-htabs"+alt+"-left-edge"; div=xFirstChild(div,"DIV"); div.className="cogstyle-htabs"+alt+"-right-edge"; div=xFirstChild(div,"DIV"); div.className="cogstyle-htabs"+alt; if(this.subtabs!=null){ $(this.pageID).style.display="none"; this.subtabs.tabs[this.subtabs.active()].deselect(); }else{ var _25b=$(this.pageID); if(_25b!=null){ _25b.style.display="none"; } } var _25c=xFirstChild(div,"A"); _25c.setAttribute("aria-selected","false"); },refresh:function(_25d){ if(this.href!=null){ if(!this.isLoaded()){ this.loaded=true; var frag=new fragment(this.href,this.uniqueID()); frag.customProperties=this.customProperties; frag.retrieve(); }else{ if(_25d||this.refreshRequired){ this.refreshRequired=false; fragments[this.uniqueID()].raiseEvent("fragment.refresh",null,null,false,true); } } }else{ if(this.subtabs!=null){ this.subtabs.select(this.subtabs.active()); } } var _25f=this; while(_25f.parent!=null){ _25f=_25f.parent; } _25f.onresize(); },onclick:function(e,tag){ this.parent.select(this.id); },onkeypress:function(evt){ evt=evt!=null?evt:window.event; var e=evt.srcElement?evt.srcElement:evt.target; var _264; if(evt.keyCode==37||evt.keyCode==38){ _264=$(this.parent.uniqueID()+this.parent.activeTabID+"tab"); var _265=_264.previousSibling; if(_265==null){ _265=_264.parentNode.lastChild; } var _266=_265.id.substring(this.parent.uniqueID().length,_265.id.length-3); this.parent.select(_266); }else{ if(evt.keyCode==39||evt.keyCode==40){ _264=$(this.parent.uniqueID()+this.parent.activeTabID+"tab"); var _267=_264.nextSibling; if(_267==null){ _267=_264.parentNode.firstChild; } var _268=_267.id.substring(this.parent.uniqueID().length,_267.id.length-3); this.parent.select(_268); } } xStopPropagation(evt); },onresize:function(){ if(!this.parent.isFixed()){ if(this.subtabs!=null){ this.subtabs.onresize(); }else{ var _269=this.target.targetType?this.target.targetType:this.target.type; ui_resizeHelper.adjustHeightForFragmentContent(fragments[this.uniqueID()],$(this.contentID),_269,this.height); var list=_F_descendants(this.uniqueID(),null,true); _F_resize(list); } return; } var _26b=this.parent.parent; if(_26b==null){ var page=$(this.pageID); this.height=xClientHeight()-ui_calcAvailableHeight(page,document.body,true); this.width=xClientWidth()-ui_calcAvailableWidth(page,document.body); if(maximizeBVToAvailableHeight){ this.height=ui_calcMaximumHeight(page,document.body,true); readjustParentHeight(this.contentID); } }else{ this.height=_26b.height-xHeight(this.parent.tableID)-1; this.width=_26b.width; } if(this.subtabs!=null){ this.subtabs.onresize(); }else{ var _26d=$(this.contentID); xHeight(_26d,this.height); var _26e=_F_descendants(this.uniqueID(),null,true); _F_resize(_26e); } },getVTabs:function(){ return fragments[this.uniqueID()]; }}; function ui_tabbutton(obj){ this.id=null; this.parent=null; this.enabled=false; this.hovered=false; this.mouseUpHandler=null; this.selectStartHandler=function(e){ xPreventDefault(e); return false; }; for(var o in obj){ this[o]=obj[o]; } }; ui_tabbutton.prototype={attach:function(_272){ this.parent=_272; var elem=$(this.id); if(elem!=null){ xAddEventListener(elem,"mousedown",_F_Document.associate(elem,this,"onmousedown")); xAddEventListener(elem,"mouseover",_F_Document.associate(elem,this,"onmouseover")); xAddEventListener(elem,"mouseout",_F_Document.associate(elem,this,"onmouseout")); xAddEventListener(elem,"keydown",_F_Document.associate(elem,this,"onkeydown")); xAddEventListener(elem,"touchstart",_F_Document.associate(elem,this,"ontouchstart")); xAddEventListener(elem,"touchend",_F_Document.associate(elem,this,"ontouchend")); } },setEnable:function(_274){ if(this.enabled!=_274){ this.enabled=_274; this.updateStyles(); } },updateStyles:function(){ var _275="cogstyle-htabs-scroll-button"; if(!this.enabled){ _275+="-disabled"; }else{ if(this.hovered){ _275+="-hover"; } } _275+=" cogstyle-htabs-scroll-button-"+this.type; if(!this.enabled){ _275+="-disabled"; } $(this.id).className=_275; var _276=$(this.id+"img"); if(this.enabled){ _276.className=""; }else{ _276.className="cogstyle-img-faded"; } },onkeydown:function(e,tag){ if(e.keyCode==13||e.keyCode==32||e.charCode==32){ this.parent.scroll(this.type); } },onclick:function(e,tag){ this.parent.scroll(this.type); },onmousedown:function(e,tag){ xPreventDefault(e); this.mouseUpHandler=_F_Document.associate(document,this,"onmouseup"); xAddEventListener(document,"mouseup",this.mouseUpHandler); xAddEventListener(document,"selectstart",this.selectStartHandler); xAddEventListener(document,"dragstart",this.selectStartHandler); this.parent.startScroll(this.type); },onmouseup:function(e,tag){ xRemoveEventListener(document,"mouseup",this.mouseUpHandler); xRemoveEventListener(document,"selectstart",this.selectStartHandler); xRemoveEventListener(document,"dragstart",this.selectStartHandler); this.mouseUpHandler=null; this.parent.stopScroll(); },ontouchstart:function(e,tag){ xPreventDefault(e); this.touchEndHandler=_F_Document.associate(document,this,"ontouchend"); xAddEventListener(document,"touchend",this.touchEndHandler); this.parent.startScroll(this.type); },ontouchend:function(e,tag){ xRemoveEventListener(document,"touchend",this.touchEndHandler); this.touchEndHandler=null; this.parent.stopScroll(); },onmouseover:function(e,tag){ if(this.enabled){ this.hovered=true; this.updateStyles(); if(this.mouseUpHandler!=null){ this.parent.startScroll(this.type); } } },onmouseout:function(e,tag){ if(this.enabled){ this.parent.stopScroll(); this.hovered=false; this.updateStyles(); } }}; function ui_vtabs(obj){ this.parent=null; this.tabs={}; for(var o in obj){ this[o]=obj[o]; } if(this.activeTabID===undefined){ for(var t in this.tabs){ this.activeTabID=t; break; } } }; ui_vtabs.prototype={uniqueID:function(){ return this.frag.id+this.id; },attach:function(_28a){ this.parent=_28a; this.bookletViewerContainerID=this.frag.id+"bvContainer"; if(_28a==null){ this.toplevel=countLevels(this.frag.parent)==1; this.tabsmainID=this.frag.id+"tabs_main"; this.tabsareaID=this.frag.id+"tabs_area"; this.tabsareadivID=this.frag.id+"tabs_area_div"; this.vtabsMinWidth=0; } for(var t in this.tabs){ this.tabs[t].attach(this); } function countLevels(f){ var _28d=0; while(f!=null){ _28d++; f=f.parent; } return _28d; }; },select:function(id){ if(this.tabs[id]!=null){ var cur=this.active(); if(cur!=""){ this.tabs[cur].deselect(); } this.activeTabID=id; this.tabs[id].select(); } },active:function(){ return this.activeTabID; },getTab:function(_290){ var x=0; for(var _292 in this.tabs){ if(x++==_290){ return this.tabs[_292]; } } },getRoot:function(){ var p=this; while(p.parent!=null){ p=p.parent; } return p; },isFixed:function(){ return this.getRoot().fixed==true; },getVTabsAreaWidth:function(){ return this.getRoot().vtabsWidth; },getVTabsAreaHeight:function(){ return this.getRoot().vtabsHeight; },setVTabsAreaWidth:function(_294){ var o=this.getRoot(); if(o.vtabsWidth!=_294){ if(_2940){ var evt=new xEvent(e); xPreventDefault(e); xLeft(this.splitterBar,evt.pageX-(this.width/2)); } },stop:function(e,tag){ if(this.startX>0){ var evt=new xEvent(e); xPreventDefault(e); xHide(this.splitterBar); document.body.removeChild(this.splitterBar); this.splitterBar=null; xRemoveEventListener(document,"mousemove",this.mousemove,true); xRemoveEventListener(document,"mouseup",this.mouseup,true); this.resizing.setVTabsAreaWidth(this.resizing.getVTabsAreaWidth()+(evt.pageX-this.startX)); this.startX=-1; } var _2da=ui_locker.get(); _2da.hide(); }}; function ui_error(_2db,_2dc){ this.fragID=_2db; this.contentID=_2dc; this.code=null; this.message=null; this.details=null; }; ui_error.prototype={template:"
",setCode:function(code){ this.code=code; },setMessage:function(msg){ this.message=msg||""; var div=$(this.fragID+"errormsg"); if(div!=null){ div.innerHTML=_F_Strings.htmlEncode(this.message); } },setDetails:function(_2e0){ this.details=_2e0; },show:function(){ var div=$(this.fragID+"error"); if(div==null){ var _2e2=$(this.contentID); div=document.createElement("DIV"); div.className="cogstyle-portlet-error-frame"; div.id=this.fragID+"error"; div.innerHTML=this.template.replace(/_THIS_/g,this.fragID); _2e2.parentNode.insertBefore(div,_2e2); var _2e3=$(this.fragID+"error_showdetails"); if(_2e3!=null){ xAddEventListener(_2e3,"click",_F_Document.associate(_2e3,this,"showDetails")); _2e3.href="javascript:noop()"; } _2e3=$(this.fragID+"error_retry"); if(_2e3!=null){ xAddEventListener(_2e3,"click",_F_Document.associate(_2e3,this,"retry")); _2e3.href="javascript:noop()"; } _2e3=$(this.fragID+"error_hide"); if(_2e3!=null){ xAddEventListener(_2e3,"click",_F_Document.associate(_2e3,this,"hide")); _2e3.href="javascript:noop()"; } } $(this.fragID+"errormsg").innerHTML=_F_Strings.htmlEncode(this.message); div.style.display=""; setTimeout(function(){ div.setAttribute("role","alert"); },1); this.hideLoading(); },hide:function(){ var div=$(this.fragID+"error"); if(div!=null){ div.style.display="none"; } return false; },hideLoading:function(){ var _2e5=$(this.contentID); if(_2e5){ var ele=xFirstChild(_2e5); if(ele){ if(ele.getAttribute("removeonerror")=="true"){ _2e5.innerHTML=""; } } } },showDetails:function(){ var dlg=new ui_dialog(this.fragID+"errordetails",PFM.JS.IDS_JS_DETAILS,ui_dialog.style.ALERT|ui_dialog.style.BTN_CLOSE|ui_dialog.style.CENTER|ui_dialog.style.RESIZABLE,-1,-1,500,300,this.contentID); dlg.processCommand=function(cmd){ this.destroy(); return true; }; if(this.details!=null){ var _2e9=""; if(this.code!=null){ _2e9+=""; } _2e9+=""+""+""+""+"
"+this.code+"
"+""+""+_F_Strings.htmlEncode(this.message)+"
"; _2e9+="
"+_F_Strings.htmlEncode(this.details)+"
"; dlg.attachContent(_2e9); } dlg.show(); return false; },retry:function(){ this.hide(); fragments[this.fragID].retrieve(); return false; }}; function ui_fragment_help(frag){ if(frag){ var sURL=frag.baseURI(); sURL=_F_Config.expandMacros(sURL); sURL+=((sURL.indexOf("?")>=0)?"&":"?")+"frag-mode=help"; var _2ec=window.open(sURL,"cps_help","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=600,height=500"); if(_2ec!=null){ _2ec.focus(); } } }; function ui_dialog(id,_2ee,_2ef,x,y,dx,dy,_2f4,_2f5){ this.id=id; this.caption=_2ee; this.styles=_2ef; this.x=x; this.y=y; this.dx=dx; this.dy=dy; this.dlg=null; this.backing=null; this.content=""; this.results=null; this.contentId=_2f4; this.srcHref=(_2f5!==undefined)?_2f5:null; this.minDialogWidth=200; this.iframeName=(_2f5!==undefined)?"MODAL_IFRAME"+(new Date()).getTime():null; this.fragment=null; this.eventHandlers=[]; this.triggerElement=document.activeElement; }; ui_dialog.chain=[]; ui_dialog.nextX=0; ui_dialog.nextY=0; ui_dialog.style={}; ui_dialog.style.BTN_OK=0; ui_dialog.style.BTN_OKCANCEL=1; ui_dialog.style.BTN_OKCANCELAPPLY=2; ui_dialog.style.BTN_CLOSE=3; ui_dialog.style.BTN_CANCEL=4; ui_dialog.style.BTN_YESNO=5; ui_dialog.style.BTN_YESNOCANCEL=6; ui_dialog.style.BTN_NOBUTTONS=8; ui_dialog.style.RESIZABLE=16; ui_dialog.style.MODELESS=32; ui_dialog.style.CENTER=64; ui_dialog.style.IFRAME=128; ui_dialog.style.READONLY=256; ui_dialog.style.ALERT=512; ui_dialog.button={}; ui_dialog.button.OK="ok"; ui_dialog.button.CANCEL="cancel"; ui_dialog.button.APPLY="apply"; ui_dialog.button.YES="yes"; ui_dialog.button.NO="no"; ui_dialog.button.CLOSE="close"; ui_dialog.button.CLOSEBOX="closebox"; ui_dialog.button.HELPBOX="helpbox"; ui_dialog.button._styles_=[[ui_dialog.button.OK],[ui_dialog.button.OK,ui_dialog.button.CANCEL],[ui_dialog.button.OK,ui_dialog.button.CANCEL,ui_dialog.button.APPLY],[ui_dialog.button.CLOSE],[ui_dialog.button.CANCEL],[ui_dialog.button.YES,ui_dialog.button.NO],[ui_dialog.button.YES,ui_dialog.button.NO,ui_dialog.button.CANCEL],null,[]]; ui_dialog.prototype={create:function(){ var _2f6=null; if(xIE4Up){ _2f6=document.createElement("iframe"); _2f6.id=this.id+"iframe"; _2f6.style.display="none"; _2f6.style.border="0px"; _2f6.style.position="absolute"; _2f6.src=_F_Config.webContent+"/fragments/common/images/space.gif"; this.backing=_2f6; document.body.appendChild(_2f6); } var div=document.createElement("DIV"); div.className="cogstyle-dialog"; div.id=this.id; div.style.display="none"; if((this.styles&ui_dialog.style.ALERT)==ui_dialog.style.ALERT){ div.setAttribute("role","alert"); } var _2f8=""+""+""+""+""+""+""+"
"+""+""+""; if(this.fragment!=null&&_F_Array.indexOf(this.fragment.modes,"help")>-1){ _2f8+=""; } _2f8+=""+""+"
"+_F_Strings.htmlEncode(this.caption)+""+""+PFM.JS.IDS_JS_HELP_URL+""+""+""+"
"+"
"; var _2f9=" id=\""+this.id+"content\" class=\"cogstyle-dialog-content\" style=\"width:"+this.dx+"px;height:"+this.dy+"px"; if((this.styles&ui_dialog.style.IFRAME)!=ui_dialog.style.IFRAME){ _2f8+=""; }else{ _2f8+=""; } _2f8+="
"+""; }else{ _2f8+="
"; } if(((this.styles&ui_dialog.style.RESIZABLE)==ui_dialog.style.RESIZABLE)&&((this.styles&ui_dialog.style.IFRAME)!=ui_dialog.style.IFRAME)){ _2f8+=""; } _2f8+=""+"
"; var _2fa=ui_dialog.button._styles_[this.styles&15]; var i,l=_2fa.length; if(l>0){ for(i=0;i"; } _2f8+=""+"\"\""+"
"+"
"+"
"; div.innerHTML=_2f8; document.body.appendChild(div); this.attachContent(this.content); for(var b in ui_dialog.button){ var btn=$(this.id+"btn"+ui_dialog.button[b]); if(btn!=null){ xAddEventListener(btn,"click",_F_Document.associate(btn,this,"oncommand")); } } var _2ff=$(this.id+"caption"); _2ff.xdlg=this; xAddEventListener(div,"mousedown",_F_Document.associate(div,this,"onactivate")); xEnableDrag(_2ff,this.onstartmove,this.onmove,null); if((this.styles&ui_dialog.style.RESIZABLE)==ui_dialog.style.RESIZABLE){ var _300=$(this.id+"resizebox"); _300.xdlg=this; xEnableDrag(_300,this.onstartresize,this.onresize,null); } if((this.styles&ui_dialog.style.IFRAME)==ui_dialog.style.IFRAME){ if((this.styles&ui_dialog.style.RESIZABLE)==ui_dialog.style.RESIZABLE){ _F_log("I","Resize not currently available for dialogs displaying iframes."); } this.showLoadingIndicator(); this.postForm(this.srcHref); } return div; },showLoadingIndicator:function(){ var _301=null; var _302; _301=$(this.id+"progressDiv"); if(_301==null){ _301=xCreateElement("div"); _301.id=this.id+"progressDiv"; var _303=ui_templates.get(ui_templates.contentTemplate,"CONTENTID",_301.id+"content"); _302=$(this.id+"content"); _301.innerHTML=_303; _301.style.height=this.dy; _301.style.width=this.dx; _302.parentNode.insertBefore(_301,_302); _F_Document.addEventListener(_302,"load",_F_Document.associate(_302.id,this,"onContentLoaded")); } _302.style.display="none"; },onContentLoaded:function(_304){ var _305=$(this.id+"content"); var _306=$(this.id+"progressDiv"); if((_305)&&(_305.style.display=="none")){ _306.style.display="none"; _305.style.display=""; } },postForm:function(url){ var _308=$(this.id+"content"); var _309=document.createElement("form"); _309.setAttribute("name","_THIS_dlg_window_form"); _309.setAttribute("method","POST"); _309.setAttribute("target",_308.name); var _30a=url.indexOf("?"); var _30b=(_30a==-1)?url:url.substring(0,_30a); _309.setAttribute("action",_30b); if(_30a!=-1){ var _30c=url.substring(_30a+1); var _30d=_30c.split("&"); var i; for(i=0;i<_30d.length;++i){ if(_30d[i].length>0){ var _30f=document.createElement("input"); _30f.setAttribute("type","hidden"); var _310=_30d[i].indexOf("="); if(_310!=-1){ _30f.setAttribute("name",unescape(_30d[i].substring(0,_310))); _30f.setAttribute("value",unescape(_30d[i].substring(_310+1))); }else{ _30f.setAttribute("name",unescape(_30d[i])); _30f.setAttribute("value",""); } _309.appendChild(_30f); } } } document.body.appendChild(_309); _309.submit(); document.body.removeChild(_309); _309=null; },destroy:function(){ this.hide(); if(xIE4Up){ if($(this.id+"caption")){ xDisableDrag(this.id+"caption"); } if($(this.id+"resizebox")){ xDisableDrag(this.id+"resizebox"); } if((this.styles&ui_dialog.style.IFRAME)==ui_dialog.style.IFRAME){ var _311=$(this.id+"content"); _311.parentNode.removeChild(_311); } } this.dlg.parentNode.removeChild(this.dlg); this.dlg=null; if(this.backing){ this.backing.parentNode.removeChild(this.backing); this.backing=null; } },show:function(){ if(this.dlg==null){ this.dlg=this.create(); } ui_dialog.chain.push(this); this.center(this.x,this.y,this.dx,this.dy); this.onactivate(); if(this.fragment){ this.fragment.raiseEvent("cognos.ui.dialog.show",null,null); } this.initTabStops(); },initTabStops:function(_312){ for(var i=0;i0){ this.eventHandlers[this.eventHandlers.length]=dojo.connect(_317,"onmouseup",function(e){ dojo.stopEvent(e); setTimeout(function(){ tabStops[tabIdx].focus(); },1); }); } } for(var i=0;i<_314.length;i++){ tabStops[tabStops.length]=document.getElementById(this.id+"btn"+_314[i]); } for(var i=0;i0){ tabIdx=0; var self=this; this.eventHandlers[this.eventHandlers.length]=dojo.connect(dojo.body(),"onkeypress",function(e){ if(e.charOrCode==dojo.keys.TAB){ if(e.shiftKey){ if(--tabIdx==-1){ dojo.stopEvent(e); tabIdx=tabStops.length-1; } }else{ if(++tabIdx==tabStops.length){ dojo.stopEvent(e); tabIdx=0; } } setTimeout(function(){ tabStops[tabIdx].focus(); },1); }else{ if(e.charOrCode==dojo.keys.ESCAPE){ dojo.stopEvent(e); self.processCommand(ui_dialog.button.CANCEL); } } }); if(!_312){ tabStops[0].focus(); } } } },center:function(_31e,_31f,_320,_321){ if((this.styles&ui_dialog.style.CENTER)!=0){ _31e=((xClientWidth()-_320)/2); if(_31e<0){ _31e=0; } _31f=((xClientHeight()-_321)/2); if(_31f<0){ _31f=0; } }else{ if(_31e==-1){ ui_dialog.nextX+=20; if(ui_dialog.nextX>200){ ui_dialog.nextX=0; } _31e=ui_dialog.nextX; } if(_31f==-1){ ui_dialog.nextY+=20; if(ui_dialog.nextY>200){ ui_dialog.nextY=0; } _31f=ui_dialog.nextY; } } if((this.styles&ui_dialog.style.MODELESS)==0){ var _322=ui_locker.get(); _322.show(); } if(this.contentId!=null){ var _323=$(this.contentId); this.dlg.style.fontSize=xGetComputedStyle(_323,"font-size"); this.dlg.style.fontFamily=xGetComputedStyle(_323,"font-family"); } this.dlg.style.left=_31e+"px"; this.dlg.style.top=_31f+"px"; this.dlg.style.display=""; if(this.backing){ this.backing.style.left=_31e+"px"; this.backing.style.top=_31f+"px"; this.backing.style.display=""; xResizeTo(this.backing,xWidth(this.dlg),xHeight(this.dlg)); } },hide:function(){ for(var i=0;icx){ nx=cx-w; } if((ny+h)>cy){ ny=cy-h; } _334.x=nx; _334.y=ny; xMoveTo(elm,nx,ny); if(_334.backing){ xMoveTo(_334.backing,nx,ny); } } } },onstartresize:function(e,dx,dy){ if(e.xdlg!=null){ var _33f=e.xdlg; if(_33f!=null){ var elm=_33f.dlg; } } },onresize:function(e,dx,dy){ if(e.xdlg!=null){ var _344=e.xdlg; if(_344!=null){ var elm=$(_344.id+"content"); if((xWidth(elm)+dx)>_344.minDialogWidth){ xResizeTo(elm,xWidth(elm)+dx,xHeight(elm)+dy); if(_344.backing){ xResizeTo(_344.backing,xWidth(_344.dlg),xHeight(_344.dlg)); } } } } },onclose:function(){ this.hide(); },oncommand:function(e,tag){ try{ if(false==this.processCommand(tag.id.substring((this.id+"btn").length))){ return; } } catch(err){ _F_log("E",err); } if(this.content&&this.contentNativeParent){ this.content.parentNode.removeChild(this.content); this.contentNativeParent.appendChild(this.content); } this.hide(); },processCommand:function(_348){ if(this.fragment){ if((_348==ui_dialog.button.OK)||(_348==ui_dialog.button.APPLY)||(_348==ui_dialog.button.YES)){ return this.fragment.raiseEvent("cognos.ui.dialog.ok",null,null); }else{ if((_348==ui_dialog.button.CANCEL)||(_348==ui_dialog.button.CLOSEBOX)||(_348==ui_dialog.button.CLOSE)||(_348==ui_dialog.button.NO)){ return this.fragment.raiseEvent("cognos.ui.dialog.cancel",null,null); }else{ if((_348==ui_dialog.button.HELPBOX)){ ui_fragment_help(this.fragment); return false; }else{ _F_log("E","Event "+evt.name+" not handled"); return false; } } } } return true; },setCaption:function(text){ if(this.dlg!=null){ $(this.id+"captiontext").innerHTML=_F_Strings.htmlEncode(text); }else{ this.caption=text; } },setContent:function(_34a){ this.content=_34a; if(this.dlg!=null){ this.attachContent(_34a); } },attachContent:function(_34b){ this.content=_34b; var _34c=$(this.id+"content"); if(_34c){ if(typeof _34b=="string"){ var _34d=document.createElement("div"); _34d.innerHTML=_34b; _34c.appendChild(_34d); }else{ this.contentNativeParent=_34b.parentNode; if(this.contentNativeParent){ this.contentNativeParent.removeChild(_34b); } _34c.appendChild(_34b); _34b.style.display=""; } } },getResults:function(){ return this.results; }}; function ui_locker(){ this.divID="ui_locker"; this.backingID="ui_lockerBacking"; var _34e=$(this.backingID); if(_34e==null){ _34e=document.createElement("iframe"); _34e.id=this.backingID; _34e.name=this.backingID; _34e.style.display="none"; _34e.style.position="absolute"; _34e.style.backgroundColor="#dddddd"; _34e.style.filter="alpha(opacity=0)"; _34e.style.opacity="0.0"; _34e.style.MozOpacity="0.0"; _34e.src=_F_Config.webContent+"/fragments/common/images/space.gif"; _34e.setAttribute("role","presentation"); document.body.appendChild(_34e); } var div=$(this.divID); if(div==null){ div=document.createElement("DIV"); div.id=this.divID; div.style.display="none"; div.style.position="absolute"; div.style.backgroundColor="#dddddd"; document.body.appendChild(div); } this.count=0; }; ui_locker.singleton=null; ui_locker.get=function(){ if(ui_locker.singleton==null){ ui_locker.singleton=new ui_locker(); } return this.singleton; }; ui_locker.prototype={show:function(_350){ var div=$(this.divID); var _352=$(this.backingID); if((++this.count)==1){ div.style.width="0px"; div.style.height="0px"; div.style.top="0px"; div.style.left="0px"; div.style.display=""; _352.style.width="0px"; _352.style.height="0px"; _352.style.top="0px"; _352.style.left="0px"; _352.style.display=""; if(_350&&_350==true){ div.style.filter="alpha(opacity=0)"; div.style.opacity="0.0"; div.style.MozOpacity="0.0"; }else{ div.style.filter="alpha(opacity=50)"; div.style.opacity="0.5"; div.style.MozOpacity="0.5"; } this.onresize(); } if(ui_dialog.chain!=null&&ui_dialog.chain.length>0){ var w=ui_dialog.chain[ui_dialog.chain.length-1]; if(w.dlg!=null){ w.dlg.parentNode.insertBefore(_352,w.dlg); w.dlg.parentNode.insertBefore(div,w.dlg); } } },hide:function(){ var div=$(this.divID); var _355=$(this.backingID); if(ui_dialog.chain!=null&&ui_dialog.chain.length>0){ var w=ui_dialog.chain[ui_dialog.chain.length-1]; if(w.dlg!=null){ w.dlg.parentNode.insertBefore(_355,w.dlg); w.dlg.parentNode.insertBefore(div,w.dlg); } } if((--this.count)==0){ xDisplay(this.divID,"none"); xDisplay(this.backingID,"none"); } },isVisible:function(){ return (ui_locker.singleton!=null)&&("none"!=xDisplay(this.divID)); },onresize:function(){ var div=$(this.divID); var _358=$(this.backingID); var cx=xClientWidth(); if(cxxClientHeight()){ y=y-_383-e.offsetHeight; } y=y+getBodyScrollPosY(); x=x+getBodyScrollPosX(); if(y<0){ y=0; } this.menu.style.top=y+"px"; if((x+this.menu.offsetWidth)>document.body.offsetWidth){ x+=e.offsetWidth-this.menu.offsetWidth; } this.menu.style.left=x+"px"; this.backing.style.top=y+"px"; this.backing.style.height=xHeight(this.menu); this.backing.style.left=x+"px"; this.backing.style.width=xWidth(this.menu); this.backing.style.display="block"; if(!this.menudef.parent){ ui_curmenu=this; this.menu.focus(); } if(this.curitem==null){ this.curitem=0; } var _384=document.getElementById(this.menudef.id+"TR"+this.curitem); _384.className="cogstyle-menu-item-hilite"; _384.focus(); for(var _385=document.getElementsByTagName("iframe"),i=_385.length;i--;){ if(_385[i].getAttribute("menu-focus")==null){ _F_Document.addEventListener(_385[i],"focus",ui_menuHideHook); _385[i].setAttribute("menu-focus","set"); } if(_385[i].getAttribute("title")==null){ _385[i].setAttribute("role","presentation"); } } evt.cancelBubble=true; if(evt.stopPropagation){ evt.stopPropagation(); } this.enabled=true; },hide:function(){ if((!this.enabled)&&(this.menu!=null)){ this.backing.style.display="none"; this.menu.style.display="none"; if(this.curitem!=null){ document.getElementById(this.menudef.id+"TR"+this.curitem).className="cogstyle-menu-item"; this.curitem=null; } } },hideFocusOnControlElement:function(_387){ if(this.originalControlElement!=null){ if(_387){ this.originalControlElement.focus(); } this.currentControlElement=null; } ui_menuHide(); },findObject:function(evt){ var e=evt.srcElement?evt.srcElement:evt.target; while(e!=null){ if(typeof e.onclick!=="undefined"||typeof e.onmouseover!=="undefined"){ return e; } e=e.parentNode; } return e; },handleTab:function(evt){ this.keyIsUp=true; evt=evt!=null?evt:window.event; if(evt.keyCode==9){ document.getElementById(this.menudef.id+"TR"+this.curitem).className="cogstyle-menu-item"; this.curitem=null; this.hideFocusOnControlElement(true); } },onkeypress:function(evt){ evt=evt!=null?evt:window.event; var e=evt.srcElement?evt.srcElement:evt.target; var _38d; if(evt.keyCode==13){ if(this.keyIsUp){ ui_curmenu.selectMenuItem(this.menudef.items[this.curitem].id); ui_menuHide(evt); if(this.fragment){ this.fragment.raiseEvent("cognos.ui.menu.select",context); } if(this.menudef.items[this.curitem].action){ setTimeout(this.menudef.items[this.curitem].action,1); } if(this.menudef.items[this.curitem].items){ this.child[this.curitem].show(evt); document.getElementById(this.menudef.id+"TR"+this.curitem).className="cogstyle-menu-item"; }else{ this.curitem=null; this.hideFocusOnControlElement(); } } this.keyIsUp=false; }else{ if(evt.keyCode==27){ document.getElementById(this.menudef.id+"TR"+this.curitem).className="cogstyle-menu-item"; this.curitem=null; this.hideFocusOnControlElement(true); this.keyIsUp=false; }else{ if(evt.keyCode==38){ if(this.curitem!=null){ document.getElementById(this.menudef.id+"TR"+this.curitem).className="cogstyle-menu-item"; if(this.curitem>0){ this.curitem--; } _38d=document.getElementById(this.menudef.id+"TR"+this.curitem); _38d.className="cogstyle-menu-item-hilite"; _38d.focus(); } }else{ if(evt.keyCode==40){ if(this.curitem!=null){ document.getElementById(this.menudef.id+"TR"+this.curitem).className="cogstyle-menu-item"; if(this.menudef.items.length-1>this.curitem){ this.curitem++; } _38d=document.getElementById(this.menudef.id+"TR"+this.curitem); _38d.className="cogstyle-menu-item-hilite"; _38d.focus(); }else{ this.curitem=0; _38d=document.getElementById(this.menudef.id+"TR"+this.curitem); _38d.className="cogstyle-menu-item-hilite"; _38d.focus(); } }else{ if(evt.keyCode==9){ this.hideFocusOnControlElement(true); } } } } } xStopPropagation(evt); },onmouseover:function(e,tag){ ui_menuMouseOver(e,this); this.enabled=true; },onmouseoverParent:function(e,tag){ ui_menuMouseOver(e,this); this.child[tag.key].show(e!=null?e:window.event); },onmouseout:function(e,tag){ this.child[tag.key].enabled=false; var self=this; window.setTimeout(function(){ ui_menuHide(self.child[tag.key]); },100); },getRootMenuItems:function(){ return this.menudef.items; },getSubMenuItems:function(item){ return item.items; },getMenuItemAndGroup:function(id,_397){ var _398=null; var _399; if(_397){ _399=_397; }else{ _399=this.menudef.items; } for(var i=0;i<_399.length;i++){ if(_399[i].id!=null&&_399[i].id==id){ _398={}; _398.group=_399; _398.item=_399[i]; return _398; } if(_399[i].items){ _398=this.getMenuItemAndGroup(id,_399[i].items); if(_398){ return _398; } } } return null; },selectMenuItem:function(id){ var _39c=this.getMenuItemAndGroup(id); if(_39c){ this.clearGroupSelection(_39c.group); _39c.item.selected=true; this.rebuild=true; return true; } return false; },clearGroupSelection:function(_39d){ for(var i=0;i<_39d.length;i++){ if(_39d[i].selected){ this.rebuild=true; _39d[i].selected=false; } } }}; function ui_dockpane(obj){ for(var o in obj){ this[o]=obj[o]; } if(this.width==null){ this.width=200; } this.anim_pos=0; this.sid=""; }; ui_dockpane.prototype={show:function(){ this.anim_pos=-this.width; this.div.style.left=this.anim_pos+"px"; this.div.style.top="0px"; this.div.style.width=this.width+"px"; this.div.style.height="100%"; this.div.style.display="block"; this.parent.style.marginLeft="0px"; var self=this; this.sid=window.setInterval(function(){ self.animate(); },10); },hide:function(){ this.anim_pos=0; this.div.style.display="none"; this.parent.style.marginLeft="0px"; },animate:function(){ if(this.anim_pos<0){ this.anim_pos+=(this.width/25); this.div.style.left=this.anim_pos+"px"; }else{ window.clearInterval(this.sid); this.div.style.left="0px"; this.parent.style.marginLeft=this.width+"px"; } }}; function ui_modal_dialog(){ throw "RuntimeException: ui_modal_dialog is a static class and may not be instantiated"; }; var UI_MODAL_DIALOG_VISIBLE_DIALOG=true; var UI_MODAL_DIALOG_TRIGGER_ELEMENT=null; ui_modal_dialog.open=function(url,_3a3,_3a4,_3a5,_3a6,_3a7){ UI_MODAL_DIALOG_TRIGGER_ELEMENT=document.activeElement; if(_3a4!=null){ UI_MODAL_DIALOG_VISIBLE_DIALOG=_3a4; }else{ UI_MODAL_DIALOG_VISIBLE_DIALOG=true; } var _3a8=true; if(_3a5!=null){ _3a8=_3a5; } var _3a9=false; if(_3a3!=null&&_3a3==true){ _3a9=true; } var _3aa=document.getElementById("UI_MODAL_DIALOG_PAGE_BLUR_BACKING"); if(_3aa==null){ _3aa=document.createElement("iframe"); _3aa.id="UI_MODAL_DIALOG_PAGE_BLUR_BACKING"; _3aa.name="UI_MODAL_DIALOG_PAGE_BLUR_BACKING"; _3aa.style.display="none"; _3aa.style.position="absolute"; _3aa.style.backgroundColor="#eeeeee"; _3aa.style.filter="alpha(opacity=0)"; _3aa.style.opacity="0.0"; _3aa.src=_F_Config.webContent+"/fragments/common/images/space.gif"; document.body.appendChild(_3aa); } var _3ab=document.getElementById("UI_MODAL_DIALOG_PAGE_BLUR"); if(_3ab==null){ _3ab=document.createElement("div"); _3ab.id="UI_MODAL_DIALOG_PAGE_BLUR"; _3ab.style.display="none"; _3ab.style.position="absolute"; _3ab.style.backgroundColor="#eeeeee"; _3ab.style.filter="alpha(opacity=50)"; _3ab.style.opacity="0.3"; _3ab.style.zIndex="8999"; document.body.appendChild(_3ab); } var _3ac=document.getElementById("UI_MODAL_DIALOG_IFRAME_DIV"); if(_3ac==null){ var _3ad=document.createElement("div"); _3ad.id="UI_MODAL_DIALOG_IFRAME_BUSY_DIV"; _3ad.style.padding="10px"; _3ad.style.position="absolute"; document.body.appendChild(_3ad); var nobr=document.createElement("div"); nobr.style.backgroundColor="#EFEFEF"; nobr.style.padding="10px"; nobr.style.border="solid 1px black"; nobr.style.textAlign="center"; nobr.id="UI_MODAL_DIALOG_IFRAME_BUSY_IMG"; _3ad.appendChild(nobr); var _3af=document.createElement("img"); _3af.src=_F_Config.webContent+"/fragments/common/images/progress.gif"; _3af.align="absmiddle"; nobr.appendChild(_3af); var _3b0=document.createElement("a"); _3b0.href="javascript:ui_modal_dialog.close()"; nobr.appendChild(_3b0); _3b0.appendChild(document.createTextNode(PFM.JS.IDS_JS_MODAL_CANCEL)); _3ac=document.createElement("div"); _3ac.id="UI_MODAL_DIALOG_IFRAME_DIV"; _3ac.style.padding="0px"; _3ac.style.display="none"; _3ac.style.position="absolute"; _3ac.style.zIndex="9001"; _3ac.tabIndex="0"; _3ac.setAttribute("role","dialog"); document.body.appendChild(_3ac); var _3b1=document.createElement("div"); _3b1.id="UI_MODAL_DIALOG_IFRAME_HEADER_DIV"; _3b1.style.textAlign="right"; _3b1.style.width="100%"; _3b1.style.paddingTop="3px"; _3b1.style.paddingBottom="3px"; _3b1.style.borderRight="solid 1px black"; _3b1.style.borderLeft="solid 1px black"; _3b1.style.borderTop="solid 1px black"; _3b1.style.height="20px"; _3b1.style.backgroundColor="#eeeeee"; _3b0=document.createElement("a"); _3b0.style.marginRight="3px"; _3b0.href="javascript:ui_modal_dialog.close()"; var _3b2=document.createElement("img"); _3b2.id="UI_MODAL_DIALOG_IFRAME_HEADER_DIV_CLOSE"; _3b2.style.border="solid 1px #eeeeee"; _3b2.src=_F_Config.webContent+"/fragments/common/images/dialog_close.gif"; _3b2.border="0"; _3b2.align="absmiddle"; _F_Document.addEventListener(_3b2,"mouseover",function(_3b3){ document.getElementById("UI_MODAL_DIALOG_IFRAME_HEADER_DIV_CLOSE").style.border="solid 1px black"; }); _F_Document.addEventListener(_3b2,"mouseout",function(_3b4){ document.getElementById("UI_MODAL_DIALOG_IFRAME_HEADER_DIV_CLOSE").style.border="solid 1px #eeeeee"; }); _3b0.appendChild(_3b2); _3b1.appendChild(_3b0); _3ac.appendChild(_3b1); var _3b5=null; if(xIE4Up){ try{ _3b5=document.createElement("