if(!this.ariba){this.ariba={awCurrWindow:null}
}ariba.Debug={log:function(){},logEvent:function(){}};
ariba.Util=function(){var AWAlertException=false;
var Util={extend:function(dest,source){for(var p in source){dest[p]=source[p]
}return dest
},_arrayAdd:function(dest,src,pred,childFn){for(var i=0;
i<src.length;
i++){var o=src[i],children;
if(!pred||pred(o)){dest.push(o)
}if(childFn&&(children=childFn(o))){this._arrayAdd(dest,children,pred,childFn)
}}return dest
},concatArr:function(a,b){if(!a||!a.length){return b
}if(!b||!b.length){return a
}var r=new Array(a.length+b.length);
var i=a.length;
while(i--){r[i]=a[i]
}i=b.length;
while(i--){r[i+a.length]=b[i]
}return r
},toArray:function(arr){var i=(arr)?arr.length:0,r=new Array(i);
while(i--){r[i]=arr[i]
}return r
},arrayRemoveMatching:function(arr,target,getter){if(!arr){return 
}for(var i=0,c=arr.length;
i<c;
i++){var e=(getter)?getter(arr[i]):arr[i];
if(e==target){arr.splice(i,1);
break
}}},isArray:function(obj){return obj!=null&&typeof obj=="object"&&"splice" in obj&&"join" in obj
},itemOrArrAdd:function(orig,obj){return !orig?obj:(this.isArray(orig)?orig.push(obj):[orig].push(obj))
},isUndefined:function(value){return(typeof value=="undefined")
},isNullOrUndefined:function(value){return(value==null||(typeof value=="undefined"))
},isNullOrBlank:function(value){return(value==null||(typeof value=="undefined")||(value==""))
},stringEndsWith:function(sourceString,searchString){return(sourceString.lastIndexOf(searchString)==(sourceString.length-searchString.length))
},takeValue:function(obj,keypath,value){function set(obj,keyArr,value){if(keyArr.length==1){obj[keyArr[0]]=value
}else{set(obj[keyArr.shift()],keyArr,value)
}}set(obj,keypath.split("."),value)
},takeValues:function(obj,keys,values){for(var i=0;
i<values.length;
i++){this.takeValue(obj,keys[i],values[i])
}},printStack:function(){var sMsg="";
var oFunc;
if(arguments.length!=0){oFunc=arguments[0]
}else{oFunc=this.printStack.caller
}while(oFunc!=null){var sFunc=oFunc.toString();
sMsg+="<li>"+sFunc.substring(0,sFunc.search(/\n/))+"<br/>";
oFunc=oFunc.caller
}return sMsg
},getExceptionMsg:function(e,sMsg){if(AWAlertException){alert(sMsg)
}var str="****************************<br/>"+sMsg+"<br/>Exception: "+e.message+"<br/>"+this.printStack(getExceptionMsg.caller)+"<br/>****************************<br/>";
return str
},htmlEscapeValue:function(sValue){if(sValue==null){return 
}if(sValue.search(/</)!=-1){sValue=sValue.replace(/&/g,"&amp;");
sValue=sValue.replace(/</g,"&lt;");
sValue=sValue.replace(/>/g,"&gt;");
sValue="<pre>"+sValue+"</pre>"
}else{if(sValue.search(/function/)!=-1){sValue="<pre>"+sValue+"</pre>"
}}return sValue
},uriEncode:function(s){return escape(s).replace("+","%2B").replace("/","%2F")
},strTrim:function(str){return str.replace(/^\s+/,"").replace(/\s+$/,"")
},max:function(value1,value2){return value1>value2?value1:value2
},indexOf:function(list,item){var length=list.length;
for(var index=0;
index<length;
index++){if(list[index]==item){return index
}}return -1
},indexOfCharInSet:function(targetString,startIndex,charSet){var length=targetString.length;
for(var index=startIndex;
index<length;
index++){if(charSet.indexOf(targetString.charAt(index))!=-1){return index
}}return -1
},indexOfCharNotInSet:function(targetString,startIndex,charSet){var length=targetString.length;
for(var index=startIndex;
index<length;
index++){if(charSet.indexOf(targetString.charAt(index))==-1){return index
}}return -1
},indexOfNotChar:function(targetString,startIndex,ch){var length=targetString.length;
for(var index=startIndex;
index<length;
index++){if(targetString.charAt(index)!=ch){return index
}}return -1
},parseInt:function(intString){if(intString&&typeof intString=="number"){return intString
}if(intString&&typeof intString=="string"&&intString.charAt(0)=="0"){var index=this.indexOfNotChar(intString,1,"0");
intString=intString.substring(index,intString.length)
}return parseInt(intString)
},incrementAttribute:function(object,attributeName){if(!object||!attributeName){return 
}var attributeValue=object.getAttribute(attributeName);
if(attributeValue){attributeValue=this.parseInt(attributeValue)+1
}else{attributeValue=1
}object.setAttribute(attributeName,attributeValue)
},getIntAttribute:function(object,attributeName){if(!object||!attributeName){return 0
}var attributeValue=object.getAttribute(attributeName);
if(attributeValue){return this.parseInt(attributeValue)
}return 0
},valueForBinding:function(target,key){var keyValue=target[key];
if(typeof keyValue=="function"){keyValue=eval("target."+key+"()")
}else{keyValue=target["_"+key]
}return keyValue
},setValueForBinding:function(target,key,value){var uppercaseKey=key.charAt(0).toUpperCase()+key.substr(1);
var setterKey="set"+uppercaseKey;
var keyValue=target[setterKey];
if(typeof keyValue=="function"){eval("target."+setterKey+"(value)")
}else{eval("target._"+key+" = value")
}},EOF:0};
Function.prototype.bind=function(){var __method=this,a=Util.toArray(arguments),obj=a.shift();
return function(){return __method.apply(obj,Util.concatArr(a,arguments))
}
};
return Util
}();
ariba.Dom=function(){var L=ariba.Util;
var J="MSIE 5.0";
var E="Netscape";
var F=1;
var D=new Array();
var I=navigator.appVersion;
var H=(window.attachEvent&&!window.opera)?true:false;
var A=I.indexOf("MSIE 8")!=-1;
var B=I.indexOf("MSIE 7")!=-1;
var C=I.indexOf("MSIE 6")!=-1;
var M=B||A;
var K=C||M;
var G={IsIE:H,IsIE8:A,IsIE7:M,IsIE6Only:C,IsIE6:K,IsIEonMac:(H&&(navigator.platform!="Win32"))?true:false,IsNS6:(!document.all&&document.getElementById)?true:false,IsMoz:(!document.all&&document.getElementById)?true:false,isSafari:navigator.appVersion.indexOf("Safari")!=-1,AWEmptyDocScriptlet:C?"javascript:false":"javascript:void(0);",AWOpenWindowErrorMsg:null,getElementById:function(P){var N=null;
try{if(P&&P!=null&&P!=""){N=document.getElementById?document.getElementById(P):document.all[P]
}}catch(O){}return N
},getDocumentElementById:function(N,O){if(!N){return null
}return N.getElementById?N.getElementById(O):N.all[O]
},findParent:function(N,Q,P){var O=P?N:N.parentNode;
while(O!=null&&O.nodeName!=Q){O=O.parentNode
}return O
},findChild:function(N,S,Q){var P=null;
if(!N){return N
}else{if(Q&&(N.nodeName==S)){return N
}else{if(N.childNodes){var R=N.childNodes;
for(var O=0;
O<R.length&&P==null;
O++){P=this.findChild(R[O],S,true)
}}}}return P
},findParentUsingPredicate:function(N,Q,P){var O=P?N:N.parentNode;
while(O!=null&&!Q(O)){O=O.parentNode
}return O
},findChildUsingPredicate:function(N,S,Q){var P=null;
if(!N){return N
}else{if(Q&&S(N)){return N
}else{if(N.childNodes){var R=N.childNodes;
for(var O=0;
O<R.length&&P==null;
O++){P=this.findChildUsingPredicate(R[O],S,true)
}}}}return P
},findChildrenUsingPredicate:function(O,T,R){var N=new Array();
if(!O){return O
}else{if(R&&T(O)){return new Array(O)
}else{if(O.childNodes){var S=O.childNodes;
for(var P=0;
P<S.length;
P++){var Q=this.findChildrenUsingPredicate(S[P],T,true);
N=N.concat(Q)
}}}}return N
},_appendChildren:function(P,N){for(var O=0;
O<N.length;
O++){P.appendChild(N[O])
}},elementInDom:function(N){var O=this.documentElement();
while(N&&N!=O){N=N.parentNode
}return N==O
},getInnerText:function(N){var O;
if(N){if(N.innerText){O=N.innerText
}else{if(N.textContent){O=N.textContent
}else{O=N.innerHTML.replace(/<[^>]+>/g,"");
O=O.replace(/&amp;/g,"&");
O=O.replace(/&lt;/g,"<");
O=O.replace(/&gt;/g,">")
}}}return O
},setInnerText:function(O,N){if(O){if(O.innerText||O.innerText==""){O.innerText=N
}else{O.innerHTML=N
}}},copyInnerText:function(O,N){if(O&&N){this.setInnerText(N,this.getInnerText(O))
}},isNetscape:function(){return(navigator.appName.indexOf(E)!=-1)
},openWindow:function(Q,N,P){var O=null;
try{O=D[N];
if(O==null||O.closed){if(P!=null){O=window.open(Q,N,P)
}else{O=window.open(Q,N)
}D[N]=O;
if(navigator.appVersion.indexOf(J)!=-1||navigator.appName.indexOf(E)!=-1){O.focus()
}else{if(this.IsIE6){function T(){O.focus()
}setTimeout(T)
}}}else{if(navigator.appVersion.indexOf(J)!=-1||navigator.appName.indexOf(E)!=-1){O.focus();
O.location.href=Q
}else{O.close();
if(P!=null){O=window.open(Q,N,P)
}else{O=window.open(Q,N)
}}}}catch(R){function S(){alert(G.AWOpenWindowErrorMsg)
}setTimeout(S)
}return O
},formForName:function(N){return document.forms[N]
},addFormField:function(O,P,N){return this.addFormFieldWithId(O,P,P,N)
},addFormFieldWithId:function(Q,N,R,O){if(document.getElementById){var P=Q[N];
if(P==null){P=document.createElement("input");
P.type="hidden";
P.id=N;
P.name=R
}if(P.parentNode!=Q){Q.appendChild(P)
}P.value=O;
return P
}},removeFormField:function(N,P){var O=N[P];
if(O&&O.parentNode){O.parentNode.removeChild(O);
N[P]=null
}},lookupFormId:function(O){var P=this.findParentUsingPredicate(O,function(R){return R.tagName=="FORM"||G.hasClass(R,"formProxy")
});
var Q=null;
if(P){var N=P.getAttribute("_fn");
if(N!=null){P=this.formForName(N)
}Q=P.id
}return Q
},limitTextLength:function(S,P){if(P<1){return 
}var O=S.value;
if(this.IsMoz){O=O.replace(/([^\r])\n/g,"$1\r\n");
O=O.replace(/^\n/g,"\r\n")
}var T=O.length;
if(T>P){S.value=O.substring(0,P)
}else{var N=this.getElementById(S.id+"MLI");
if(!N){return 
}var Q=N.clientWidth;
N.style.width="";
N.innerHTML=P-T;
var R=N.clientWidth;
N.style.width=Math.max(Q,R)+"px"
}},addClass:function(O,N){if(O.nodeType==F){if(O.className!=""&&N&&N.charAt(N.length-1)!=" "){N=N+" "
}if(O.className&&O.className.indexOf(N)==-1){O.className=N+O.className
}else{if(!O.className){O.className=N
}}}},removeClass:function(R,Q){var N=R.className;
if(!Q||!N){return 
}var O=N.indexOf(Q);
if(O!=-1){var P=O+Q.length;
if(P<N.length&&N.charAt(P)==" "){P++
}R.className=N.substring(0,O)+N.substring(P,N.length)
}},hasClass:function(O,N){return O.className&&(O.className.match(new RegExp("(^|\\s)"+N+"(\\s|$)"))!=null)
},positionDialogBox:function(Q){var N=this.positioningParent(Q.parentNode);
var P=(N==this.documentElement())?this.documentClientHeight():N.clientHeight;
var O=(N==this.documentElement())?this.documentClientWidth():N.clientWidth;
Q.style.left=O/2-Q.offsetWidth/2+this.getScrollLeft(N)+"px";
Q.style.top=P/2-Q.offsetHeight/2+this.getScrollTop(N)+"px";
if(Q.onresize){Q.onresize.call(Q)
}},getDocumentElement:function(){return document.documentElement
},documentClientHeight:function(){if(window.innerHeight){return window.innerHeight
}else{return document.documentElement.clientHeight
}},documentClientWidth:function(){if(window.innerWidth){return window.innerWidth
}else{return document.documentElement.clientWidth
}},setOpacity:function(O,N){var P=O.style;
if(typeof P.filter!="undefined"){P.filter="alpha(opacity="+N+")"
}else{P.opacity=(parseInt(N)/100)
}},absoluteTop:function(P){var O=P.offsetTop;
var N=P.offsetParent;
while(N!=null){O+=N.offsetTop;
if(N!=this.getPageScrollElement()){O-=N.scrollTop
}N=N.offsetParent
}return O
},clientHeight:function(O,P){var N=O.clientHeight;
if(!P){P=O
}N+=P.scrollTop;
return N
},visibleInScrollArea:function(U){var R=this.documentElement();
var T=this.getPageScrollElement();
var P=T.scrollTop;
var N=this.clientHeight(R,T);
var Q=this.absoluteTop(U);
var V=Q+U.clientHeight;
var O=(Q>P)&&(N>Q);
var S=(V>P)&&(N>V);
return O||S
},clientWidth:function(N,O){var P=N.clientWidth;
if(!O){O=N
}P+=O.scrollLeft;
return P
},correctForRightEdge:function(N,Q){var P=this.clientWidth(document.documentElement,this.getPageScrollElement());
var O=P-Q.offsetWidth;
if(N>O){N=O
}return N
},correctForBottomEdge:function(P,Q){var N=this.clientHeight(document.documentElement,this.getPageScrollElement());
var O=N-Q.offsetHeight;
if(P>O){P=O
}return P
},repositionDivToWindow:function(R){if(R.className.indexOf("noReposition")==-1){var Q=this.absoluteTop(R);
var O=this.absoluteLeft(R);
var P=this.correctForBottomEdge(Q,R);
var N=this.correctForRightEdge(O,R);
this.setAbsolutePosition(R,N,P)
}},absoluteLeft:function(P){var O=P.offsetLeft;
var N=P.offsetParent;
while(N!=null){O+=N.offsetLeft;
if(N!=this.getPageScrollElement()){O-=N.scrollLeft
}N=N.offsetParent
}return O
},minInsetWidth:function(Q,P){var O=this.absoluteLeft(Q);
var N=O+Q.offsetWidth;
var S=this.absoluteLeft(P);
var R=S+P.offsetWidth;
return Math.min((S-O),(N-R))
},cssToJSName:function(S){if(S.indexOf("-")<0){return S
}var Q=S.split("-");
var N=Q[0];
for(var O=1,P=Q.length;
O<P;
O++){var R=Q[O];
N+=R.charAt(0).toUpperCase()+R.substring(1)
}return N
},effectiveStyle:function(O,R){if(!O.style){return 
}var N=this.cssToJSName(R);
var Q=O.style[N];
if(!Q){if(document.defaultView&&document.defaultView.getComputedStyle){var P=document.defaultView.getComputedStyle(O,null);
Q=P?P.getPropertyValue(R):null
}else{if(O.currentStyle){Q=O.currentStyle[N]
}}}return Q=="auto"?null:Q
},offsetParent:function(N){if(N.offsetParent){return N.offsetParent
}if(N==document.body){return N
}while((N=N.parentNode)&&N!=document.body){if(this.effectiveStyle(N,"position")!="static"){return N
}}return document.body
},positioningParent:function(N){while(N&&(N=N.parentNode)&&N!=document.documentElement){var O=this.effectiveStyle(N,"position");
if(O=="absolute"||O=="relative"||O=="fixed"){break
}}return N||document.documentElement
},contentParent:function(N){var O=this.positioningParent(N);
return O==document.documentElement?document.body:O
},containerParent:function(O){var N=this.findParentUsingPredicate(O,function(P){return G.hasClass(P,"panelContainer")
});
return N!=null?N:document.body
},setAbsolutePosition:function(N,Q,P){var O=this.offsetParent(N);
if(O){Q-=this.absoluteLeft(O);
P-=this.absoluteTop(O);
if(O!=this.getPageScrollElement()){Q+=O.scrollLeft;
P+=O.scrollTop
}}N.style.left=Q+"px";
N.style.top=P+"px"
},relativeOffset:function(O){var Q,P=0;
var N=false;
do{Q+=O.offsetTop||0;
P+=O.offsetLeft||0;
O=O.offsetParent;
if(O){var R=this.effectiveStyle(O,"position");
N=(R=="absolute"||R=="relative")
}}while(O&&!N);
return[P,Q]
},isVisible:function(N){var O=this.documentElement();
while(N!=O){if(N.style.display=="none"){return false
}N=N.parentNode
}return true
},containerOffsetSize:function(Q){var P;
var O=Q.offsetWidth,N=Q.offsetHeight;
if(!O){P=Q.style.display;
Q.style.display="BLOCK";
O=Q.offsetWidth;
N=Q.offsetHeight;
Q.style.display=P
}return[O,N]
},getWindowSize:function(){var O=0,N=0,P=0;
if(typeof (window.innerWidth)=="number"){O=window.innerWidth;
N=window.innerHeight
}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){O=document.documentElement.clientWidth;
N=document.documentElement.clientHeight;
P=document.documentElement.scrollHeight
}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){O=document.body.clientWidth;
N=document.body.clientHeight;
P=document.body.scrollHeight
}}}return new Array(O,N,P)
},isWindowNarrow:function(){var N=this.getWindowSize();
return(N[0]<300)
},fadeInElement:function(N){this.fadeElement(N,"hidden","visible")
},fadeOutElement:function(N){this.fadeElement(N,"visible","hidden")
},fadeElement:function(O,N,Q){try{if(O.filters){if(!O.filters.blendTrans){O.style.filter="blendTrans(duration=.2)"
}O.style.visibility=N;
if(O.filters.blendTrans){if(O.filters.blendTrans.status!=2){O.filters.blendTrans.apply();
O.style.visibility=Q;
O.filters.blendTrans.play()
}}}}catch(P){O.style.visibility=Q
}},setBodyClass:function(N){if(this.IsIE){N+=" IsIE";
N+=this.IsIE7?" IsIE7":" IsIE6"
}else{if(this.isSafari){N+="IsSaf"
}else{N+="IsMoz"
}}this.addClass(document.body,N)
},findRow:function(Q,N){var R;
var P=Q.childNodes;
for(var O=0;
O<P.length;
O++){if(P[O].id==N){R=P[O];
break
}}return R
},findRowIndex:function(O,R){var N=-1;
var Q=R.rows;
for(var P=0;
P<Q.length;
P++){if(Q[P].id==O){N=P;
break
}}return N
},findElement:function(N,P){if(!N){return null
}for(var O=0;
O<N.length;
O++){if(N[O].id==P){return N[O]
}}return null
},getHashLocation:function(){var N=window.location.hash;
if(!N||N==""||N=="#"){return null
}else{if(N.charAt(0)=="#"){return N.substring(1)
}else{return N
}}},boolAttr:function(Q,N,P){var O=Q.getAttribute(N);
return(O)?(O=="true"):P
},relocateDiv:function(Q){if(Q.getAttribute("_reloc")=="1"){var P=Q.id;
this.removeRelocatedCopy(P);
var N=this.findParentUsingPredicate(Q,function(R){return R.className&&R.className.indexOf("relocdest")!=-1
},true);
if(N){var O=document.createElement("div");
O.id=P+"_MovedCopy";
Q.parentNode.removeChild(Q);
N.appendChild(O);
O.appendChild(Q);
Q.setAttribute("_reloc",0)
}}},removeRelocatedCopy:function(P){var O=P+"_MovedCopy";
var N=this.getElementById(O);
if(N){N.parentNode.removeChild(N)
}},elementValue:function(N){var O=this.getElementById(N);
return O?O.value:null
},elementIntValue:function(N){var O=this.getElementById(N);
return O?parseInt(O.value):0
},setElementValue:function(N,O){if(N){var P=this.getElementById(N);
if(P){P.value=O
}}},elmBottom:function(O){var N=O;
while(N=N.nextSibling){if(N.offsetTop){return N.offsetTop
}}return O.offsetTop+O.offsetHeight
},getRowCells:function(N){var O=N.children;
if(O==null){O=N.cells
}return O
},overlay:function(N){},unoverlay:function(N){},getActiveElementId:function(){var N=document.activeElement;
if(N){return N.id
}return null
},getScrollTop:function(N){return N.scrollTop
},getScrollLeft:function(N){return N.scrollLeft
},getPageScrollElement:function(){return document.documentElement
},EOF:0};
if(G.isSafari){L.extend(G,function(){return{getScrollTop:function(N){var O=N.scrollTop;
if(N=document.documentElement){O=document.body.scrollTop
}return O
},getScrollLeft:function(N){var O=N.scrollLeft;
if(N=document.documentElement){O=document.body.scrollLeft
}return O
},getPageScrollElement:function(){return document.body
},EOF:0}
}())
}if(G.IsIE){L.extend(G,function(){var N;
var O=function(){ariba.Dom.overlay(this)
};
return{setPageScroll:function(Q,P){this.setPageScrollLeft(Q);
this.setPageScrollTop(P)
},setPageScrollTop:function(P){this.documentElement().scrollTop=P
},getPageScrollTop:function(){return this.documentElement().scrollTop
},setPageScrollLeft:function(P){this.documentElement().scrollLeft=P
},getPageScrollLeft:function(){return this.documentElement().scrollLeft
},documentElement:function(){return ariba.Dom.IsIE6?document.documentElement:document.body
},getChildren:function(P){return P.children
},getParentElement:function(P){return P.parentElement
},styleSheetRules:function(P){return P.rules
},getOuterHTML:function(P){return P.outerHTML
},setOuterHTML:function(P,Q){P.outerHTML=Q
},registerOverlayIframe:function(P){if(!N){N=new Object()
}N[P.id]=P
},deregisterOverlayIframe:function(P){if(N&&N[P.id]){N[P.id]=null
}},updateOverlayIframes:function(){if(this.IsIE6Only&&N){var S=N;
N=null;
for(var Q in S){var T=S[Q];
if(T){var P=true;
var R=this.getElementById(T.divObjectId);
if(this.elementInDom(R)&&this.effectiveStyle(R,"display")!="none"&&R.overlayIframe==T){P=false
}if(P){T.style.display="none"
}else{if(R.awOnOverlayUpdate){R.awOnOverlayUpdate(R,T)
}}}}}},overlay:function(T,S){var R;
var P;
var U;
if(this.IsIE6Only&&T){if(T.style.display=="none"||!T.currentStyle){return 
}if(T.currentStyle.zIndex==0){T.style.zIndex=100
}U=T.id+"IFrame";
R=T.overlayIframe;
if(!R){R=this.getElementById(U)
}if(!R){U=T.id+"IFrame";
P=document.createElement("span");
var Q=this.containerParent(T);
Q.appendChild(P);
P.innerHTML="<iframe src='"+this.AWEmptyDocScriptlet+"' id='"+U+"' style='position:absolute;top:0px;left:0px;display:none;filter:alpha(opacity=000);background-color:#FFFFFF'></iframe>";
R=this.getElementById(U)
}T.overlayIframe=R;
if(typeof (S)=="undefined"||S){R.divObjectId=T.id;
this.registerOverlayIframe(R)
}R.style.width=T.offsetWidth;
R.style.height=T.offsetHeight;
if(T.style.top){R.style.top=T.style.top
}else{R.style.top=this.absoluteTop(T)
}if(T.style.left){R.style.left=T.style.left
}else{R.style.left=this.absoluteLeft(T)
}R.style.zIndex=T.currentStyle.zIndex-1;
R.style.display="block";
if(!T.onresize){T.onresize=O
}}},unoverlay:function(Q){var P;
if(this.IsIE6Only&&Q){P=Q.overlayIframe;
if(Q.overlayIframe){P.style.display="none";
this.deregisterOverlayIframe(P);
Q.onresize=null
}}},EOF:0}
}())
}if(!G.IsIE){L.extend(G,function(){var N={IMG:true,BR:true,INPUT:true,META:true,LINK:true,PARAM:true,HR:true};
return{setPageScroll:function(P,O){window.scroll(P,O)
},setPageScrollTop:function(O){window.scroll(this.getPageScrollLeft(),O)
},getPageScrollTop:function(){return window.pageYOffset
},setPageScrollLeft:function(O){window.scroll(O,this.getPageScrollTop())
},getPageScrollLeft:function(){return window.pageXOffset
},documentElement:function(){return document.documentElement
},getChildren:function(O){return O.childNodes
},getParentElement:function(O){return O.parentNode
},styleSheetRules:function(O){return null
},getOuterHTML:function(Q){var O=Q.attributes;
var R="<"+Q.tagName;
for(var P=0;
P<O.length;
P++){R+=" "+O[P].name+'="'+O[P].value+'"'
}if(N[this.tagName]){return R+">"
}return R+">"+Q.innerHTML+"</"+Q.tagName+">"
},setOuterHTML:function(O,Q){var P=O.ownerDocument.createRange();
P.setStartBefore(O);
var R=P.createContextualFragment(Q);
O.parentNode.replaceChild(R,O)
},EOF:0}
}())
}return G
}();
ariba.Event=function(){var Util=ariba.Util;
var Debug=ariba.Debug;
var Dom=ariba.Dom;
var Request=ariba.Request;
var AWDomCompleteCallbackList;
var AWDomCompleteCallbackListArgs;
var AWOnRefreshCallbacks;
var AWVBScriptOnLoad;
var _ScriptLockCount=0;
var _IdsByEvent=new Object();
var _FE=false;
var EventsEnabled=true;
var AWDocHandler=new Object();
var AWPrintWindowName="AWPrintPage";
var AWMouseDown="AWMouseDown";
var AWMouseUp="AWMouseUp";
var _LastFunc=null;
var _FakeEvent=function(){this.stopPropagation=function(){};
this.preventDefault=function(){}
};
var _awEventsPending=null,_awEventsPhase2Pending=null;
var _awPendingLockCount=0;
var AWWindowResizeCallbackList;
var _awPrevWS,_awProcessedWS,_awWSId,_awWSTime;
var AWWindowFixedCallbackList;
var AWWindowScrollCallback=null;
var AWWindowOnScrollTimeout=null;
var AWOrigDocumentOnMouseDown=window.document.onmousedown;
var _docReadyLockCount=0;
var Event={behaviors:{},registerBehaviors:function(map){Util.extend(this.behaviors,map)
},registerRefreshCallback:function(f){if(!AWOnRefreshCallbacks){AWOnRefreshCallbacks=new Array(f)
}else{AWOnRefreshCallbacks[AWOnRefreshCallbacks.length]=f
}},unregisterRefreshCallback:function(f){Util.arrayRemoveMatching(AWOnRefreshCallbacks,f)
},registerVBScriptRefreshCallback:function(name){if(Dom.IsIE){this.registerRefreshCallback(function(){Event.GlobalEvalVBScript(name)
})
}},registerVBScriptOnLoad:function(name){Debug.log("awDomRegisterVBScriptOnLoad -- registering: "+name);
AWVBScriptOnLoad=name
},refreshIncrementNesting:function(){_ScriptLockCount++
},docReadyIncrementNesting:function(){_docReadyLockCount++
},notifyRefreshComplete:function(){this.eventLock();
if(_ScriptLockCount>0){Debug.log("refreshComplete() -- deferred ("+_ScriptLockCount+")");
_ScriptLockCount--;
this.registerUpdateCompleteCallback(this.eventUnlock.bind(this));
return false
}Debug.log("refreshComplete() -- executing...");
var i;
if(AWDomCompleteCallbackList){for(i=0;
i<AWDomCompleteCallbackList.length;
i++){try{if(AWDomCompleteCallbackListArgs[i]){AWDomCompleteCallbackList[i].apply(this,AWDomCompleteCallbackListArgs[i])
}else{AWDomCompleteCallbackList[i]()
}}catch(e){var msg="refreshComplete: Exception evaluating: "+AWDomCompleteCallbackList[i].toString()+": "+e;
Debug.log(msg);
if(Request.AWDebugEnabled){alert(msg)
}}if(_ScriptLockCount){Debug.log("refreshComplete() -- Script block ("+_ScriptLockCount+") while executing "+(i+1)+" of "+AWDomCompleteCallbackList.length);
while(i-->=0){AWDomCompleteCallbackList.shift()
}_ScriptLockCount--;
this.registerUpdateCompleteCallback(this.eventUnlock.bind(this));
return false
}}Debug.log("refreshComplete() -- done...");
AWDomCompleteCallbackList=null
}if(ariba.Request.clearCancelRequestDelayHandle){ariba.Request.clearCancelRequestDelayHandle()
}if(AWOnRefreshCallbacks){for(i=0;
i<AWOnRefreshCallbacks.length;
i++){AWOnRefreshCallbacks[i]()
}}if(AWVBScriptOnLoad&&Dom.IsIE){try{this.GlobalEvalVBScript(AWVBScriptOnLoad)
}catch(e){alert("Exception in VBScript OnLoad Callback: "+e.message+AWVBScriptOnLoad)
}}this.eventUnlock();
return this.notifyDocReady()
},notifyDocReady:function(){if(_docReadyLockCount>0){Debug.log("waitForDocReady() -- deferred ("+_docReadyLockCount+")");
_docReadyLockCount--;
return false
}Debug.log("waitForDocReady() -- executing...");
this.invokeRegisteredHandlers("onDocReady");
Debug.log("waitForDocReady() -- done...");
return true
},evalJSSpan:function(id){var elm=Dom.getElementById(id);
if(elm){var script=Dom.getInnerText(elm);
eval(script)
}},registerHandler:function(id,eventNames,func){var list=eventNames.split(/\s+/);
for(var i=0;
i<list.length;
i++){var eventName=list[i];
Debug.log("Registering handler for: "+eventName+" -- "+id);
var map=_IdsByEvent[eventName];
if(!map){map=new Object();
_IdsByEvent[eventName]=map
}map[id]=func||id
}},invokeRegisteredHandlers:function(eventName){var map=_IdsByEvent[eventName];
if(map){for(var id in map){var func=map[id];
if(typeof (func)=="function"){func.call(this)
}else{this.evalJSSpan(id)
}}}},registerUpdateCompleteCallback:function(method,args){if(!AWDomCompleteCallbackList){AWDomCompleteCallbackList=new Array();
AWDomCompleteCallbackListArgs=new Array()
}AWDomCompleteCallbackList[AWDomCompleteCallbackList.length]=method;
AWDomCompleteCallbackListArgs[AWDomCompleteCallbackListArgs.length]=args
},addEvent:function(node,event,handler){if(node.addEventListener){node.addEventListener(event.substring(2),handler,false)
}else{if(node.attachEvent){node.attachEvent(event,handler)
}}},removeEvent:function(node,event,handler){if(node.removeEventListener){node.removeEventListener(event.substring(2),handler,false)
}else{if(node.detachEvent){node.detachEvent(event,handler)
}}},shouldBubble:function(evt){return !evt.awCancelBubble
},modallyDisabled:function(target){return false
},selectFirstText:function(){},enableEvents:function(){EventsEnabled=true
},disableEvents:function(){EventsEnabled=false
},updateDocHandler:function(eventType,docHandler){var origDocHandler=AWDocHandler[eventType];
AWDocHandler[eventType]=docHandler;
return origDocHandler
},getDocHandler:function(eventType){return AWDocHandler[eventType]
},gl_handler:function(e){if(_FE){return true
}if(document.readyState&&document.readyState!="complete"){return true
}if(!Dom.IsIE&&!e){return true
}if(!EventsEnabled){return false
}if(window.name==AWPrintWindowName){return true
}var evt=(e)?e:event;
var target=(evt.srcElement)?evt.srcElement:evt.target;
if(ariba.Request.AWDebugEnabled&&Debug.checkDebugClick(evt)){Event.cancelBubble(evt);
return true
}if(this.modallyDisabled(target)){if((evt.type=="activate"||evt.type=="focus"||evt.type=="mousedown"||evt.type=="click"||evt.type=="keydown")&&target!=window){this.selectFirstText()
}return true
}_FE=true;
try{if(this.handleMouseEvent(target,evt)){var ret=this.fireBehaviors(target,evt,("on"+evt.type),("x"+evt.type))
}}catch(ex){ret=true
}finally{_FE=false
}return ret
},handleMouseEvent:function(target,evt){var shouldFireEvent=true;
if(target&&target.setAttribute){var evtType=evt.type;
if(evtType=="mousedown"){target.setAttribute(AWMouseDown,"true");
target.removeAttribute(AWMouseUp)
}else{if(evtType=="mouseup"){target.setAttribute(AWMouseUp,"true")
}else{if(evtType=="mouseout"){target.removeAttribute(AWMouseDown);
target.removeAttribute(AWMouseUp)
}else{if(evtType=="click"){shouldFireEvent=target.getAttribute(AWMouseDown)&&target.getAttribute(AWMouseUp);
target.removeAttribute(AWMouseDown);
target.removeAttribute(AWMouseUp)
}}}}}return shouldFireEvent
},_elementInvoke:function(elm,evt,onName,xName){var ret=true;
var func;
var evtType=evt.type;
if(elm==window.document){var docHandler=AWDocHandler[evtType];
if(docHandler){return docHandler(evt)
}}var handler=elm[onName];
if(handler&&(handler.call!=null)){ret=handler.call(elm,evt)
}else{if(elm.tagName){handler=elm.getAttribute(xName);
if(handler){ret=this.handleInline(handler,evt,elm)
}else{if(func=this.bhHandler(elm,evt.type)){ret=func(elm,evt)
}else{if(evt.type=="click"){var sourceElm=this.eventSourceElement(evt);
if(elm.tagName=="LABEL"&&elm==sourceElm){var forId=elm.htmlFor;
if(forId){var target=Dom.getElementById(forId);
if(target){if(target.type=="radio"){target.checked=true;
ret=false
}else{if(target.type=="checkbox"){target.checked=!target.checked;
ret=false;
this.preventDefault(evt)
}else{if(target.tagName=="SELECT"){target.focus();
ret=false
}}}handler=target.getAttribute("xclick");
if(handler){this.handleInline(handler,evt,target);
ret=false
}}}}}}}}}return ret
},fireBehaviors:function(elm,evt,onName,xName){if(!elm){return true
}var ret=this._elementInvoke(elm,evt,onName,xName);
return(this.shouldBubble(evt)&&(elm!=window.document))?(this.fireBehaviors(elm.parentNode,evt,onName,xName)&&ret):ret
},handleInline:function(handler,evt,elm){var ret=true;
eval("_LastFunc = function(event) {"+handler+"}");
ret=_LastFunc.call(elm,evt);
_LastFunc=null;
return ret
},elementInvoke:function(elm,evtName){var evt=new _FakeEvent();
evt.type=evtName;
evt.srcElement=evt.target=elm;
return this._elementInvoke(elm,evt,("on"+evtName),("x"+evtName))
},bhHandler:function(elm,type){var bhName=elm.getAttribute("bh");
if(bhName){var handler=this.behaviors[bhName];
if(handler){if(!handler.didInit){this.behaviorInit(handler)
}return handler[type]
}}return null
},hasHandler:function(elm,type){return elm["on"+type]||elm.getAttribute("x"+type)||this.bhHandler(elm,type)
},behaviorInit:function(handler){handler.didInit=true;
var proto=handler.prototype;
for(var p in proto){if(!handler[p]){handler[p]=proto[p]
}}if(Dom.IsIE){var f;
if(f=handler.focus){handler.activate=f
}if(f=handler.blur){handler.deactivate=f
}}},eh_stop:function(eml,evt){this.cancelBubble(evt);
return false
},eventEnqueue:function(target,event,isP2){if(!_awEventsPending){_awEventsPending=[]
}if(!_awEventsPhase2Pending){_awEventsPhase2Pending=[]
}var q=isP2?_awEventsPhase2Pending:_awEventsPending;
Util.arrayRemoveMatching(q,target,function(e){return e[0]
});
q.push([target,event]);
if(_awPendingLockCount==0){this.eventsFire()
}},eventLock:function(){_awPendingLockCount++
},eventUnlock:function(){_awPendingLockCount--;
if(_awPendingLockCount==0){this.eventsFire()
}},eventsFire:function(){_awPendingLockCount++;
var didFire;
do{didFire=false;
var q=(_awEventsPending&&_awEventsPending.length)?_awEventsPending:_awEventsPhase2Pending;
if(q&&q.length){didFire=true;
var entry=q[0];
entry[0](entry[1]);
this._arrayShift(q)
}}while(didFire);
_awPendingLockCount--;
if(_awPendingLockCount!=0){alert("Unbalanced lock count!")
}},_arrayShift:function(a){return(a&&a.length)?a.splice(0,1)[0]:null
},_onWindowResize:function(event,delay){var ws=Dom.getWindowSize();
if(!_awWSId&&(!_awPrevWS||(_awPrevWS[0]!=ws[0])||(_awPrevWS[1]!=ws[1]))){delay=delay||100;
if(!_awPrevWS){_awPrevWS=[-1,-1]
}Debug.log("_awOnWindowResize -- delay:"+delay+" -- _awPendingLockCount: "+_awPendingLockCount+" -- size: "+ws[0]+", "+ws[1]+"// "+_awPrevWS[0]+", "+_awPrevWS[1]);
_awPrevWS=ws;
if(_awPendingLockCount){this.eventEnqueue(this.onWindowResize.bind(this))
}else{if(_awWSId){clearTimeout(_awWSId)
}_awWSId=setTimeout(this.onWindowResize.bind(this),delay);
_awWSTime=(new Date()).getTime()+delay
}}},onWindowResize:function(force){var ws=Dom.getWindowSize();
var delay=_awWSTime-(new Date()).getTime();
Debug.log("Resize invoked: "+delay+(force?" -- FORCE":""));
if(force){_awPrevWS=ws
}if((_awPrevWS&&((_awPrevWS[0]!=ws[0])||(_awPrevWS[1]!=ws[1])))||(!force&&delay>0)){_awWSId=null;
Debug.log("Bailing out / rescheduling!");
this._onWindowResize(null,delay>0?delay:0);
return 
}Debug.log("Enqueuing resize: "+_awPendingLockCount+" / "+(AWDomCompleteCallbackList?AWDomCompleteCallbackList.length:0));
if(!_awProcessedWS||force){_awProcessedWS=[-1,-1]
}if((_awProcessedWS[0]!=ws[0])||(_awProcessedWS[1]!=ws[1])){_awProcessedWS=ws;
this.wSFlush()
}_awWSId=null
},forceOnWindowResize:function(){this.onWindowResize(true)
},wSFlush:function(){var ws=Dom.getWindowSize();
Debug.log("^^^^^ Resize!!! -- "+ws[0]+", "+ws[1]+" // "+_awPrevWS[0]+", "+_awPrevWS[1]+" ^^^^^");
if(AWWindowResizeCallbackList){for(var i=0;
i<AWWindowResizeCallbackList.length;
i++){this.eventEnqueue(AWWindowResizeCallbackList[i])
}}this.fireWindowFixedCallback()
},registerOnWindowFixed:function(callback){if(!AWWindowFixedCallbackList){AWWindowFixedCallbackList=[]
}for(var i=0;
i<AWWindowFixedCallbackList.length;
i++){if(AWWindowFixedCallbackList[i]==callback){return 
}}AWWindowFixedCallbackList.push(callback)
},fireWindowFixedCallback:function(){if(AWWindowFixedCallbackList){for(var i=0;
i<AWWindowFixedCallbackList.length;
i++){this.eventEnqueue(AWWindowFixedCallbackList[i],null,true)
}}},unregisterOnWindowFixed:function(method){Util.arrayRemoveMatching(AWWindowFixedCallbackList,method)
},_fireWindowCallback:function(){if(AWWindowFixedCallbackList){for(var i=0;
i<AWWindowFixedCallbackList.length;
i++){AWWindowFixedCallbackList[i]()
}}},registerOnWindowResize:function(method){if(!AWWindowResizeCallbackList){AWWindowResizeCallbackList=new Array()
}AWWindowResizeCallbackList[AWWindowResizeCallbackList.length]=method;
return method
},unregisterOnWindowResize:function(method){Util.arrayRemoveMatching(AWWindowResizeCallbackList,method)
},registerWindowOnScroll:function(callback){if(!AWWindowScrollCallback){AWWindowScrollCallback=[]
}for(var i=0;
i<AWWindowScrollCallback.length;
i++){if(AWWindowScrollCallback[i]==callback){return 
}}AWWindowScrollCallback.push(callback)
},windowOnScroll:function(){this.fireWindowOnScroll()
},windowOnMouseWheel:function(){this.fireWindowOnScroll()
},fireWindowOnScroll:function(){if(AWWindowOnScrollTimeout){clearTimeout(AWWindowOnScrollTimeout)
}AWWindowOnScrollTimeout=setTimeout(this._fireWindowOnScroll.bind(this),0)
},_fireWindowOnScroll:function(){if(AWWindowScrollCallback){for(var i=0;
i<AWWindowScrollCallback.length;
i++){AWWindowScrollCallback[i]()
}}},enableDocumentClick:function(func){AWOrigDocumentOnMouseDown=this.updateDocHandler("mousedown",func.bindEventHandler(this))
},disableDocumentClick:function(){if(AWOrigDocumentOnMouseDown){this.updateDocHandler("mousedown",AWOrigDocumentOnMouseDown);
AWOrigDocumentOnMouseDown=null
}},notifyParents:function(src,handlerName){var node=src;
while(node&&node.nodeType==1){try{var handler=node[handlerName];
if(handler){handler(node,src)
}node=node.parentNode
}catch(ex){}}},GlobalEvalVBScript:function(str){alert("GlobalEvalVBScript is IE only...")
},EOF:0};
if(Dom.IsIE){Util.extend(Event,function(){return{keyCode:function(mevent){return mevent.keyCode
},cancelBubble:function(mevent){if(!Util.isNullOrUndefined(mevent)){mevent.cancelBubble=true;
mevent.awCancelBubble=true
}},eventSourceElement:function(mevent){return mevent.srcElement
},preventDefault:function(mevent){mevent.returnValue=false
},GlobalEvalVBScript:function(str){window.GlobalEvalVBScript(str)
},EOF:0}
}())
}if(!Dom.IsIE){Util.extend(Event,function(){return{keyCode:function(mevent){return mevent.which
},cancelBubble:function(mevent){if(mevent){mevent.stopPropagation();
mevent.preventDefault();
mevent.awCancelBubble=true
}},eventSourceElement:function(mevent){return mevent.target
},preventDefault:function(mevent){mevent.preventDefault()
},EOF:0}
}())
}var bh=Event.eh_stop.bind(Event);
Util.extend(Event.behaviors,{StopPropagation:{click:bh,keydown:bh,keyup:bh,keypress:bh,mousedown:bh,mouseup:bh,mousein:bh,mouseover:bh,mousemove:bh,mouseout:bh,focus:bh,blur:bh}});
Function.prototype.bindEventHandler=function(){var __method=this,a=Util.toArray(arguments),obj=a.shift();
return function(evt){return(_FE)?__method.apply(obj,Util.concatArr([evt||window.event],a)):true
}
};
if(window==ariba.awCurrWindow){var bHandler=function(evt){return Event.gl_handler(evt)
};
var d=window.document;
if(Dom.IsIE){d.onmousein=bHandler;
d.onmouseover=bHandler;
d.onmouseout=bHandler;
d.onmousedown=bHandler;
d.onmouseup=bHandler;
d.onmousemove=bHandler;
d.onclick=bHandler;
d.onkeydown=bHandler;
d.onkeyup=bHandler;
d.onkeypress=bHandler;
d.ondeactivate=bHandler;
window.onfocus=function(e){Event.invokeRegisteredHandlers("onfocusin")
};
window.onblur=function(e){Event.invokeRegisteredHandlers("onblur")
}
}else{d.addEventListener("mousein",bHandler,false);
d.addEventListener("mouseover",bHandler,false);
d.addEventListener("mouseout",bHandler,false);
d.addEventListener("mousedown",bHandler,false);
d.addEventListener("mouseup",bHandler,false);
d.addEventListener("mousemove",bHandler,false);
d.addEventListener("click",bHandler,false);
d.addEventListener("keydown",bHandler,false);
d.addEventListener("keyup",bHandler,false);
d.addEventListener("keypress",bHandler,false);
d.addEventListener("blur",bHandler,false);
d.addEventListener("focus",bHandler,false);
window.addEventListener("focus",function(e){Event.invokeRegisteredHandlers("onfocusin")
},false);
window.addEventListener("blur",function(e){Event.invokeRegisteredHandlers("onblur")
},false)
}function _bindEv(func,obj){return function(evt){return func.apply(obj,[evt||window.event])
}
}window.onscroll=_bindEv(Event.windowOnScroll,Event);
window.onmousewheel=_bindEv(Event.windowOnMouseWheel,Event);
window.onresize=_bindEv(Event._onWindowResize,Event);
Event.registerRefreshCallback(function(){Event.invokeRegisteredHandlers("onupdate")
})
}return Event
}();
ariba.Input=function(){var G=ariba.Util;
var U=ariba.Event;
var P=ariba.Debug;
var B=ariba.Dom;
var D;
var Q=null;
var S=null;
var E=null;
var A=null;
var I=false;
var F=false;
var T=false;
var R=null,K=null;
var M=null;
var O=null;
var C=null;
var H=false;
var L=null;
var N=0;
var J={AWWaitAlertMillis:2000,AWWaitMillis:20000,AWAutomationTestModeEnabled:false,KeyCodeBackspace:8,KeyCodeTab:9,KeyCodeEnter:13,KeyCodeShift:16,KeyCodeCapsLock:20,KeyCodeEscape:27,KeyCodeArrowUp:38,KeyCodeArrowDown:40,keyDownEvtHandler:function(W){var V=U.eventSourceElement(W);
var X=J.modallyDisabled(V);
if(X){U.cancelBubble(W);
window.focus()
}return !X
},setShowWaitCursorDisabled:function(V){I=V
},showWaitCursor:function(){if(this.AWAutomationTestModeEnabled){window.status="Processing request ..."
}if(I){return 
}Q=document.getElementById("awwaitAlertDiv");
if(Q!=null){Q.style.display="none";
Q.style.visibility=""
}N=(new Date()).getTime()+500;
this.disableInput(true);
if(!F){S=setTimeout(this.showWaitAlert.bind(this),this.AWWaitAlertMillis);
D=setTimeout(this.hideWaitCursor.bind(this),this.AWWaitAlertMillis+this.AWWaitMillis)
}},updateWaitMessage:function(W){if(!T){this.showWaitAlert()
}var V=B.getElementById("awwaitMessage");
if(V){V.innerHTML=W
}},hideWaitCursor:function(){if(I){return 
}clearTimeout(D);
clearTimeout(S);
this.enableInput();
this.hideWaitAlert()
},showWaitAlert:function(){if(I){return 
}if((new Date()).getTime()<N){return 
}clearTimeout(S);
if(!T&&!F){T=true;
if(Q!=null){Q.style.display="";
E=window.onscroll;
A=window.onresize;
window.onscroll=function(){B.positionDialogBox(Q)
};
window.onresize=window.onscroll;
B.positionDialogBox(Q);
B.overlay(Q)
}}},hideWaitAlert:function(){if(T){T=false;
window.onscroll=E;
window.onresize=A;
E=null;
A=null;
if(Q!=null){Q.style.display="none";
var V=B.getElementById("awwaitMessage");
if(V){V.innerHTML=""
}B.unoverlay(Q)
}}},showWaitAlertInWindow:function(W){if(W!=null){W.document.writeln("<html><head><title>");
W.document.writeln(document.title);
W.document.writeln("</title></head><body>");
if(!B.IsIE){var V=B.getElementById("awwaitAlertDiv");
if(V!=null){var Y=V.cloneNode(true);
Y.style.visibility="";
Y.style.display="";
Y.style.left="50%";
Y.style.top="50%";
Y.style.marginLeft="-"+V.offsetWidth/2+"px";
Y.style.marginTop="-"+V.offsetHeight/2+"px";
var X=document.createElement("span");
X.appendChild(Y);
W.document.writeln(X.innerHTML)
}}W.document.writeln("</body></html>");
W.document.close();
if(this.AWAutomationTestModeEnabled){W.status="Processing request ..."
}}},hideSelects:function(){},showSelects:function(){},coverDocument:function(Z,X){var V=document.createElement("div");
var W=V.style;
W.position="absolute";
W.zIndex=Z;
var Y=document.body;
W.backgroundColor="#FFFFFF";
B.setOpacity(V,X);
this.updateCoverSize(V);
Y.appendChild(V,document.body.firstChild);
V.style.display="";
this.registerCoverDiv(V);
this.hideSelects();
return V
},updateCoverSize:function(W){var X=W.style;
var Z=B.getDocumentElement();
var Y=G.max(Z.scrollWidth,Z.clientWidth);
var V=G.max(Z.scrollHeight,Z.clientHeight);
X.top="0px";
X.left="0px";
X.width=Y+"px";
X.height=V+"px"
},uncoverDocument:function(V){this.showSelects();
this.unregisterCoverDiv(V);
document.body.removeChild(V)
},registerCoverDiv:function(W){R=W;
if(M){P.log("reg cover div "+M);
K=M;
var V=B.getElementById(K);
if(V&&V.blur){V.blur()
}}},unregisterCoverDiv:function(V){if(K){P.log("unreg cover div "+K);
this.registerActiveElementId(K)
}R=K=null
},registerModalDiv:function(V){this.registerCoverDiv(V)
},unregisterModalDiv:function(V){this.unregisterCoverDiv(V)
},modallyDisabled:function(W){if(!B.elementInDom(R)){return false
}if(!R){return false
}var V=W;
while(V){if(V==R){return false
}V=V.parentNode
}return this.modallyDisabled_zindex(W)
},modallyDisabled_zindex:function(Y){if(!R){return false
}var V=Y;
while((V=B.positioningParent(V))&&V!=B.documentElement()){var X=B.effectiveStyle(V,"z-index");
if(X){var W=B.effectiveStyle(B.positioningParent(R),"z-index");
P.log("awModallyDisabled: "+W+", "+X);
if(parseInt(X)>parseInt(W)){return false
}}}return true
},registerActiveElementId:function(V){M=V?V:B.getActiveElementId();
P.log("registerActiveElementId: "+M)
},setFocusRegion:function(V){C=V
},postLoadFocusOnActiveElement:function(){U.eventEnqueue(function(){U.eventEnqueue(J.focusOnActiveElement.bind(J))
},null,true)
},focusOnActiveElement:function(){if(C){var W=B.getElementById(C);
C=null;
if(W){var V=this.findFirstText(W);
if(V){M=V.id
}}}if(M){try{var X=B.getElementById(M);
if(B.elementInDom(X)&&!this.modallyDisabled(X)){P.log("Focusing on element id: "+M);
var Z=M;
function a(){try{if(!B.getActiveElementId()){P.log("Refocusing on element id: "+Z);
if(X.focus){X.focus();
X.focus();
if(X.select){X.select()
}}}}catch(b){}}setTimeout(a,1000);
if(X.focus){X.focus();
X.focus();
if(X.select){X.select()
}}}}catch(Y){P.log("Focusing exception: "+Y)
}finally{M=null
}}if(!B.getActiveElementId()&&H){H=false;
P.log("Focusing on first text: ");
this.selectFirstText()
}},selectFirstText:function(){var Z=null;
if(O){Z=B.getElementById(O);
O=null
}if(!Z){var V=document.forms;
var X=V.length;
for(var W=0;
W<X;
W++){Z=this.findFirstText(V[W]);
if(Z!=null){break
}}}if(Z){if(Z.value==null){Z.value=" "
}try{Z.focus();
Z.select()
}catch(Y){}}},findFirstText:function(Z){if(Z==null){return null
}var Y=B.boolAttr(Z,"_aa",false);
var V=B.findChildrenUsingPredicate(Z,function(b){return b.tagName=="INPUT"||b.tagName=="TEXTAREA"||(Y&&b.tagName=="A")
});
for(var X=0,a=V.length;
X<a;
X++){var W=V[X];
if((((W.type=="text"||W.type=="password")&&W.getAttribute("awautoselect")!="0")||W.nodeName=="TEXTAREA"||W.nodeName=="A")&&B.visibleInScrollArea(W)&&!W.getAttribute("disabled")&&!this.modallyDisabled(W)&&B.effectiveStyle(W,"display")!="none"){return W
}}return null
},setTextFocus:function(V){O=V
},allowSelectFirstText:function(){H=true
},EOF:0};
if(B.IsIE6Only){G.extend(J,function(){var V=new Array();
return{hideSelects:function(b){var e;
var d;
var c=document.getElementsByTagName("select");
if(!b){this.disposeDummySelects()
}for(var a=0;
a<c.length;
a++){d=c[a];
if(!b&&d.offsetWidth>0){if(d.size>1){continue
}var Y;
for(Y=0;
Y<d.options.length;
Y++){if(d.options[Y].selected){e=d.options[Y].text
}}var X=document.getElementById("AWDummySelect");
var W=X.cloneNode(true);
document.body.appendChild(W);
var Z=W.getElementsByTagName("td");
for(Y=0;
Y<Z.length;
Y++){if(Z[Y].className=="dummySelect"){Z[Y].innerText=e
}}W.style.width=d.offsetWidth-1;
W.style.zIndex="-100";
W.style.position="absolute";
W.style.display="";
W.style.top=B.absoluteTop(d);
W.style.left=B.absoluteLeft(d);
V[V.length]=W
}if(this.modallyDisabled(d)){d.style.visibility="hidden"
}}},showSelects:function(){var Y=document.getElementsByTagName("select");
for(var X=0;
X<Y.length;
X++){var W=Y[X];
W.style.visibility="visible"
}this.disposeDummySelects()
},disposeDummySelects:function(){for(var W=0;
W<V.length;
W++){V[W].removeNode(true)
}V=new Array()
},EOF:0}
}())
}if(B.IsIE){G.extend(J,function(){var V=null;
return{disableInput:function(W){U.disableEvents();
if(V==null){V=document.createElement("div");
document.body.appendChild(V)
}V.setCapture(false);
V.style.cursor="wait";
if(W){V.onmousedown=this.showWaitAlert.bindEventHandler(this);
V.onkeydown=this.showWaitAlert.bindEventHandler(this)
}},enableInput:function(){U.enableEvents();
if(V==null){return 
}V.onmousedown=null;
V.onkeydown=null;
V.releaseCapture();
V.style.cursor="pointer"
},EOF:0}
}())
}if(!B.IsIE){G.extend(J,function(){function V(W){J.showWaitAlert();
U.cancelBubble(W)
}return{disableInput:function(W){if(B.isSafari){return 
}var X=document.body;
if(W){X.addEventListener("mousedown",V,true);
X.addEventListener("keydown",V,true);
X.addEventListener("click",V,true)
}X.addEventListener("mouseover",U.cancelBubble,true);
X.style.cursor="wait"
},enableInput:function(){var W=document.body;
W.removeEventListener("mousedown",V,true);
W.removeEventListener("mouseover",U.cancelBubble,true);
W.removeEventListener("click",V,true);
W.removeEventListener("keydown",V,true);
W.style.cursor=""
},EOF:0}
}())
}G.extend(U,{modallyDisabled:function(V){return J.modallyDisabled(V)
},selectFirstText:function(){return J.selectFirstText()
}});
return J
}();
ariba.Request=function(){var J=ariba.Util;
var Y=ariba.Event;
var P=ariba.Debug;
var O=ariba.Input;
var B=ariba.Dom;
var R=true;
var T=null;
var U=true;
var A,K,Q,H;
var I;
var W;
var D;
var M=0;
var F=false;
var V;
var S=0;
var X;
var L=0;
var G;
var E=0;
var C=[];
var N={AWSenderIdKey:"awsn",AWResponseId:"",AWRefreshUrl:"",AWPingUrl:"",AWProgressUrl:"",AWFrameName:null,AWReqUrl:null,AWSessionIdKey:null,AWSessionId:null,AWDebugEnabled:false,AWJSDebugEnabled:false,AWShowRequestFrame:false,AWUpdateCompleteTime:0,AWSessionSecureId:"",UseXmlHttpRequests:false,initParams:function(){J.takeValues(ariba,["Request.AWResponseId","Request.AWSessionSecureId","Request.AWRefreshUrl","Request.AWPingUrl","Request.AWProgressUrl","Request.AWReqUrl","Request.UseXmlHttpRequests","Request.AWSessionIdKey","Request.AWSessionId","Request.AWFrameName","Refresh.AWBackTrackUrl","Refresh.AWForwardTrackUrl","Input.AWWaitAlertMillis","Dom.AWOpenWindowErrorMsg"],arguments)
},setDocumentLocation:function(a,Z,b){if(J.isNullOrUndefined(Z)){this.getContent(a)
}else{if(J.isNullOrUndefined(b)){b=""
}window.open(a,Z,b)
}return false
},openWaitWindow:function(Z,b){var a=B.openWindow("",Z,b);
a.focus();
O.showWaitAlertInWindow(a);
return a
},submitFormAtIndexWithHiddenField:function(a,c,b){var d=document.forms[a];
var Z=d[c];
Z.value=b;
this.submitForm(d);
return false
},submitFormForElementName:function(a,Z,d,b){var c=B.formForName(a);
if(Z){B.addFormField(c,this.AWSenderIdKey,Z)
}this.submitForm(c,b);
Y.cancelBubble(d);
return false
},invoke:function(a,g,c,e,h,d,Z,b){var f=null;
if(!g){g=a.id
}if(a&&!e){f=B.lookupFormId(a)
}return this.senderClicked(g,f,h,d,c,Z,b)
},senderClicked:function(g,h,i,f,d,Z,b,e){var k=null;
if(h!=null){k=B.getElementById(h)
}if(k!=null){Y.cancelBubble(d);
var c;
if(Z){c=document.createElement("input");
c.type="hidden";
c.id=g;
c.name=g;
k.appendChild(c);
c.value=b?b:g
}var j=k.wzrd_action;
if((j!=null)&&(f!=null)){j.value=f
}B.addFormField(k,this.AWSenderIdKey,g);
this.invokeSenderClickedCallbacks(g,h);
if(i!=null&&i!="_self"){this.submitForm(k,i,e)
}else{this.submitForm(k)
}if(Z){k.removeChild(c)
}}else{var a=this.formatUrl(g);
this.invokeSenderClickedCallbacks(g,null);
this.setDocumentLocation(a,i,e)
}if(d){Y.cancelBubble(d)
}return false
},registerSenderClickedCallback:function(Z){if(!T){T=new Array()
}T[T.length]=Z
},invokeSenderClickedCallbacks:function(b,a){if(T){for(var Z=0;
Z<T.length;
Z++){T[Z](b,a)
}}},formatUrl:function(a){var Z=this.formatSenderUrl(a);
return this.appendScrollValues(Z)
},formatSenderUrl:function(Z){return this.partialUrl()+this.AWSenderIdKey+"="+Z
},appendScrollValues:function(Z){if(Z.indexOf("#")==-1){Z=Z+"&awst="+B.getPageScrollTop()+"&awsl="+B.getPageScrollLeft()
}return Z
},gotoLink:function(d,a,b,c){var Z=this.formatUrl(d);
this.setDocumentLocation(Z,a,b);
Y.cancelBubble(c);
return false
},setResponseId:function(Z){this.AWResponseId=Z
},appendQueryValue:function(Z,a,c){var b=Z.toString();
var d=null;
if(b.match(/\?/)==null){d="?"
}else{d="&"
}b=b+d+a+"="+c;
return b
},setupPoll:function(a,c,e,b){U=a;
var Z=c*1000;
if(H!=Z){H=Z;
clearTimeout(A);
A=null
}K=e;
Q=b;
g();
function g(){if(U&&A==null){A=setTimeout(d.bind(N),H)
}}function f(i){clearTimeout(A);
A=null;
var h=i.responseText;
P.log("poll response: "+J.htmlEscapeValue(h));
if(h=="<AWPoll state='update'/>"){P.log("page changed -- go get content");
if(!R){this.getContent(this.formatSenderUrl(Q))
}g()
}else{if(h=="<AWPoll state='nochange'/>"){g()
}}}function d(){P.log("AWRequestInProgress: "+R+", AWPollEnabled="+U);
if(!R&&U){var h=this.formatSenderUrl(K);
this.initiateXMLHttpRequest(h,f.bind(this))
}else{clearTimeout(A);
A=null;
g()
}}},submitFormObjectNamed:function(Z){var a=document.forms(Z);
this.submitForm(a);
return false
},submitForm:function(j,h,d,b){var f=true;
if(j.onsubmit){f=j.onsubmit();
if(typeof (f)=="undefined"){f=true
}}if(f){Y.invokeRegisteredHandlers("onsubmit");
this.addAWFormFields(j);
if(h&&h!="_self"){B.removeFormField(j,"awii");
if(h=="_blank"){h="AWWindow_"+new Date().getTime()
}j.target=h;
j.submit()
}else{this.prepareForRequest(b);
try{var i=this.hasPopulatedFileInputContol(j,true);
var a=null;
if(i){a=j.enctype;
if(!a||(a.indexOf("multipart")!=0)){j.enctype="multipart/form-data";
j.encoding="multipart/form-data"
}else{a=null
}}if(this.UseXmlHttpRequests&&!i){P.log("<--- Incremental post: XMLHTTP");
B.addFormField(j,"awii","xmlhttp");
var Z=this.encodedFormValueString(j);
N.initiateXMLHttpRequest(this.partialUrl(),function(k){var e=k.responseText;
ariba.Refresh.processXMLHttpResponse(e)
},Z)
}else{P.log("<--- Incremental post: IFRAME");
var c=this.createRefreshIFrame();
j.target=c.name;
B.addFormField(j,"awii",c.name);
j.submit();
if(a){j.enctype=a
}}}catch(g){this.requestComplete();
this.handleFileUploadError(g);
throw (g)
}}}this.removeAWFormFields(j);
j.target=null
},formValueAccessors:{input:function(Z){switch(Z.type.toLowerCase()){case"checkbox":case"radio":return Z.checked?Z.value:null;
default:return Z.value
}},textarea:function(Z){return Z.value
},select:function(f){function e(g){return g.value||g.text
}if(f.type.toLowerCase()=="select-one"){var a=f.selectedIndex;
return a>=0?e(f.options[a]):null
}else{var Z,d=f.length;
if(!d){return null
}for(var b=0,Z=[];
b<d;
b++){var c=f.options[b];
if(c.selected){Z.push(e(c))
}}return Z
}}},serialize:function(b){var a=b.tagName.toLowerCase();
var Z=this.formValueAccessors[a];
return(Z)?Z(b):null
},formValueMap:function(g){var b=g.getElementsByTagName("*");
var c={};
for(var a=0;
a<b.length;
a++){var d=b[a];
if(!d.disabled&&d.name){var f=this.serialize(d);
if(f){var Z=d.name;
c[Z]=J.itemOrArrAdd(c[Z],f)
}}}return c
},encodedFormValueString:function(f){var d=this.formValueMap(f);
var a=[];
for(var c in d){var Z=encodeURIComponent(c);
var e=d[c];
if(J.isArray(e)){for(var b=0;
b<e.length;
b++){a.push(Z+"="+encodeURIComponent(e[b]||""))
}}else{a.push(Z+"="+encodeURIComponent(e||""))
}}return a.join("&")
},addRequestValue:function(Z,a){if(!I){I=new Object()
}I[Z]=a
},addAWFormFields:function(a){B.addFormField(a,"awr",this.AWResponseId);
B.addFormField(a,"awst",B.getPageScrollTop());
B.addFormField(a,"awsl",B.getPageScrollLeft());
B.addFormField(a,"awssk",this.AWSessionSecureId);
if(I){for(var Z in I){B.addFormField(a,Z,I[Z])
}}},removeAWFormFields:function(a){B.removeFormField(a,this.AWSenderIdKey);
B.removeFormField(a,"awr");
B.removeFormField(a,"awst");
B.removeFormField(a,"awsl");
B.removeFormField(a,"awssk");
if(I){for(var Z in I){B.removeFormField(a,Z)
}}I=null
},handleFileUploadError:function(a){var Z=B.getElementById("AWFileUploadErrorMessage");
if(Z){alert(Z.innerText)
}},partialUrl:function(){var Z=this.AWReqUrl+"?awr="+this.AWResponseId;
if(this.AWSessionIdKey){Z+="&"+this.AWSessionIdKey+"="+this.AWSessionId
}if(this.AWFrameName){Z+="&awf="+this.AWFrameName
}if(this.AWSessionSecureId){Z+="&awssk="+this.AWSessionSecureId
}return Z+"&"
},simpleXMLHTTP:function(Z,a){this._asyncGet(function(b){if(b){b.onreadystatechange=function(){if(b.readyState==4){if(b.status==200){a(b)
}else{if(N.AWDebugEnabled){alert('Got "'+b.status+" "+b.statusText+'" for '+Z)
}}N._asyncDone(b)
}};
try{b.open("GET",Z,true);
b.send(null)
}catch(c){alert("XMLHTTP Error in send: "+c.message);
N._asyncDone(b)
}}})
},appendFrameName:function(Z){if(!J.isNullOrUndefined(this.AWFrameName)&&Z.match(/awf=/)==null){return this.appendQueryValue(Z,"awf",this.AWFrameName)
}return Z
},redirectRefresh:function(){var Z=this.appendFrameName(this.AWRefreshUrl);
this.redirect(Z)
},redirect:function(b){this.prepareRedirectRequest();
var a=window.location;
if(B.isSafari){if(b.indexOf("/")==0){if(a.href.indexOf("awrdt=1")<0){b=b+"&awrdt=1"
}else{b=b.replace(/\&awrdt=1/,"")
}}}a.href=b;
if(B.IsIE6Only){function Z(){if(document.readyState!="loading"){window.location.href=b;
setTimeout(Z,500)
}}setTimeout(Z,500)
}},invokeAction:function(Z){this.getContent(this.formatUrl(Z))
},addAWQueryValues:function(Z){var b=Z;
if(I){for(var a in I){b=this.appendQueryValue(b,a,I[a])
}}return b
},removeAWQueryValues:function(){I=null
},getContent:function(Z,a){this.prepareForRequest();
Z=this.addAWQueryValues(Z);
if(this.UseXmlHttpRequests&&!a){P.log("<--- Incremental get: XMLHTTP");
Z=this.appendQueryValue(Z,"awii","xmlhttp");
N.initiateXMLHttpRequest(Z,function(d){var c=d.responseText;
ariba.Refresh.processXMLHttpResponse(c)
})
}else{P.log("<--- Incremental get: IFRAME");
var b=this.createRefreshIFrame();
Z=this.appendQueryValue(Z,"awii",b.name);
b.src=this.appendFrameName(Z)
}this.removeAWQueryValues()
},__retryRequest:function(Z){P.log("Server responded with retry request ("+Z+") -- doing IFrame retry ");
this.getContent(this.formatUrl(Z),true)
},prepareForRequest:function(Z){this.requestComplete();
R=true;
ariba.Refresh.enableRefreshScript();
Y.invokeRegisteredHandlers("onRefreshRequestBegin");
if(!Z){O.showWaitCursor()
}setTimeout(this.startRefreshTimer.bind(this),1);
O.AWWaitMillis=20*60*1000;
this.initProgressCheck(this.AWProgressUrl,O.AWWaitAlertMillis+2000,O.AWWaitAlertMillis)
},isRequestInProgress:function(){return R
},requestNotInProgress:function(){R=false
},requestComplete:function(){this.requestNotInProgress();
O.hideWaitCursor()
},prepareRedirectRequest:function(){this.refreshRequestComplete();
U=false
},displayErrorDiv:function(Z){var a=document.createElement("div");
a.className="debugFloat";
a.innerHTML=Z;
document.body.appendChild(a)
},createRequestIFrame:function(a,d){var c=a+"Div";
var Z=B.getElementById(c);
if(!Z){Z=document.createElement("div");
if(!d){Z.style.display="none"
}Z.id=c;
document.body.appendChild(Z)
}var b=d?" style='border:2px solid blue;' height='300px' width='400px'":" style='border:0px;display:none' height='0px' width='0px'";
Z.innerHTML="<iframe src='"+B.AWEmptyDocScriptlet+"' id='"+a+"' name='"+a+"'"+b+"></iframe>";
return B.getElementById(a)
},destroyRequestIFrame:function(Z){var b=B.getElementById(Z);
if(b){function a(){Y.removeEvent(b,"onload",a);
setTimeout(function(){if(!B.elementInDom(b)){P.log("Skipped destroying Iframe: "+Z+": no longer in DOM");
return 
}var c=B.getElementById(Z+"Div");
if(c){c.innerHTML="";
P.log("Destroyed Iframe: "+Z)
}},1)
}Y.addEvent(b,"onload",a);
b.src=B.AWEmptyDocScriptlet
}},createRefreshIFrame:function(){if(this.AWJSDebugEnabled){var Z=new Date();
P.setRequestStartTime(Z.getTime())
}return this.createRequestIFrame("AWRefreshFrame",this.AWShowRequestFrame)
},startRefreshTimer:function(){if(!B.IsMoz){W=setTimeout(this.checkRequestComplete.bind(this),500)
}},setWindowLocation:function(Z){window.location=Z
},checkRequestComplete:function(){P.log("awCheckRequestComplete");
var Z=B.getElementById("AWRefreshFrame");
if(!Z){return 
}var c=false;
try{if(Z.contentWindow&&Z.contentWindow.document&&Z.contentWindow.document.URL.indexOf(B.AWEmptyDocScriptlet)==-1){var b=Z.contentWindow.document;
if(b.readyState){if(b.readyState!="complete"){D=setTimeout(this.checkDocumentLoad.bind(this),500)
}this.checkDocumentLoad()
}c=true
}}catch(a){c=true;
O.hideWaitCursor();
this.pingServer()
}if(!c){P.log("continuing "+M);
M++;
if(M<30){W=setTimeout(this.checkRequestComplete.bind(this),10000)
}else{P.log("request not initiated ...")
}}},checkDocumentLoad:function(){var a=B.getElementById("AWRefreshFrame");
if(!a){return 
}var Z;
try{var c=a.contentWindow.document;
if(c.readyState){P.log("readyState: "+c.readyState);
if(c.readyState!="complete"){D=setTimeout(this.checkDocumentLoad.bind(this),200);
return 
}}Z=B.getDocumentElementById(c,"AWRefreshComplete")
}catch(b){}if(!Z){this.handleRequestError()
}},refreshRequestComplete:function(){M=0;
clearTimeout(W);
clearTimeout(D);
ariba.Refresh.clearPendingCompleteRequestRun()
},handleRequestError:function(){O.hideWaitCursor();
var d=B.getElementById("AWRefreshFrame");
d.style.left=0;
d.style.top=0;
var a=B.getElementById("AWRefreshFrameDiv");
if(a){P.log("setting location of iframediv");
a.style.position="absolute";
a.style.left=0;
a.style.top=0
}else{P.log("just setting iframe")
}var b;
if(window.innerHeight){b=document.body;
window.scroll(0,0)
}else{b=document.documentElement;
b.scrollTop=0;
b.scrollLeft=0
}var Z=b.scrollHeight>screen.availHeight?b.scrollHeight:screen.availHeight;
var c=b.scrollWidth>(screen.availWidth)?b.scrollWidth:(screen.availWidth);
a.style.width=c+"px";
a.style.height=Z+"px";
d.style.width=c+"px";
d.style.height=Z+"px"
},pingServer:function(){var Z=this.createRequestIFrame("AWPingFrame",F);
Z.src=this.AWPingUrl;
V=setTimeout(this.checkPingRequestComplete.bind(this),1000)
},checkPingRequestComplete:function(){var a=B.getElementById("AWPingFrame");
if(!a){return 
}var d=false;
try{if(a.contentWindow&&a.contentWindow.document&&a.contentWindow.document.URL.indexOf(B.AWEmptyDocScriptlet)==-1){var c=a.contentWindow.document;
d=true
}}catch(b){d=true;
this.handleRequestError()
}if(!d){S++;
if(S<30){W=setTimeout(this.checkPingRequestComplete.bind(this),10000)
}else{this.handleRequestError()
}}else{if(!F){var Z=B.getElementById("AWPingFrameDiv");
if(Z){document.body.removeChild(Z)
}}}},initProgressCheck:function(b,d,a){function c(f){if(!R){return 
}var g=f.responseText;
P.log("Progress check.  Message:"+g);
if(g=="--NO_REQUEST--"){var h=function(){Y.notifyRefreshComplete();
N.requestComplete()
};
if(L<=0){h()
}else{P.log("setTimeout: AWCancelRequestDelayHandle, delay = "+L);
G=setTimeout(h,L)
}}else{O.updateWaitMessage(f.responseText);
e(a);
if(window.awStartInactivityTimer){awStartInactivityTimer()
}}}function Z(){X=null;
if(!R){return 
}N.initiateXMLHttpRequest(b,c.bind(N))
}function e(f){if(X){clearTimeout(X)
}X=setTimeout(Z.bind(N),f)
}e(d)
},setCancelRequestDelay:function(Z){L=Z
},getCancelRequestDelay:function(){return L
},clearCancelRequestDelayHandle:function(){if(G){P.log("clearTimeout: AWCancelRequestDelayHandle");
clearTimeout(G);
G=null
}},setStatusDone:function(){window.status="Done"
},hasPopulatedFileInputContol:function(b,Z){var c=b.getElementsByTagName("input");
for(var a=0;
a<c.length;
a++){var d=c.item(a);
if(d.type=="file"){if(Z||d.value.length>0){return true
}}}return false
},getXMLHttp:function(){var Z=null;
try{Z=new XMLHttpRequest()
}catch(c){try{Z=new ActiveXObject("Msxml2.XMLHTTP")
}catch(b){try{}catch(a){Z=new ActiveXObject("Microsoft.XMLHTTP")
}}}return Z
},_asyncGet:function(Z){C.push(Z);
this._notifyGet()
},nullFunc:function(){},_asyncDone:function(Z){E--;
if(Z){Z.onreadystatechange=this.nullFunc
}this._notifyGet()
},_notifyGet:function(){if(E>2||(C.length==0)){return 
}var a=C.shift();
E++;
var Z=this.getXMLHttp();
setTimeout(function(){a(Z)
},0)
},initiateXMLHttpRequest:function(a,d,b){function Z(f){f.open("GET",a,true);
f.setRequestHeader("Content-type","text/html");
var h=this;
f.onreadystatechange=function(){h.manageStateChange(f,d)
};
try{f.send(null)
}catch(g){alert("Error initiating request")
}}function c(f){f.open("POST",a,true);
f.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
var h=this;
f.onreadystatechange=function(){h.manageStateChange(f,d)
};
try{f.send(b)
}catch(g){alert("Error initiating request")
}}if(b){this._asyncGet(c.bind(this))
}else{this._asyncGet(Z.bind(this))
}},manageStateChange:function(a,b){switch(a.readyState){case 2,3:break;
case 4:var Z=function(){b(a);
this._asyncDone(a)
};
setTimeout(Z.bind(this),0);
break
}},downloadContent:function(a){var Z=N.createRequestIFrame("AWDownload");
Z.src=a
},fileDownloadCompleteCheck:function(e,a,b){function c(g){var f=g.responseText;
if(f=="completed"){d()
}else{if(f=="started"){setTimeout(Z.bind(this),b)
}else{P.log("Error running fileDownloadCompleteCheck -- received: "+f)
}}}function d(){N.getContent(a)
}function Z(){N.initiateXMLHttpRequest(e,c)
}if(e!=null&&e.length>0){setTimeout(Z.bind(this),b)
}else{setTimeout(d.bind(this),b)
}},progressBarSetWidth:function(){if(B.isWindowNarrow()){var Z=B.getElementById("awProgressBar");
if(Z){Z.width="150px"
}}},EOF:0};
Y.registerRefreshCallback(N.progressBarSetWidth.bind(N));
return N
}();
window.ariba_IR=false;
ariba.Refresh=function(){var Util=ariba.Util;
var Event=ariba.Event;
var Input=ariba.Input;
var Debug=ariba.Debug;
var Request=ariba.Request;
var Dom=ariba.Dom;
var AWDELETE="d";
var AWINSERT="i";
var AWDomSyncData=new Object();
var AWDomScopeUpdateList=new Object();
var AWRefreshStartTime;
var AWRefreshTrace;
var AWMaxRefreshTraceLength=10;
var AWWindowLoadStartTime;
var AWWindowOnLoad=false;
var _RunningIncrementalAction=false;
var _LoadedJSStrs=[];
var VBSEnqueue=false;
var VBSArray=null;
var _LoadedJS=new Array();
var AWHandlingNewRequest=false;
var AWHandlingTrackRequest=false;
var AWHistoryDebugString;
var AWHistoryBack=0;
var AWHistoryForward=0;
var AWHistoryLimit=2;
var _CheckLocInterval=null;
var _LocationCheckActive=false;
var _currentUpdateSource=null;
var _isXMLHttpResponse=false;
var _IDPat=/\s+id=["\']?(.+?)["\']?[\s>]/;
var _ScriptAllPat=/<script[^>]*>([\s\S]*?)<\/script>/ig;
var _ScriptOnePat=/<script([^>]*)>([\s\S]*?)<\/script>/i;
var _currScript=null;
var _pendingCompleteRequestRun=false;
var AWRefreshScriptEnabled=true;
var _historyHandler=function(){};
var _MarkedRRs;
var _historyCurrent;
var _historyLength;
var _runCompleteRefreshOnLoad=false;
var Refresh={AWShowHistoryFrame:false,AWBackTrackUrl:"",AWForwardTrackUrl:"",AWMarkRefreshRegions:false,AWAllowParentFrame:false,_refreshTable:function(sourceHandle,poTarget){var tmpDiv=document.createElement("div");
tmpDiv.innerHTML=_currentUpdateSource.getOuterHtml(sourceHandle);
var tmpTable=tmpDiv.firstChild;
this.replaceRows(tmpTable,poTarget)
},_scopeUpdate:function(sourceHandle){var id=_currentUpdateSource.getId(sourceHandle);
var target=Dom.getElementById(id);
if(target){Dom.setOuterHTML(target,_currentUpdateSource.getOuterHtml(sourceHandle));
this._markRR(Dom.getElementById(id))
}else{alert("scopeUpdate target not found: "+id)
}},replaceRows:function(poSourceTable,poTargetTable){var targetTBody=Dom.findChild(poTargetTable,"TBODY");
var sourceRows=Dom.findChild(poSourceTable,"TBODY").childNodes;
var elementDomSyncData=this.findDomSyncElementData(poSourceTable.id);
var i,target;
Debug.log("replaceRows -- table: "+poSourceTable.id+", count: "+sourceRows.length);
var insertArray=elementDomSyncData[AWINSERT];
for(i=0;
insertArray&&i<insertArray.length;
i+=2){var element=Dom.findElement(sourceRows,insertArray[i+1]);
target=null;
if(insertArray[i]=="null"){var rows=targetTBody.childNodes;
var rowNum=0;
while(rowNum<rows.length){var row=rows[rowNum++];
if(row.id!=""){target=row;
break
}}}else{target=Dom.getElementById(insertArray[i]);
target=target.nextSibling;
while(target&&!target.tagName){target=target.nextSibling
}}if(target){targetTBody.insertBefore(element,target)
}else{targetTBody.appendChild(element)
}this._markRR(element)
}i=0;
while(i<sourceRows.length){var sourceRow=sourceRows[i];
if(sourceRow.nodeName=="TR"&&sourceRow.id){var targetRow=Dom.findRow(targetTBody,sourceRow.id);
if(targetRow==null){i++
}else{targetTBody.replaceChild(sourceRow,targetRow);
this._markRR(sourceRow)
}}else{i++
}}},handleUpdateError:function(message){var shouldDebug=false;
if(Request.AWDebugEnabled){shouldDebug=confirm(message+".\n\nShow details?")
}if(shouldDebug){var msg=['<h1>Refresh Trace</h1><textarea cols="150" rows="46">'];
if(AWRefreshTrace!=null){for(var i=0;
i<AWRefreshTrace.length;
i=i+2){msg.push("\n=============== Main content ("+i/2+") ====================");
msg.push(AWRefreshTrace[i]);
msg.push("\n=============== Incremental update ("+i/2+") ====================");
msg.push(AWRefreshTrace[i+1])
}}msg.push("</textarea>");
Request.displayErrorDiv(msg.join("\n"))
}else{top.location.href=top.ariba.Request.appendFrameName(top.ariba.Request.AWRefreshUrl)
}return false
},_updateRefreshTrace:function(){var refreshFrame=Dom.getElementById("AWRefreshFrame");
if(false&&Request.AWDebugEnabled){if(AWRefreshTrace==null){AWRefreshTrace=new Array()
}var refreshBody=refreshFrame.contentWindow.document.body;
if(refreshBody){if(AWRefreshTrace.length==AWMaxRefreshTraceLength){for(var traceIndex=0;
traceIndex<AWRefreshTrace.length-2;
traceIndex++){AWRefreshTrace[traceIndex]=AWRefreshTrace[traceIndex+1]
}AWRefreshTrace.length=AWMaxRefreshTraceLength-2
}AWRefreshTrace[AWRefreshTrace.length]=Dom.getOuterHTML(document.body);
AWRefreshTrace[AWRefreshTrace.length]=Dom.getOuterHTML(refreshBody)
}}},IFrameUpdateSource:function(){var refreshFrame=Dom.getElementById("AWRefreshFrame");
var body=Dom.findChild(refreshFrame.contentWindow.document,"BODY");
var elements=[];
if(body!=null){var refreshNodes=body.childNodes;
for(var i=0;
i<refreshNodes.length;
i++){var source=refreshNodes[i];
if(source.id&&source.getAttribute("ignore")!="true"){elements.push(source)
}}}return{getHandles:function(){return elements
},getId:function(handle){return handle.id
},getHandleForId:function(id){return refreshFrame.contentWindow.document.getElementById(id)
},getNodeName:function(handle){return handle.nodeName
},getInnerHtml:function(handle){return handle.innerHTML
},getOuterHtml:function(handle){return Dom.getOuterHTML(handle)
}}
},XMLHTTPUpdateSource:function(response){var ids=[];
var info={};
function init(){var start=0;
while(start!=-1){start+=10;
var end=response.indexOf("<!--@&@-->",start);
var body=(end==-1)?response.substring(start):response.substring(start,end);
var tagEnd=body.indexOf(">");
var tag=body.substring(0,tagEnd+1);
var nodeNameEnd=tag.indexOf(" ");
var nodeName=tag.substring(1,nodeNameEnd).toUpperCase();
var m=_IDPat.exec(tag);
if(m){var id=m[1];
ids.push(id);
info[id]={body:body,nodeName:nodeName}
}start=end
}}init();
return{getHandles:function(){return ids
},getId:function(handle){return handle
},getHandleForId:function(id){return id
},getNodeName:function(handle){return info[handle].nodeName
},getInnerHtml:function(handle){var body=info[handle].body;
var start=body.indexOf(">"),end=body.lastIndexOf("<");
return body.substring(start+1,end)
},getOuterHtml:function(handle){return info[handle].body
}}
},evalScriptTags:function(str){var matches=str.match(_ScriptAllPat)||[];
for(var i=0;
i<matches.length;
i++){var outer=matches[i];
var m=_ScriptOnePat.exec(outer);
_currScript=m[2];
if(m[1].indexOf("VBScript")==-1){eval(_currScript)
}else{Event.GlobalEvalVBScript(_currScript)
}_currScript=null
}},processXMLHttpResponse:function(response){window.ariba_IR=_isXMLHttpResponse=true;
try{_pendingCompleteRequestRun=true;
_currentUpdateSource=new this.XMLHTTPUpdateSource(response);
this.evalScriptTags(response)
}catch(e){Request.displayErrorDiv("<h1>Error applying incremental refresh</h1><b>"+e+"</b><br/><br/><b>Script:</b> <pre><code>"+_currScript+"</code></pre><br/><br/><h2>Attaching full response content below...</h2>"+response);
throw (e)
}finally{window.ariba_IR=_isXMLHttpResponse=false
}setTimeout(function(){if(_pendingCompleteRequestRun){Request.displayErrorDiv("<h1>Bad XMLHTTP Incremental Refresh Response</h1><h2>Attaching full response content below...</h2>"+response)
}},1)
},_markRR:function(target){if(this.AWMarkRefreshRegions){Dom.addClass(target,"showRR");
if(!_MarkedRRs){_MarkedRRs=[]
}_MarkedRRs.push(target)
}},clearPendingCompleteRequestRun:function(){_pendingCompleteRequestRun=false
},enableRefreshScript:function(){AWRefreshScriptEnabled=true
},domRefreshContentCallback:function(){if(_MarkedRRs){while(_MarkedRRs.length){var e=_MarkedRRs.pop();
try{Dom.removeClass(e,"showRR")
}catch(e){}}}if(Request.AWJSDebugEnabled){AWRefreshStartTime=(new Date()).getTime()
}var i,target;
if(!Util.isNullOrUndefined(AWDomSyncData)){for(var elementId in AWDomSyncData){var elementDomSyncData=AWDomSyncData[elementId];
var deleteArray=elementDomSyncData[AWDELETE];
if(deleteArray){target=Dom.getElementById(elementId);
var targetTBody=Dom.findChild(target,"TBODY");
for(i=0;
i<deleteArray.length;
i++){var child=Dom.getElementById(deleteArray[i]);
if(Util.isNullOrUndefined(child)){return this.handleUpdateError("AW: Error detected during delete. Unable to find element '"+deleteArray[i]+"'")
}targetTBody.removeChild(child)
}}}}var handles=_currentUpdateSource.getHandles();
for(i=0;
i<handles.length;
i++){var handle=handles[i];
var id=_currentUpdateSource.getId(handle);
var nodeName=_currentUpdateSource.getNodeName(handle);
target=Dom.getElementById(id);
if(Util.isNullOrUndefined(target)){this.handleUpdateError("AW: Error detected during update. Unable to find element '"+id+"'")
}if(AWDomScopeUpdateList&&AWDomScopeUpdateList[id]=="true"){this._scopeUpdate(handle)
}else{if(nodeName=="TABLE"){this._refreshTable(handle,target)
}else{if(nodeName=="DIV"||nodeName=="SPAN"){var scrollTop=target.scrollTop;
target.innerHTML=_currentUpdateSource.getInnerHtml(handle);
if(scrollTop){target.scrollTop=scrollTop
}this._markRR(target)
}else{if(Dom.isNetscape()&&target.nodeName=="PRE"){target.innerHTML=_currentUpdateSource.getInnerHtml(handle);
this._markRR(target)
}else{this.handleUpdateError("AW: Error detected during update. Unknown refresh node type '"+target.nodeName+", element '"+id+"'")
}}}}}AWDomSyncData=null;
AWDomScopeUpdateList=null
},windowOnLoad:function(){AWWindowOnLoad=true;
if(!this.AWAllowParentFrame&&top!=self){var pop=true;
try{if(top.location.hostname==document.location.hostname){pop=false
}}catch(e){}if(pop){top.location=self.location
}}AWWindowLoadStartTime=(new Date()).getTime();
this.refreshComplete();
AWWindowOnLoad=false
},refreshComplete:function(){Debug.log("Refresh complete called...");
if(this.AWMarkRefreshRegions){Dom.addClass(document.body,"rrVis")
}else{Dom.removeClass(document.body,"rrVis")
}Event.notifyRefreshComplete()
},findDomSyncElementData:function(parentBufferName){if(AWDomSyncData==null){AWDomSyncData=new Object()
}if(!AWDomSyncData[parentBufferName]){AWDomSyncData[parentBufferName]=new Object()
}return AWDomSyncData[parentBufferName]
},registerScopeChanges:function(parentBufferName,inserts,deletes){var elementDomSyncData=this.findDomSyncElementData(parentBufferName);
elementDomSyncData[AWINSERT]=inserts;
elementDomSyncData[AWDELETE]=deletes
},registerScopeUpdate:function(elementName){if(AWDomScopeUpdateList==null){AWDomScopeUpdateList=new Object()
}AWDomScopeUpdateList[elementName]="true"
},registerGlobalJS:function(str){if(_LoadedJSStrs[str]=="true"){Debug.log("awRegisterGlobalJS: Skipping reload of already registered JS: "+str)
}else{_LoadedJSStrs[str]="true";
this.insertGlobalJS(str)
}},RSS:function(sync,isGlobalScope,funcString){_RunningIncrementalAction=true;
var func=function(){if(isGlobalScope){var bodyString=Refresh.extractFuncBody(funcString);
Refresh.registerGlobalJS(bodyString)
}else{eval("var f="+funcString+"; f.call();")
}};
Refresh.RSF(sync,false,func)
},RSF:function(sync,isGlobalScope,func){if(!AWRefreshScriptEnabled){return 
}if(sync){func.call(null)
}else{if(isGlobalScope){var funcStr=this.extractFuncBody(func.toString());
func=function(){Refresh.registerGlobalJS(funcStr)
}
}Event.registerUpdateCompleteCallback(func)
}},RVBS:function(id,isGlobalScope){Event.registerUpdateCompleteCallback(function(){Refresh.execVBS(id,isGlobalScope)
})
},execVBS:function(id,isGlobalScope){if(VBSEnqueue){if(!VBSArray){VBSArray=[]
}VBSArray[VBSArray.length]=[id,isGlobalScope];
return 
}var pre=Dom.getElementById(id);
var preInnerText=Dom.getInnerText(pre);
if(Dom.IsIE){try{Event.GlobalEvalVBScript(preInnerText)
}catch(e){var msg="execVBS: exception evaluting script at id: "+id+"\n"+e.description;
if(pre&&preInnerText){msg+="\n\n"+preInnerText
}alert(msg)
}}},flushVBSQueue:function(){VBSEnqueue=false;
if(VBSArray!=null){for(var i=0;
i<VBSArray.length;
i++){this.execVBS(VBSArray[i][0],VBSArray[i][1])
}}},extractFuncBody:function(str){var re=/function\s*\(\)\s*\{((.|\s)*)\}$\s*/m;
var m=re.exec(str);
var bodyString="";
if(m){bodyString=m[1]
}else{alert("No Match: !  -- "+str)
}return bodyString
},insertGlobalJS:function(str){var head=document.getElementsByTagName("head")[0];
var scriptElem=document.createElement("script");
scriptElem.setAttribute("type","text/javascript");
head.appendChild(scriptElem);
scriptElem.text=str
},loadJSFile:function(url,noRetry){if(_LoadedJS[url]==1){return 
}_LoadedJS[url]=1;
Debug.log("JS Load initiated ("+_RunningIncrementalAction+"): "+url);
var scriptHolder=[];
function applyJS(){if(scriptHolder.length>0){Debug.log("Applying JS: "+url);
this.insertGlobalJS(scriptHolder[0]);
if(!Dom.IsIE){Event.refreshIncrementNesting();
setTimeout(Event.notifyRefreshComplete.bind(Event),0)
}}else{if(noRetry){alert("Failed to load JS: "+url)
}else{_LoadedJS[url]=0;
this.loadJSFile(url,true)
}}}function httpSuccess(http){scriptHolder[0]=http.responseText;
Debug.log("JS Load complete: "+url);
Event.notifyRefreshComplete()
}Event.refreshIncrementNesting();
Event.registerUpdateCompleteCallback(applyJS.bind(this));
Request.simpleXMLHTTP(url,httpSuccess.bind(this))
},iFrameFormSubmit:function(iframeFormName){ariba.Request.prepareRedirectRequest();
var us=_currentUpdateSource||new this.IFrameUpdateSource();
var handle=us.getHandleForId(iframeFormName);
var formHtml=us.getOuterHtml(handle);
var div=document.createElement("div");
document.body.appendChild(div);
div.innerHTML=formHtml;
var realForm=div.firstChild;
realForm.submit()
},completeRequest:function(current,length,isRefreshRequest){if(!_isXMLHttpResponse&&Dom.isSafari&&isRefreshRequest){_historyCurrent=current;
_historyLength=length;
_runCompleteRefreshOnLoad=true
}else{this._completeRequest(current,length,isRefreshRequest)
}},completeRefreshOnLoad:function(){if(_runCompleteRefreshOnLoad){_runCompleteRefreshOnLoad=false;
ariba.Debug.log("completeRefreshOnLoad");
this._completeRequest(_historyCurrent,_historyLength,true)
}},_completeRequest:function(current,length,isRefreshRequest){_pendingCompleteRequestRun=false;
AWRefreshScriptEnabled=false;
Event.eventLock();
if(_isXMLHttpResponse){isRefreshRequest=true
}if(isRefreshRequest){Debug.log("*** refresh");
Event.invokeRegisteredHandlers("onRefreshRequestComplete");
Request.refreshRequestComplete();
if(_isXMLHttpResponse){this.domRefreshContentCallback()
}else{_currentUpdateSource=new this.IFrameUpdateSource();
this.domRefreshContentCallback();
if(!Request.AWShowRequestFrame){Request.destroyRequestIFrame("AWRefreshFrame")
}}_currentUpdateSource=null;
if(current!=null&&length!=null){Event.registerUpdateCompleteCallback(function(){Refresh.updateHistory(current,length)
})
}if(Input.AWAutomationTestModeEnabled){Event.registerUpdateCompleteCallback(function(){setTimeout(Request.setStatusDone.bind(Request),0)
})
}this.refreshComplete()
}else{Debug.log("*** full page update");
if(current!=null&&length!=null){Event.registerUpdateCompleteCallback(this.updateHistory.bind(this),[current,length])
}Event.registerRefreshCallback(Request.requestComplete.bind(Request))
}var e=Dom.getElementById("FPR_Warning");
if(e){if(isRefreshRequest){if(e.tagName=="DIV"){Dom.getElementById("debugBar").className="debugBar"
}e.className="";
e.innerHTML=""
}else{Dom.getElementById("debugBar").className="debugBarVis";
var msg=e.innerHTML;
if(msg&&msg.indexOf("(OK)")>=0){e.className="debugWarning";
e.innerHTML="Full Page Refresh: <br/>"+e.innerHTML
}else{e.className="debugError";
e.innerHTML="FULL PAGE REFRESH!: <br/>"+e.innerHTML
}}}if(Request.AWJSDebugEnabled){Request.AWUpdateCompleteTime=(new Date()).getTime();
setTimeout(this.debugRequestComplete.bind(this),0)
}Event.eventUnlock()
},debugRequestComplete:function(){if(this.AWJSDebugEnabled){var currTime=(new Date()).getTime();
var total="n/a";
var refreshTime="n/a";
var postRefreshTime="n/a";
var onloadTime="n/a";
var requestStartTime=Debug.getRequestStartTime();
if(!Util.isNullOrUndefined(requestStartTime)){total=currTime-requestStartTime
}else{Debug.log("Null start time. Request not initiated through iframe.")
}if(!Util.isNullOrUndefined(AWRefreshStartTime)){refreshTime=currTime-AWRefreshStartTime
}if(!Util.isNullOrUndefined(this.AWUpdateCompleteTime)){postRefreshTime=currTime-this.AWUpdateCompleteTime
}if(!Util.isNullOrUndefined(AWWindowLoadStartTime)){onloadTime=currTime-AWWindowLoadStartTime
}Debug.log("--> request complete - total:"+total+" onload: "+onloadTime+" refresh:"+refreshTime+" postRefresh:"+postRefreshTime)
}},loadLazyChildren:function(divObject,postLoadCallback){var childrenArray=Dom.getChildren(divObject);
var arrayLength=childrenArray.length;
var index=0;
var val=false,loaded;
for(index=0;
index<arrayLength;
index++){var childObject=childrenArray[index];
if(childObject.tagName=="DIV"){loaded=this.loadLazyDiv(childObject,postLoadCallback);
val=val||loaded
}else{if(childObject.tagName=="SPAN"){loaded=this.loadLazyChildren(childObject,postLoadCallback);
val=val||loaded
}}}return val
},loadLazyDivCallback:function(divObject,xmlhttp){var parent=divObject.parentNode;
this.evalScriptTags(xmlhttp.responseText);
AWRefreshScriptEnabled=false;
Dom.setOuterHTML(divObject,xmlhttp.responseText);
Refresh.refreshComplete();
divObject.setAttribute("awneedsLoading","false");
Input.hideWaitCursor();
Event.notifyParents(parent,"lazyCallback");
this.postLoadLazyDiv();
if(Input.AWAutomationTestModeEnabled){setTimeout(Request.setStatusDone.bind(Request),0)
}},loadLazyDiv:function(divObject,postLoadCallback){if(this.divNeedsLoading(divObject)){Request.prepareForRequest();
var divId=divObject.id;
var url=Request.formatSenderUrl(divId);
Request.initiateXMLHttpRequest(url,function(xmlhttp){var div=Dom.getElementById(divId);
if(div){if(postLoadCallback){postLoadCallback(div,xmlhttp)
}else{Refresh.loadLazyDivCallback(div,xmlhttp)
}}});
return true
}else{if(this.loadLazyChildren(divObject,postLoadCallback)){return true
}}return false
},divNeedsLoading:function(divObject){return divObject.getAttribute("awneedsLoading")=="true"
},childrenNeedLoading:function(divObject){var childrenArray=Dom.getChildren(divObject);
var arrayLength=childrenArray.length;
var index=0;
for(index=0;
index<arrayLength;
index++){var childDiv=childrenArray[index];
if(childDiv.tagName=="DIV"||childDiv.tagName=="SPAN"){if(this.divNeedsLoading(childDiv)){return true
}else{return this.childrenNeedLoading(childDiv)
}}}return false
},evalOnVisibleScript:function(element){var children=element.childNodes;
for(var index=children.length-1;
index>-1;
index--){var child=children[index];
if(child.id=="_awonVisible"){var onVisibleScript=child.innerHTML;
eval(onVisibleScript);
return 
}}},undisplayDiv:function(divObject){if(divObject!=null){divObject.style.display="none";
Dom.unoverlay(divObject)
}},getHistoryIFrame:function(){return Dom.getElementById("AWHistoryControl")
},createHistoryIFrame:function(){var iframeDiv=Dom.getElementById("AWHistoryFrameDiv");
if(!iframeDiv){alert("AWHistoryFrameDiv not found")
}var height=this.AWShowHistoryFrame?"height='55px'":" height='0px' width='0px'";
iframeDiv.innerHTML="<iframe src='"+Dom.AWEmptyDocScriptlet+"' id='AWHistoryControl' name='AWHistoryControl' style='border:0px'"+height+"></iframe>";
return this.getHistoryIFrame()
},updateHistory:function(current,length){var backCount=current;
if(backCount>AWHistoryLimit){backCount=AWHistoryLimit
}var forwardCount=0;
if(length-1-current>=1){forwardCount=1
}var iframe=this.getHistoryIFrame();
if(iframe){if(AWHistoryBack==backCount&&AWHistoryForward==forwardCount){return 
}}else{}AWHandlingNewRequest=true;
AWHistoryDebugString="back: "+(backCount+1)+" forward: "+forwardCount;
AWHistoryBack=backCount;
AWHistoryForward=forwardCount;
setTimeout(this.startBacktrackHistoryCreate.bind(this),10)
},historyRequest:function(distance){if(AWHandlingNewRequest){AWHandlingNewRequest=false;
return 
}if(_CheckLocInterval){clearInterval(_CheckLocInterval);
_CheckLocInterval=null
}if(distance==-1){AWHandlingTrackRequest=true;
Request.getContent(this.AWBackTrackUrl)
}else{if(distance==1){AWHandlingTrackRequest=true;
Request.getContent(this.AWForwardTrackUrl)
}else{alert("refresh?")
}}},startBacktrackHistoryCreate:function(){if(Dom.IsIE){var iframe=this.createHistoryIFrame()
}else{if(!_CheckLocInterval){_CheckLocInterval=setInterval(this.checkForLocationChange.bind(this),100)
}}_LocationCheckActive=false;
this.createBacktrackHistory(AWHistoryBack+1,AWHistoryForward)
},checkForLocationChange:function(){if(!_LocationCheckActive){return 
}var loc=Dom.getHashLocation();
this.processLocationChange(loc)
},processLocationChange:function(loc){if(loc&&loc!="b0"){var dir=loc.charAt(0);
if(dir=="b"){this.historyRequest(-1)
}else{if(dir=="f"){this.historyRequest(1)
}}}},createBacktrackHistory:function(backCount,forwardCount){if(backCount>0){AWHandlingNewRequest=true;
this.backtrackHistory(backCount-1,forwardCount)
}else{this.createForwardtrackHistory(forwardCount,forwardCount)
}},createForwardtrackHistory:function(forwardCount,currentCount){if(forwardCount>0){AWHandlingNewRequest=true;
this.forwardtrackHistory(forwardCount-1,currentCount)
}else{if(currentCount!=0){AWHandlingNewRequest=true;
_historyHandler=function(){_historyHandler=Refresh.processLocationChange.bind(Refresh)
};
history.go(-currentCount)
}else{_historyHandler=Refresh.processLocationChange.bind(Refresh)
}AWHandlingNewRequest=false;
_LocationCheckActive=true
}},historyKey:function(url){var m=url.toString().match(/(&|\?)k=(\w+)/);
return m?m[2]:null
},historyEvent:function(url){_historyHandler(this.historyKey(url))
},addHistory:function(key,postAddHandler){var iframe=this.getHistoryIFrame();
if(this.historyKey(iframe.src)==key){key+="1"
}iframe.src=Request.AWReqUrl+"?awh=s&k="+key;
_historyHandler=postAddHandler
},backtrackHistory:function(backCount,forwardCount){if(Dom.IsIE){this.addHistory("b",function(key){Refresh.createBacktrackHistory(backCount,forwardCount)
})
}else{function bt(){window.location.hash="b"+backCount;
Refresh.createBacktrackHistory(backCount,forwardCount)
}setTimeout(bt,50)
}},forwardtrackHistory:function(forwardCount,currentCount){Debug.log("Add Forwardtrack: "+forwardCount);
if(Dom.IsIE){this.addHistory("f",function(key){Refresh.createForwardtrackHistory(forwardCount,currentCount)
})
}else{function ft(){window.location.hash="f"+forwardCount;
Refresh.createForwardtrackHistory(forwardCount,currentCount)
}setTimeout(ft,50)
}},EOF:0};
if(Dom.IsIE){Util.extend(Refresh,function(){var AWCurrDiv_IE;
return{postLoadLazyDiv:function(){if(AWCurrDiv_IE&&Dom.elementInDom(AWCurrDiv_IE)){Dom.repositionDivToWindow(AWCurrDiv_IE);
Dom.overlay(AWCurrDiv_IE,true)
}AWCurrDiv_IE=null
},preDisplayDiv:function(divObject){},displayDiv:function(divObject,mode,needsUpdate,skipOverlay){if(divObject!=null){divObject.style.display=(mode?mode:"");
AWCurrDiv_IE=divObject;
this.loadLazyDiv(divObject);
if(!skipOverlay){this.preDisplayDiv(divObject);
Dom.overlay(divObject,needsUpdate)
}this.evalOnVisibleScript(divObject)
}},EOF:0}
}())
}if(!Dom.IsIE){Util.extend(Refresh,function(){var AWCurrDiv_NS;
return{postLoadLazyDiv:function(mode){if(AWCurrDiv_NS){mode=mode?mode:"";
AWCurrDiv_NS.style.display=mode;
Dom.repositionDivToWindow(AWCurrDiv_NS);
AWCurrDiv_NS=null
}},displayDiv:function(divObject,mode,needsUpdate){if(divObject!=null){mode=mode?mode:"";
divObject.style.display=mode;
AWCurrDiv_NS=divObject;
if(!Refresh.loadLazyDiv(divObject)){this.postLoadLazyDiv(mode)
}this.evalOnVisibleScript(divObject)
}},EOF:0}
}())
}window.onload=Refresh.windowOnLoad.bind(Refresh);
return Refresh
}();
function RJS(C,A,D,B){if(ariba.Refresh._isXMLHttpResponse){if(C){ariba.Refresh.RSS(A,D,B.toString())
}}else{ariba.Refresh.RSF(A,D,B)
}}ariba.Handlers=function(){var K=ariba.Event;
var I=ariba.Input;
var B=ariba.Request;
var G=ariba.Dom;
var A="awfa";
var H="awdidchg";
var D="AWPopupSelectedCaptured";
var F=null;
var E;
var J=false;
var L={AWActionPopupEnabled:true,mouseWheelOnPopup:function(M,N){K.cancelBubble(N);
return false
},actionPopupChanged:function(M,P){if(this.AWActionPopupEnabled){M.setAttribute(H,"0");
var N=M.options[M.selectedIndex];
var Q=N.value;
if(Q=="awnop"){M.selectedIndex=M.selectedIndex-1;
return false
}this.AWActionPopupEnabled=false;
var O;
if(Q=="awaction"){O=M.form;
G.addFormField(O,B.AWSenderIdKey,N.id);
B.submitForm(O,null,null,true)
}else{O=M.form;
G.addFormField(O,B.AWSenderIdKey,M.name);
B.submitForm(O,null,null,true)
}return true
}this.AWActionPopupEnabled=true;
return true
},actionPopupKeyDown:function(M,P){var N=K.keyCode(P);
if(N==I.KeyCodeEnter||N==I.KeyCodeTab){var O=M.getAttribute(D);
if(M.getAttribute(H)=="1"||(!Util.isNullOrUndefined(O)&&(M.selectedIndex!=O))){this.AWActionPopupEnabled=true;
return this.actionPopupChanged(M,P)
}}else{if(N==I.KeyCodeArrowUp||N==I.KeyCodeArrowDown){M.setAttribute(H,"1");
M.setAttribute(D,null);
this.AWActionPopupEnabled=false
}else{this.AWActionPopupEnabled=false;
M.setAttribute(D,M.selectedIndex)
}}return true
},textFieldRefresh:function(O,N){var M=G.getElementById(O);
G.addFormField(M,B.AWSenderIdKey,N);
B.submitForm(M,null);
return true
},resetTextFieldChanged:function(){if(F!=null){F=null;
K.updateDocHandler("click",null)
}},textRefresh:function(P,M){var N=K.keyCode(P);
if(N==I.KeyCodeShift){return true
}if((N==I.KeyCodeEnter&&M.nodeName!="TEXTAREA")||N==I.KeyCodeTab){if(M.getAttribute(H)=="1"){M.setAttribute(H,"0");
return this.textFieldRefresh(M.form.id,M.name)
}}else{M.setAttribute(H,"1");
if(K.getDocHandler("click")==null){K.registerUpdateCompleteCallback(this.resetTextFieldChanged.bind(this));
F=M.id;
var O=function(S){if(F!=null){S=S?S:event;
var Q=G.getElementById(F);
if(Q!=null){var R=Q.form;
return L.textFieldRefresh(R.id,Q.name)
}}}.bindEventHandler(this);
K.updateDocHandler("click",O)
}}return true
},checkCapsLockErrorTxtRfrsh:function(N,M){this.checkCapsLockError(N);
return this.textRefresh(N,M)
},checkCapsLockError:function(M){if(E){if(K.keyCode(M)==I.KeyCodeCapsLock||K.keyCode(M)==I.KeyCodeBackspace){this.hideCapsLockError()
}}},hideCapsLockError:function(){if(E&&E.style.display!="none"){G.fadeOutElement(E);
E.style.display="none";
E=null
}},noCapsLockTxt:function(S,N,M){var R=0;
var P=false;
if(document.all){R=S.keyCode;
P=S.shiftKey
}else{if(document.getElementById){R=S.which;
P=S.shiftKey
}else{return true
}}if(((R>=65&&R<=90)&&!P)||((R>=97&&R<=122)&&P)){var T=G.getElementById(M);
if(T&&T.style.display!="block"){T.style.display="block";
var O=G.absoluteTop(N);
var Q=G.absoluteLeft(N)+N.offsetWidth+2;
T.style.top=G.correctForBottomEdge(O,T)+"px";
T.style.left=G.correctForRightEdge(Q,T)+"px";
G.fadeInElement(T);
E=T
}}else{this.hideCapsLockError()
}return true
},textNoSubmit:function(N,M){if(K.keyCode(N)==I.KeyCodeEnter){K.cancelBubble(N);
return false
}},virtualFormKeyPress:function(M,Q){Q=Q?Q:event;
var N=K.keyCode(Q);
if(N==I.KeyCodeEnter){var P=M.id;
var O=G.findParent(M,"FORM",false);
G.addFormField(O,B.AWSenderIdKey,P);
B.submitForm(O,null);
K.cancelBubble(Q)
}return false
},hSubmit:function(N,M){B.submitForm(N,M)
},hKeyDown:function(N,M,O){if((O.type=="keypress")&&(K.keyCode(O)!=I.KeyCodeEnter)){return true
}return B.submitFormForElementName(N,M,O)
},hPopupChanged:function(M,N){return this.actionPopupChanged(M,N)
},hLinkClick:function(P,M,N,O){if(J){J=false;
return false
}if((O.type=="keypress")&&(K.keyCode(O)!=I.KeyCodeEnter)){return true
}B.gotoLink(P,M,N,O);
return false
},hTagClick:function(M,S,O,N,R,Q,P){return this.tagOnClick(M,S,O,N,R,Q,P)
},hTagKeyDown:function(M,R,O,N,Q,P){return this.tagOnKeyPress(M,R,O,N,Q,P)
},hTagRefreshKeyDown:function(M,R,O,N,Q,P){if(this.tagOnKeyPress(M,R,O,N,Q,P)){return this.textRefresh(Q,M)
}return false
},hPopupAction:function(M,O){var N=M.options[M.selectedIndex];
if(N.value.match(/^aw/)==null){this.AWActionPopupEnabled=false
}return this.actionPopupChanged(M,O)
},hSubmitAtIndex:function(M,O,N){return B.submitFormAtIndexWithHiddenField(M,O,N)
},hOpenWindow:function(O,M,N){return G.openWindow(O,M,N)
},hActionPopupKeyDown:function(M,N){return this.actionPopupKeyDown(M,N)
},hMouseWheelOnPopup:function(M,N){return this.mouseWheelOnPopup(M,N)
},hVirtualFormKeyPress:function(M,N){return this.virtualFormKeyPress(M,N)
},tagOnClick:function(M,S,O,N,R,Q,P){return B.senderClicked(M.id,S,O,N,R,Q,M.value,P)
},tagOnKeyPress:function(M,R,O,N,Q,P){if(K.keyCode(Q)==I.KeyCodeEnter){this.tagOnClick(M,R,O,N,Q,P);
ariba.Event.cancelBubble(Q);
return false
}return true
},fireActionInScope:function(R,Q){if(K.keyCode(Q)==I.KeyCodeEnter){var M=K.eventSourceElement(Q);
var P=false;
if(M&&M.nodeName=="INPUT"){P=M.type=="text"||M.type=="password"
}if(P){var O=ariba.Handlers.fireDefaultActionButton(R,Q);
if(G.boolAttr(R,"_hfa",false)&&K.shouldBubble(Q)){var N=R[A];
K.cancelBubble(Q);
G.addFormField(R,B.AWSenderIdKey,N.value);
B.submitForm(R);
O=false
}return O
}}return true
},fakeClick:function(P,O){if(P){K.elementInvoke(P,"mousein");
K.elementInvoke(P,"mousedown");
var N=K.elementInvoke(P,"click");
K.cancelBubble(O);
var M=function(){if(G.elementInDom(P)){K.elementInvoke(P,"mouseout")
}}.bind(this);
if(B.isRequestInProgress()){K.registerUpdateCompleteCallback(M)
}else{setTimeout(M,1000)
}return N
}return true
},fireDefaultActionButton:function(O,M){var N=G.findChildUsingPredicate(O,function(P){return P.tagName&&G.boolAttr(P,"_isdef",false)
});
return this.fakeClick(N,M)
},ignoreKey:function(M){M=M?M:event;
K.preventDefault(M);
K.cancelBubble(M);
return false
},ignoreKeyDown:function(M){I.showWaitAlert();
this.ignoreKey(M);
return false
},_awHandlers_MARKER:function(){},EOF:0};
var C={click:function(O,M){if(O.getAttribute("_sL")){B.redirect(O.getAttribute("_sL"));
return true
}if(G.boolAttr(O,"_dC",false)){return true
}var N=G.boolAttr(O,"_sf",true)?G.lookupFormId(O):null;
return ariba.Handlers.tagOnClick(O,N,O.getAttribute("_t"),O.getAttribute("_a"),M,G.boolAttr(O,"_av"),O.getAttribute("_w"))
},keypress:function(N,M){if(G.boolAttr(N,"_dC",false)){return true
}return(K.keyCode(M)==I.KeyCodeEnter)?C.click(N,M):true
}};
K.registerBehaviors({GAT:C,HL:{prototype:C},TF:{keypress:function(N,M){return ariba.Handlers.textNoSubmit(M,N)
},keydown:function(P,M){var N=P.getAttribute("_tf");
if(!N){return true
}var O=G.lookupFormId(P);
return(N=="AC")?ariba.Handlers.hTagKeyDown(P,O,null,null,M,false,null):(N=="ROKP")?ariba.Handlers.hTagRefreshKeyDown(P,O,null,null,M,false,null):ariba.Handlers.textRefresh(M,P)
}},TA:{keyup:function(N,M){ariba.Dom.limitTextLength(N,N.getAttribute("_mL"))
},keydown:function(N,M){return G.boolAttr(N,"_isRF",false)?ariba.Handlers.textRefresh(M,N):true
}},AS:{keydown:function(N,M){L.fireActionInScope(N,M)
}},ROV:{mouseover:function(O,M){var N=O.getAttribute("roClass")||"hov";
O.setAttribute("origClass",O.className);
O.className=N;
return true
},mouseout:function(N,M){N.className=N.getAttribute("origClass");
return true
}}});
if(window==ariba.awCurrWindow){if(G.IsIE6Only){K.registerRefreshCallback(G.updateOverlayIframes.bind(G))
}}return L
}();