/**********************************************************/
/*Impact Informatics DHTML Window - Beta Version          */
/*Copyright (c) 2007 Impact Informatics                   */
/*For licensing information contact Impact Informatics at */
/*dxbrown77@embarqmail.com                                */
/**********************************************************/
var bd;var bK;var cI;var bp;var K=0;var aD=0;var F=new Array();var f="";var cG=false;var aq=false;var fR={scrollX:0,scrollY:0,fP:"",fO:null};function eV(bL,U,O,R,V,M,ao,ah,as,bw,bJ,ab,ak,ba,an,G,ar,aF){var cB=window.document;var body=window.document.body;var r;var n=null;var eU=0;var T=0;var t=null;var j=null;var ax=new Array(2);var fM="PFM7+v6DghUzL0K3LxdDDE+WpcoRkARO";var fN="zqKZamzK33+A2hdvDZwsMFI4b1MA2ND+";r=cB.createElement("div");body.appendChild(r);r.id="IIWin."+K;r.setAttribute("IIWin",true);r.setAttribute("strMovableClickElement",O);r.setAttribute("intClientIDSuffix",K);if(as!=""){r.className=as;}else{r.className="IIWinDefault";}cj(r);if(bw!=""){r.style.left=bw;}if(bJ!=""){r.style.top=bJ;}if(ab!=""){r.style.height=ab;}if(ak!=""){r.style.width=ak;}if(ba!=""){r.style.zIndex=ba;}if(ah!=""){r.style.visibility=ah;}if(an==true){var dH=cB.createElement("iframe");r.appendChild(dH);dH.id="IIWinShim."+K;dH.className="shim";dH.src="";dH.frameBorder="0";dH.scrolling="no";if(G!=""){dH.style.zIndex=G;}}if(R!=""){n=cB.createElement("div");r.appendChild(n);n.id="IIWinCaptionBar."+K;if(V!=""){n.className=V;}else{n.className="IIWinCaptionBarDefault";}if(typeof(R)!="object"){n.innerHTML=R;}else{n.appendChild(R);}if(O=="CaptionBar"){al(n,"mousedown",bY,false);aE("IIWinCaptionBar."+K,"mousedown",bY,false)}if(ar){cf(n,K);}bS(n);dk(n);}if(M!=""){t=cB.createElement("div");r.appendChild(t);t.id="IIWinBody."+K;if(ao!=""){t.className=ao;}else{t.className="IIWinBodyDefault";}if(typeof(M)!="object"){t.innerHTML=M;}else{t.appendChild(M);}if(O=="Body"){al(t,"mousedown",bY,false);aE("IIWinBody."+K,"mousedown",bY,false)}al(t,"scroll",dP,false);aE("IIWinBody."+K,"scroll",dP,false);if(ar){cf(t,K);}bS(t);}else{t=cB.createElement("div");r.appendChild(t);t.id="IIWinBody."+K;if(ao!=""){t.className=ao;}else{t.className="IIWinBodyDefault";}if(O=="Body"){al(t,"mousedown",bY,false);aE("IIWinBody."+K,"mousedown",bY,false)}al(t,"scroll",dP,false);aE("IIWinBody."+K,"scroll",dP,false);}if(bL==true){j=cB.createElement("div");r.appendChild(j);j.id="IIWinResizerButton."+K;j.className="IIWinResizerButtonDefault";al(j,"mousedown",dX,false);aE("IIWinResizerButton."+K,"mousedown",dX,false);if(ar){cf(j,K);}bS(j);cY(j);}else{j=null;}ci(t,f);if(M!=""){if(aF==true){ax=eo(M);dE(r,n,j,ax);}}if(!cG){eE(r,n,t,j);}else{ei(r,n,t,j);}return r;};function fb(fm){function object(){};object.prototype=fm;return new object();};function IIWin_Instantiate(bL,U,O,R,V,M,ao,ah,as,bw,bJ,ab,ak,ba,an,G,ar,aF,Window_AfterInit,Window_AfterResize,Window_AfterMove,Window_BeforeHide,Window_BeforeDestroy,aa){var I;var r;var n;var t;var j;var ai;var c="";var g=false;var cz=new Array(2);var eZ="";var cr=new Array(2);var eY="";var bI=new Array(3);var eW="";var aw=new Array();var Z;var cV;var fS={Left:bw,Top:bJ,ge:ab,gd:ak};var eB;bw,bJ,ab,ak,eB={id:"",ClientIDSuffix:0,ds:0,dv:0,eh:0,eg:0,be:0,bc:0,aV:0,aY:0,aQ:0,aM:0,aG:0,aI:0,aX:0,aT:0,aK:0,aO:0,dh:0,bQ:[],fU:false};if(document.compatMode=="BackCompat"&&window.navigator.appName=="Microsoft Internet Explorer"){cG=true;}if(document.compatMode=="CSS1Compat"){c+="Standards Mode (CSS1Compat) detected."+"\n"}else if(document.compatMode=="BackCompat"){c+="Quirks Mode (BackCompat) detected."+"\n"}c+="----- Input Parameters -----"+"\n";cz=ee(bL,U,O,R,V,M,ao,ah,as,bw,bJ,ab,ak,ba,an,G,ar,aF,Window_AfterInit,Window_AfterResize,Window_AfterMove,Window_BeforeHide,Window_BeforeDestroy,aa);if(cz[0]==""){c+="No problems found."+"\n";}else{c+=cz[0]+"\n";}if(cz[1]==true){g=true;}if(!g){if(M!=""){c+="----- BodyContent Content Error Conditions -----"+"\n";bI=dr(M,aF);if(bI[0]==""){c+="No problems found."+"\n";}else{c+=bI[0]+"\n";}if(bI[1]==true){g=true;}aw=bI[2];}c+="----- CSS Stylesheets -----"+"\n";if(!g){cr=ez(as,V,ao,U,aw,aF,fS);if(cr[0]==""){c+="No problems found."+"\n";}else{c+=cr[0]+"\n";}if(cr[1]==true){g=true;}}}if(typeof(aa)=="string"){if(aa=="textarea"){cV=dS();if(!cV){Z=document.getElementById("txtIIWinErrorDisplay");Z.value="";}else{Z=document.getElementById("txtIIWinErrorDisplay");}Z.value=c;}else if(aa=="alert"){alert(c);}else if(aa=="none"){c="";}else{c="ErrorDisplayType should either be none, textarea or alert. Error display is defaulted to alert."+"\n"+c;alert(c);}}else{c="ErrorDisplayType should either be none, textarea or alert. Error display is defaulted to alert."+"\n"+c;alert(c);}if(g==true){return null;}I=fb(eB);I.id="I."+aD;I.ClientIDSuffix=K;I.fq=eV;I.Window_AfterInit=Window_AfterInit;I.Window_AfterResize=Window_AfterResize;I.Window_AfterMove=Window_AfterMove;I.Window_BeforeHide=Window_BeforeHide;I.Window_BeforeDestroy=Window_BeforeDestroy;I.MoveFX=eC;I.Hide=eT;I.Destroy=eM;I.FadeFX=D;I.GetOpacity=fy;I.SetOpacity=fz;I.RemoveOpacity=fx;I.RegisterIIWinEventHandler=cp;I.GetCenteredCoordinates=ft;I.InitMoveWithScroll=fZ;I.RemoveMoveWithScroll=fY;f=I;F[aD]=I;r=I.fq(bL,U,O,R,V,M,ao,ah,as,bw,bJ,ab,ak,ba,an,G,ar,aF);n=document.getElementById("IIWinCaptionBar."+K);t=document.getElementById("IIWinBody."+K);j=document.getElementById("IIWinResizerButton."+K);if(typeof(f.Window_AfterInit)=="function"){f.Window_AfterInit(r,n,t,j);}K++;aD++;return r;};function eE(r,n,t,j){var cB;var ak;var ab;var aP;var J;var T;cB=window.document;ak=r.clientWidth;ab=r.clientHeight;if(n!=null){T=n.offsetHeight;}else{T=0;}if(j!=null){aP=j.offsetWidth;J=j.offsetHeight;}else{aP=0;J=0;}if(t!=null){dz(t,(ak-(f.bc+f.aY+f.aM+f.aI+f.aT+f.aO)),ab-(J+T+f.be+f.aV+f.aQ+f.aG+f.aX+f.aK));}if(j!=null){eA(j,ak-aP,ab-J);}};function ei(r,n,t,j){var cB;var ak;var ab;var aP;var J;var T;cB=window.document;ak=r.offsetWidth;ab=r.offsetHeight;if(n!=null){T=n.offsetHeight;}else{T=0;}if(j!=null){aP=j.offsetWidth;J=j.offsetHeight;}else{aP=0;J=0;}if(t!=null){dz(t,r.clientWidth-(f.aT+f.aO),r.clientHeight-(J+T+f.aX+f.aK));}if(j!=null){eA(j,r.clientWidth-aP,r.clientHeight-J);}};function cf(cc,intClientIDSuffix){var bW=cc.childNodes.length;var am;var dJ;var C;for(C=0;C<bW;C++){am=cc.childNodes[C];if(am.nodeType==1){if(am.id!=""){am.id+="."+intClientIDSuffix;}if(am.childNodes.length>0){cf(am,intClientIDSuffix);}}}};function bS(cc){var bW=cc.childNodes.length;var am;var dJ;var C;var cQ;for(C=0;C<bW;C++){am=cc.childNodes[C];if(am.nodeType==1){cQ=am.attributes.getNamedItem("AutoClose");if(cQ!=null){if(cQ.value=="Destroy"){al(am,"click",er,false);aE(am.id,"click",er,false);}else if(cQ.value=="Hide"){al(am,"click",eJ,false);aE(am.id,"click",eJ,false);}}if(am.childNodes.length>0){bS(am);}}}};function dE(r,n,j,ax){var ak;var ab;var J;var T;var cO=ax[0];var da=ax[1];var dj=0;var df=0;var cT=0;var cX=0;var fJ="";if(n!=null){T=n.offsetHeight;}else{T=0;}if(j!=null){J=j.offsetHeight;}else{J=0;}if(!cG){ak=(da+f.bc+f.aY+f.aM+f.aI+f.aT+f.aO);ab=(cO+J+T+f.be+f.aV+f.aQ+f.aG+f.aX+f.aK);}else{fJ=az(t,"borderTopWidth");if(fJ!="medium"){dj=m(fJ);}else{dj=0;}fJ=az(t,"borderTopWidth");if(fJ!="medium"){df=m(fJ);}else{df=0;}fJ=az(t,"borderBottomWidth");if(fJ!="medium"){cT=m(fJ);}else{cT=0;}fJ=az(t,"borderRightWidth");if(fJ!="medium"){cX=m(fJ);}else{cX=0;}ak=(df+cX+da+f.bc+f.aY+f.aM+f.aI+f.aT+f.aO);ab=(dj+cT+cO+J+T+f.be+f.aV+f.aQ+f.aG+f.aX+f.aK);}if(aq==true){var c="----- In dE -----"+"\n";c+="IIWinWidth: "+ak+"\n";c+="da: "+da+"\n";c+="bc: "+f.bc+"\n";c+="aY: "+f.aY+"\n";c+="aM: "+f.aM+"\n";c+="aI: "+f.aI+"\n";c+="aT: "+f.aT+"\n";c+="aO: "+f.aO+"\n";c+="\n";c+="IIWinHeight: "+ab+"\n";c+="cO: "+cO+"\n";c+="J: "+J+"\n";c+="T: "+T+"\n";c+="be: "+f.be+"\n";c+="aV: "+f.aV+"\n";c+="aQ: "+f.aQ+"\n";c+="aG: "+f.aG+"\n";c+="aX: "+f.aX+"\n";c+="aK: "+f.aK+"\n";var Z=document.getElementById("txtIIWinErrorDisplay");Z.value+=c;}if(r!=null){dz(r,ak,ab);}};function dr(M,aH){var ai=new Array(2);var c="";var g=false;var Q=document.getElementById("BodySizeTester");var ay=0;var cD=0;var ag="";var P="";var Y="";var L="";var bg=0;var aC=0;var aw=new Array();var cg=0;var aB;var k;if(document.compatMode=="CSS1Compat"){aB=aL("aR");}else{aB=aL("aS");}if(!Q){Q=document.createElement("div");Q.style.top="5000px";Q.style.left="5000px";Q.id="BodySizeTester";Q.style.visibility="hidden";document.body.appendChild(Q);}Q.innerHTML="";if(typeof(M)!="object"){dC=M;Q.innerHTML=dC;}else{dC=M.cloneNode(true);Q.appendChild(dC);}cD=Q.childNodes.length;for(ay=0;ay<cD;ay++){ap=Q.childNodes[ay];if(ap.nodeType==1){aC++;}}for(ay=0;ay<cD;ay++){ap=Q.childNodes[ay];if(ap.nodeType==1){bg++;ag=ap.style.marginTop;if(ag!=""){k=ag.match(aB);if(k==null){if(aH==true){c+="The units for the top margin for "+(bg)+" of "+aC+" elements in the content provided for the body need to be in pixels (px) for AutoSize to work properly ."+"\n"}}}P=ap.style.marginLeft;if(P!=""){k=P.match(aB);if(k==null){if(aH==true){c+="The units for the left margin for "+(bg)+" of "+aC+" elements in the content provided for the body need to be in pixels (px) for AutoSize to work properly ."+"\n"}}}Y=ap.style.marginBottom;if(Y!=""){k=Y.match(aB);if(k==null){if(aH==true){c+="The units for the bottom margin for "+(bg)+" of "+aC+" elements in the content provided for the body need to be in pixels (px) for AutoSize to work properly ."+"\n"}}}L=ap.style.marginRight;if(L!=""){k=L.match(aB);if(k==null){if(aH==true){c+="The units for the right margin for "+(bg)+" of "+aC+" elements in the content provided for the body need to be in pixels (px) for AutoSize to work properly ."+"\n"}}}if(ag!=""||P!=""||Y!=""||L!=""){if(aC==1){if(ap.tagName.toLowerCase()=="table"){c+="--Margin Properties--"+"\n";c+="Top: "+ag+"\n";c+="Left: "+P+"\n";c+="Bottom: "+Y+"\n";c+="Right: "+L+"\n";c+="This element is a table. "+"\n";c+="Styled margins, or setting the align attribute for tables causes problems for IIWin AutoSize functionality in Firefox. (offsetWidth is erroneously reported as the width of the parent object). "+"\n";}}else{if(ap.tagName.toLowerCase()=="table"){c+="At least one margin has been set for element number "+(bg)+" of "+aC+" elements in the content provided for the body."+"\n";c+="--Margin Properties--"+"\n";c+="Top: "+ag+"\n";c+="Left: "+P+"\n";c+="Bottom: "+Y+"\n";c+="Right: "+L+"\n";c+="This element is a table. "+"\n";c+="Styled margins, or setting the align attribute for tables causes problems for IIWin AutoSize functionality in Firefox. (offsetWidth is erroneously reported as the width of the parent object). "+"\n";}}}if(ap.className!=""){aw[cg]=ap.className;cg++;}if(ap.tagName.toLowerCase()=="table"&&ap.align!=""){c+="This element is a table. "+"\n";c+="Styled margins, or setting the align attribute for tables causes problems for IIWin AutoSize functionality in Firefox. (offsetWidth is erroneously reported as the width of the parent object). "+"\n";}ag="";P="";Y="";L="";}}ai[0]=c;ai[1]=g;ai[2]=aw;return ai;};function eo(M){var ek;var ap;var dn="";var dx="";var cq=0;var bO=0;var cJ=0;var ax=new Array(2);var k;var cU=false;var bv=aL("bv");var fg="";var ay=0;var cD=0;var ae="";var P="";var L="";var bZ=0;var bV=0;var ag="";var Y="";var dg=0;var cL=0;var bi=0;var bC=0;var cC=0;var aA=0;var aC=0;var aB;if(document.compatMode=="CSS1Compat"){aB=aL("aR");}else{aB=aL("aS");}var Q=document.getElementById("BodySizeTester");if(!Q){Q=document.createElement("div");document.body.appendChild(Q);Q.style.top="5000px";Q.style.left="5000px";Q.id="BodySizeTester";Q.style.visibility="hidden";}Q.innerHTML="";if(typeof(M)!="object"){ek=M;Q.innerHTML=ek;}else{ek=M.cloneNode(true);Q.appendChild(ek);}var Z=document.getElementById("txtIIWinErrorDisplay");if(aq==true){ae="----- In eo -----"+"\n";}cD=Q.childNodes.length;for(ay=0;ay<cD;ay++){ap=Q.childNodes[ay];if(ap.nodeType==1){aC++;if(aq==true){ae+="node number: "+ay+"\n";ae+="  ap.offsetWidth: "+ap.offsetWidth+"\n";ae+="  ap.offsetHeight: "+ap.offsetHeight+"\n";}dn=ap.style.height;if(dn!=""){k=dn.match(bv);if(k!=null){cU=true;}else{cq=ap.offsetHeight;}}else{cq=ap.offsetHeight;}dx=ap.style.width;if(dx!=""){k=dx.match(bv);if(k!=null){cU=true;}else{bO=ap.offsetWidth;}}else{bO=ap.offsetWidth;}if(cU){if(cq==0){ap.style.height="";cq=ap.offsetHeight;}if(bO==0){ap.style.width="";bO=ap.offsetWidth;}}ag=az(ap,"marginTop");k=ag.match(aB);if(k!=null){dg=m(ag);}Y=az(ap,"marginBottom");k=Y.match(aB);if(k!=null){cL=m(Y);}bi+=(dg+cL);P=az(ap,"marginLeft");k=P.match(aB);if(k!=null){bZ=m(P);}L=az(ap,"marginRight");k=L.match(aB);if(k!=null){bV=m(L);}bO+=(bZ+bV);if(aq==true){ae+="  P: "+P+"\n";ae+="  L: "+L+"\n";}if(bO>cJ){cJ=bO;}bC+=cq;dn="";dx="";cq=0;bO=0;P="";L="";bZ=0;bV=0;}}if(aq==true){ae+="Q.offsetHeight - prior to 10px div append: "+Q.offsetHeight+"\n";}var bb=document.createElement("div");Q.appendChild(bb);bb.id="bb";bb.style.height="10px";bb.style.marginTop="0px";bb.style.marginBottom="0px";bb.style.marginLeft="0px";bb.style.marginRight="0px";bb.style.paddingTop="0px";bb.style.paddingBottom="0px";bb.style.paddingLeft="0px";bb.style.paddingRight="0px";bb.style.borderWidth="0px";bb.innerHTML="Test";cC=Q.offsetHeight-10;aA=bC+bi;if(aq==true){ae+="Q.offsetHeight - after 10px div append: "+Q.offsetHeight+"\n";ae+="Totals"+"\n";ae+="  bC: "+bC+"\n";ae+="  bi: "+bi+"\n";ae+="  offsetHeight of container div - 10: "+cC+"\n";ae+="  Total offset height and top/bottom margins: "+aA+"\n";ae+="window.navigator.appName: "+window.navigator.appName+"\n";}if(window.navigator.appName!="Opera"){if(aC>1){ax[0]=cC;if(aq==true){ae+=window.navigator.appName+" browser detected. Element node count > 1. Using offsetHeight of container div - 10 method."+"\n";}}else{ax[0]=aA;if(aq==true){ae+=window.navigator.appName+" browser detected. Element node count = 1. Using Total offset height and top/bottom margins method."+"\n";}}}else{ax[0]=aA;if(aq==true){ae+="Opera browser detected. Using Total offset height and top/bottom margins method."+"\n";}}ax[1]=cJ;if(aq==true){Z.value+=ae;}Q.innerHTML="";Q=null;return ax;};function er(e){var dq=bF(e);var r=dG(dq);var H=r.attributes.getNamedItem("intClientIDSuffix").value;var n=document.getElementById("IIWinCaptionBar."+H);var t=document.getElementById("IIWinBody."+H);var j=document.getElementById("IIWinResizerButton."+H);var w;var d;w=aj(H);d=F[w];if(typeof(d.Window_BeforeDestroy)=="function"){d.Window_BeforeDestroy(r,n,t,j);}r.style.visibility="hidden";cd(d);dp(r);F.splice(w,1);aD=aD-1;};function eJ(e){var dq=bF(e);var r=dG(dq);var H=r.attributes.getNamedItem("intClientIDSuffix").value;var n=document.getElementById("IIWinCaptionBar."+H);var t=document.getElementById("IIWinBody."+H);var j=document.getElementById("IIWinResizerButton."+H);var cx;var d;w=aj(H);d=F[w];if(typeof(d.Window_BeforeHide)=="function"){d.Window_BeforeHide(r,n,t,j);}r.style.visibility="hidden";};function cj(r){r.style.position="absolute";r.style.overflow="hidden";bD(r);};function dk(n){bD(n);};function cY(j){bD(j);};function bD(o){o.style.paddingTop="0px";o.style.paddingLeft="0px";o.style.paddingBottom="0px";o.style.paddingRight="0px";o.style.marginTop="0px";o.style.marginLeft="0px";o.style.marginBottom="0px";o.style.marginRight="0px";};function ci(t,d){var fJ="";d.be=m(az(t,"paddingTop"));d.bc=m(az(t,"paddingLeft"));d.aV=m(az(t,"paddingBottom"));d.aY=m(az(t,"paddingRight"));fJ=az(t,"borderTopWidth");if(fJ!="medium"){d.aQ=m(fJ);}else{d.aQ=0;}fJ=az(t,"borderLeftWidth");if(fJ!="medium"){d.aM=m(fJ);}else{d.aM=0;}fJ=az(t,"borderBottomWidth");if(fJ!="medium"){d.aG=m(fJ);}else{d.aG=0;}fJ=az(t,"borderRightWidth");if(fJ!="medium"){d.aI=m(fJ);}else{d.aI=0;}d.aX=m(az(t,"marginTop"));d.aT=m(az(t,"marginLeft"));d.aK=m(az(t,"marginBottom"));d.aO=m(az(t,"marginRight"));};function fi(o,dU){if(dU=="gd"){return parseInt(o.offsetWidth);}else{return parseInt(o.offsetHeight);}};function m(dU){var fc=/\D{2,}/;var dL;dL=dU.replace(fc,"");return parseInt(dL);};function eA(o,fd,fl){o.style.top=fl+'px';o.style.left=fd+'px';return;};function dS(){var ad=document.getElementById("divIIWinErrorDisplayContainer");if(!ad){ad=document.createElement("div");ad.id="divIIWinErrorDisplayContainer";document.body.appendChild(ad);var Z=document.getElementById("txtIIWinErrorDisplay");if(!Z){Z=document.createElement("textarea");Z.id="txtIIWinErrorDisplay";Z.rows=20;Z.cols=100;ad.appendChild(Z);var br=document.createElement("br");ad.appendChild(br);var bG=document.createElement("button");bG.id="cmdRemoveIIWinErrorDisplay";bG.innerHTML="Remove Error Display";bG.onclick=dO;ad.appendChild(bG);var bM=document.createElement("button");bM.id="cmdClearIIWinErrorDisplay";bM.innerHTML="Clear Error Display";bM.onclick=dT;ad.appendChild(bM);}return true;}else{return false;}};function dO(){var ad=document.getElementById("divIIWinErrorDisplayContainer");dp(ad);};function dT(){var Z=document.getElementById("txtIIWinErrorDisplay");Z.value="";};function az(fj,eu){if(fj.currentStyle){var dL=eval('fj.currentStyle.'+eu);}else{var dL=eval('document.defaultView.getComputedStyle(fj, null).'+eu);}return dL;};function ee(bL,U,O,R,V,M,ao,ah,as,bw,bJ,ab,ak,ba,an,G,ar,aF,Window_AfterInit,Window_AfterResize,Window_AfterMove,Window_BeforeHide,Window_BeforeDestroy,aa){var c="";var g=false;var ai=new Array(2);var bP=new Array(2);var ac=new Array(2);if(typeof(bL)!="boolean"){g=true;c+=l();c+="The value passed for the IsResizable parameter must be a boolean (true or false). "+"\n";c+="IsResizable is being passed as a "+typeof(bL)+" value."+"\n"}if(typeof(U)!="string"){g=true;c+=l();c+="The value passed for the ResizerButtonClassName parameter must be a string "+"\n";c+="ResizerButtonClassName is being passed as a "+typeof(U)+" value."+"\n"}if(typeof(O)!="string"){g=true;c+=l();c+="The value passed for the MovableClickElement parameter must be a string "+"\n";c+="MovableClickElement is being passed as a "+typeof(O)+" value."+"\n"}else{if(O!=""){if(O!="CaptionBar"&&O!="Body"){g=true;c+=l();c+="The value passed for the MovableClickElement parameter can either be CaptionBar or Body (case sensitive) "+"\n";c+="MovableClickElement is being passed as follows: "+O+"\n"}}}if(typeof(R)!="string"&&typeof(R)!="object"){g=true;c+=l();c+="The value passed for the CaptionBarContent parameter must either be a string or an object "+"\n";c+="CaptionBarContent is being passed as a "+typeof(R)+" value."+"\n"}else if(typeof(R)=="object"){if(R==null){g=true;c+=l();c+="The value passed for the CaptionBarContent parameter can't be null. "+"\n";c+="CaptionBarContent is being passed as a null value."+"\n"}else{if(R.tagName==undefined){g=true;c+=l();c+="The object passed for the CaptionBarContent parameter can't have an undefined tagName. "+"\n";c+="This error can happen if you haved used incorrect syntax in a call to cloneNode() or getElementById() "+"\n"}}}if(typeof(V)!="string"){g=true;c+=l();c+="The value passed for the CaptionBarClassName parameter must be a string "+"\n";c+="CaptionBarClassName is being passed as a "+typeof(V)+" value."+"\n"}if(typeof(M)!="string"&&typeof(M)!="object"){g=true;c+=l();c+="The value passed for the BodyContent parameter must either be a string or an object "+"\n";c+="BodyContent is being passed as a "+typeof(M)+" value."+"\n"}else if(typeof(M)=="object"){if(M==null){g=true;c+=l();c+="The value passed for the BodyContent parameter can't be null. "+"\n";c+="BodyContent is being passed as a null value."+"\n"}else{if(M.tagName==undefined){g=true;c+=l();c+="The object passed for the BodyContent parameter can't have an undefined tagName. "+"\n";c+="This error can happen if you haved used incorrect syntax in a call to cloneNode() or getElementById() "+"\n"}}}if(typeof(ao)!="string"){g=true;c+=l();c+="The value passed for the BodyClassName parameter must be a string "+"\n";c+="BodyClassName is being passed as a "+typeof(ao)+" value."+"\n"}if(typeof(ah)!="string"){g=true;c+=l();c+="The value passed for the IIWinVisibility parameter must be a string "+"\n";c+="IIWinVisibility is being passed as a "+typeof(ah)+" value."+"\n"}else{if(ah!="visible"&&ah!="hidden"&&ah!="inherit"&&ah!=""){g=true;c+=l();c+="The value passed for the IIWinVisibility parameter can either be visible, hidden or inherit (case sensitive) "+"\n";c+="IIWinVisibility is being passed as follows: "+ah+"\n"}}if(typeof(as)!="string"){g=true;c+=l();c+="The value passed for the IIWinClassName parameter must be a string "+"\n";c+="IIWinClassName is being passed as a "+typeof(as)+" value."+"\n"}if(typeof(bJ)!="string"){g=true;c+=l();c+="The value passed for the IIWinTop parameter must be a string "+"\n";c+="IIWinTop is being passed as a "+typeof(bJ)+" value."+"\n"}else{if(bJ!=""){ac=bx(bJ,"IIWinTop",true);c+=ac[0];if(ac[1]==true){g=true;}}}if(typeof(bw)!="string"){g=true;c+=l();c+="The value passed for the IIWinLeft parameter must be a string "+"\n";c+="IIWinLeft is being passed as a "+typeof(bw)+" value."+"\n"}else{if(bw!=""){ac=bx(bw,"IIWinLeft",true);c+=ac[0];if(ac[1]==true){g=true;}}}if(typeof(ab)!="string"){g=true;c+=l();c+="The value passed for the IIWinHeight parameter must be a string "+"\n";c+="IIWinHeight is being passed as a "+typeof(ab)+" value."+"\n"}else{if(ab!=""){ac=bx(ab,"IIWinHeight",false);c+=ac[0];if(ac[1]==true){g=true;}}}if(typeof(ak)!="string"){g=true;c+=l();c+="The value passed for the IIWinWidth parameter must be a string "+"\n";c+="IIWinWidth is being passed as a "+typeof(ak)+" value."+"\n"}else{if(ak!=""){ac=bx(ak,"IIWinWidth",false);c+=ac[0];if(ac[1]==true){g=true;}}}if(typeof(ba)!="string"&&typeof(ba)!="number"){g=true;c+=l();c+="The value passed for the IIWinZIndex parameter must be a string or a number."+"\n";c+="IIWinZIndex is being passed as a "+typeof(ba)+" value."+"\n"}else{if(ba!=""){bP=bh(ba,"IIWinZIndex","All",l());c+=bP[0];if(bP[1]==true){g=true;}}}if(typeof(an)!="boolean"){g=true;c+=l();c+="The value passed for the HasWindowedControlBlocker parameter must be a boolean (true or false). "+"\n";c+="HasWindowedControlBlocker is being passed as a "+typeof(an)+" value."+"\n"}if(typeof(G)!="string"&&typeof(G)!="number"){g=true;c+=l();c+="The value passed for the WindowedControlBlockerZIndex parameter must be a string or a number."+"\n";c+="WindowedControlBlockerZIndex is being passed as a "+typeof(G)+" value."+"\n"}else{if(G!=""){bP=bh(G,"WindowedControlBlockerZIndex","All",l());c+=bP[0];if(bP[1]==true){g=true;}}}if(typeof(ar)!="boolean"){g=true;c+=l();c+="The value passed for the AutoNumberContentIDs parameter must be a boolean (true or false). "+"\n";c+="AutoNumberContentIDs is being passed as a "+typeof(ar)+" value."+"\n"}if(typeof(aF)!="boolean"){g=true;c+=l();c+="The value passed for the AutoSizeToContent parameter must be a boolean (true or false). "+"\n";c+="AutoSizeToContent is being passed as a "+typeof(aF)+" value."+"\n"}if(Window_AfterInit!=""){if(typeof(Window_AfterInit)!="function"){g=true;c+=l();c+="The value passed for the Window_AfterInit parameter must be a function. "+"\n";c+="Window_AfterInit is being passed as a "+typeof(Window_AfterInit)+" value."+"\n"}}if(Window_AfterResize!=""){if(typeof(Window_AfterResize)!="function"){g=true;c+=l();c+="The value passed for the Window_AfterResize parameter must be a function. "+"\n";c+="Window_AfterResize is being passed as a "+typeof(Window_AfterResize)+" value."+"\n"}}if(Window_AfterMove!=""){if(typeof(Window_AfterMove)!="function"){g=true;c+=l();c+="The value passed for the Window_AfterMove parameter must be a function. "+"\n";c+="Window_AfterMove is being passed as a "+typeof(Window_AfterMove)+" value."+"\n"}}if(Window_BeforeHide!=""){if(typeof(Window_BeforeHide)!="function"){g=true;c+=l();c+="The value passed for the Window_BeforeHide parameter must be a function. "+"\n";c+="Window_BeforeHide is being passed as a "+typeof(Window_BeforeHide)+" value."+"\n"}}if(Window_BeforeDestroy!=""){if(typeof(Window_BeforeDestroy)!="function"){g=true;c+=l();c+="The value passed for the Window_BeforeDestroy parameter must be a function. "+"\n";c+="Window_BeforeDestroy is being passed as a "+typeof(Window_BeforeDestroy)+" value."+"\n"}}if(typeof(aa)!="string"){c+="The value passed for the ErrorDisplayType parameter must be a string "+"\n";c+="ErrorDisplayType is being passed as a "+typeof(aa)+" value."+"\n"}else{if(aa!="alert"&&aa!="textarea"&&aa!="none"){c+="The value passed for the ErrorDisplayType parameter can either be alert or textarea or none (case sensitive) "+"\n";c+="ErrorDisplayType is being passed as follows: "+aa+"\n"}}ai[0]=c;ai[1]=g;return ai;};function bh(by,au,eb,bo){var c="";var g=false;var ai=new Array(2);var cv;var aZ="";var cK;if(eb=="All"){cv=aL("cn");aZ=au+" should contain only integers, optionally preceded by the minus sign (-)"+"\n";}else if(eb=="PositiveOnly"){cv=aL("ck");aZ=au+" should contain only positive integers."+"\n";}else if(eb=="NegativeOnly"){cv=aL("cl");aZ=au+" should contain only negative integers."+"\n";}var k;if(typeof(by)=="string"){k=by.match(cv);if(k==null){g=true;c+=bo;c+="The value passed for the "+au+" parameter contains one or more illegal characters."+"\n";c+=aZ;c+=au+" is being passed as follows: "+by+"\n"}}else{cK=by+"";k=cK.match(cv);if(k==null){g=true;c+=bo;c+="The value passed for the "+au+" parameter contains one or more illegal characters."+"\n";c+=aZ;c+=au+" is being passed as follows: "+by+"\n"}if(Math.floor(by)!=by){g=true;c+=bo;c+="The value passed for the "+au+" parameter contains one or more illegal characters."+"\n";c+=aZ;c+=au+" is being passed as follows: "+by+"\n"}}ai[0]=c;ai[1]=g;return ai;};function bx(cK,au,ev){var c="";var g=false;var ai=new Array(2);var k;var dI;var bk=aL("bk");var bj=aL("bj");var cs=aL("cs");if(!ev){if(cK.indexOf("-")!= -1){g=true;c+=l();c+="The value passed for the "+au+" parameter must not begin with a - sign"+"\n"}}dI=cK.match(cs);if(dI!=null){c+="The value passed for the "+au+" parameter contains one or more whitespace characters."+"\n";c+="Some browsers will ignore values that contain whitespace. "+"\n"}if(document.compatMode=="CSS1Compat"){k=cK.match(bk);if(k==null){g=true;c+=l();c+="The value passed for the "+au+" parameter must be a number followed by any of the valid CSS units (cm,mm,in,pt,pc,em,ex,px,%)"+"\n";c+="If the unit is px (pixels), the number value must be an integer, not a decimal. "+"\n";c+=au+" is being passed as follows: "+cK+"\n"}}else{k=cK.match(bj);if(k==null){g=true;c+=l();c+="The value passed for the "+au+" parameter must be a number followed by any of the valid CSS units (cm,mm,in,pt,pc,em,ex,px,%), or just a number (units will default to pixels) "+"\n";c+="If the unit is px (pixels), the number value must be an integer, not a decimal. "+"\n";c+=au+" is being passed as follows: "+cK+"\n"}}ai[0]=c;ai[1]=g;return ai;};function aL(bA){var bk=/(^([-]{0,1})+([0-9]{1,}|[.]{1})+([0-9]{1,})+((cm)|(mm)|(in)|(pt)|(pc)|(em)|(ex)|(%))$)|(^([-]{0,1})+([0-9]{1,})+(px)$)/;var bj=/(^([-]{0,1})+([0-9]{1,}|[.]{1})+([0-9]{1,})+((cm)|(mm)|(in)|(pt)|(pc)|(em)|(ex)|(%))$)|(^([-]{0,1})+([0-9]{1,})+(px)$)|(^([-]{0,1})+([0-9]{1,})$)/;var cs=/\s/;var aR=/(^([-]{0,1})+([0-9]{1,})+(px)$)/;var aS=/(^([-]{0,1})+([0-9]{1,})+(px)$)|(^([-]{0,1})+([0-9]{1,})$)/;var cn=/(^([-]{0,1})+([0-9]{1,})$)/;var bv=/%$/;var ck=/(^([0-9]{1,})$)/;var cl=/(^([-]{1})+([0-9]{1,})$)/;if(bA=="bk"){return bk;}else if(bA=="bj"){return bj;}else if(bA=="cs"){return cs;}else if(bA=="aR"){return aR;}else if(bA=="aS"){return aS;}else if(bA=="cn"){return cn;}else if(bA=="bv"){return bv;}else if(bA=="ck"){return ck;}else if(bA=="cl"){return cl;}};function ez(as,V,ao,U,aw,aH,fS){var cR;var ej=document.styleSheets.length;var dc;var co;var cA;var bB;var A;var ai=new Array(2);var c="";var bN=new Array(2);var g=false;var dm=false;var cE=false;var du=false;var cu=false;var eK=0;var bf;var dD=aw.length;var aB;var k;if(document.compatMode=="CSS1Compat"){aB=aL("aR");}else{aB=aL("aS");}if(ej==0){g=true;c+=l();c+="There are no style sheets or blocks properly linked or embedded in the page."+"\n";c+="IIWinDefaultStyles.css has not been properly linked to the page."+"\n"}if(as==""){as="IIWinDefault";}if(ao==""){ao="IIWinBodyDefault";}if(V==""){V="IIWinCaptionBarDefault";}if(U==""){U="IIWinResizerButtonDefault";}for(cR=0;cR<ej;cR++){cA=document.styleSheets[cR];co=dw(cA);for(dc=0;dc<co;dc++){bB=eF(cA,dc);A=dA(bB.selectorText);if(A==as){dm=true;c+=bE(bB.style,A);if(bB.style.position!=""){if(bB.style.position!="absolute"){c+="The position property for the style rule applied to the main IIWin container object must be set to absolute."+"\n";c+="IIWin code has assured this property, this is why you don't see the style you set in the rendered window."+"\n\n";}}if(bB.style.overflow!=""){if(bB.style.overflow!="hidden"){c+="The overflow property for the style rule applied to the main IIWin container object must be set to hidden."+"\n";c+="IIWin code has assured this property, this is why you don't see the style you set in the rendered window."+"\n\n";}}if(bB.style.left==""&&fS.Left==""){c+=l();c+="Either the CSS left property or the IIWinLeft parameter must be set."+"\n";g=true;}if(bB.style.top==""&&fS.Top==""){c+=l();c+="Either the CSS top property or the IIWinTop parameter must be set."+"\n";g=true;}if(bB.style.height==""&&fS.ge==""){c+=l();c+="Either the height property or the IIWinHeight parameter must be set."+"\n";g=true;}if(bB.style.width==""&&fS.gd==""){c+=l();c+="Either the width property or the IIWinWidth parameter must be set."+"\n";g=true;}}if(A==V){cE=true;c+=bE(bB.style,A);}if(A==ao){du=true;c+=dV(bB.style,A);bN=dQ(bB.style,A);c+=bN[0];if(bN[1]==true){g=true;}}if(A==U){cu=true;c+=bE(bB.style,A);}for(bf=0;bf<dD;bf++){if(A==aw[bf]){if(bB.style.marginTop!=""){k=bB.style.marginTop.match(aB);if(k==null){if(aH==true){c+="The units for the top margin for the "+A+" style rule need to be in pixels (px) for AutoSize to work properly."+"\n"}}}if(bB.style.marginLeft!=""){k=bB.style.marginLeft.match(aB);if(k==null){if(aH==true){c+="The units for the left margin for the "+A+" style rule need to be in pixels (px) for AutoSize to work properly."+"\n"}}}if(bB.style.marginBottom!=""){k=bB.style.marginBottom.match(aB);if(k==null){if(aH==true){c+="The units for the bottom margin for the "+A+" style rule need to be in pixels (px) for AutoSize to work properly."+"\n"}}}if(bB.style.marginRight!=""){k=bB.style.marginRight.match(aB);if(k==null){if(aH==true){c+="The units for the right margin for the "+A+" style rule need to be in pixels (px) for AutoSize to work properly."+"\n"}}}}}}}if(dm==false){g=true;c+=l();c+="The CSS style rule "+as+" was not found in any of the document's style sheets or blocks."+"\n"}if(du==false){g=true;c+=l();c+="The CSS style rule "+ao+" was not found in any of the document's style sheets or blocks."+"\n"}if(cu==false){g=true;c+=l();c+="The CSS style rule "+U+" was not found in any of the document's style sheets or blocks."+"\n"}if(cE==false){g=true;c+=l();c+="The CSS style rule "+V+" was not found in any of the document's style sheets or blocks."+"\n"}ai[0]=c;ai[1]=g;return ai;};function eF(cA,eN){if(cA.rules){return cA.rules[eN];}else if(cA.cssRules){return cA.cssRules[eN];}return "";};function dw(cA){var co=0;if(cA.rules){co=cA.rules.length;}else if(cA.cssRules){co=cA.cssRules.length;}return co;};function dA(A){var ea=A.indexOf(".");if(ea!= -1){A=A.substr(ea+1);}return A;};function l(){return "Critical error found, can't create the IIWin window."+"\n";};function dQ(dW,A){var bz;var eQ;var k;var ff;var c="";var g=false;var ai=new Array(2);var aR=aL("aR");var aS=aL("aS");var bk=aL("bk");var bj=aL("bj");var cs=aL("cs");var fn;var B=new Array(12);B[0]="paddingTop";B[1]="paddingLeft";B[2]="paddingBottom";B[3]="paddingRight";B[4]="borderTopWidth";B[5]="borderLeftWidth";B[6]="borderBottomWidth";B[7]="borderRightWidth";B[8]="marginTop";B[9]="marginLeft";B[10]="marginBottom";B[11]="marginRight";var C;var eX;var fo;for(C=0;C<12;C++){bz=eval("dW."+B[C]);if(bz!=""){if(document.compatMode=="CSS1Compat"){k=bz.match(aR);if(k==null){g=true;c+=l();c+="Units for the CSS style rule "+A+"."+B[C]+" property must be expressed in pixels (px) for the IIWin to function correctly."+"\n";c+="The page is getting the "+A+"."+B[C]+" property as follows: "+bz+"\n";}}else{k=bz.match(aS);if(k==null){g=true;c+=l();c+="Units for the CSS style rule "+A+"."+B[C]+" property should either be expressed in pixels (px) or not specified at all (px is assumed), for the IIWin to function correctly."+"\n";c+="The page is getting the "+A+"."+B[C]+" property as follows: "+bz+"\n";}}dI=bz.match(cs);if(dI!=null){c+="The value for the CSS style rule "+A+"."+B[C]+" property contains one or more whitespace characters."+"\n";c+="Some browsers will ignore values that contain whitespace. "+"\n"}}else{c+="The page is getting the CSS style rule "+A+"."+B[C]+" property as follows: ''"+"\n";c+="     Some browsers will change a CSS value to '' if the value can't be used by the browser."+"\n";c+="     If you feel that you have supplied a value for a CSS rule, and it is being "+"\n";c+="     reported here as '', this is probably why.  Make sure that the value you supply "+"\n";c+="     is an integer followed by px with no spaces, such as 10px."+"\n"}}ai[0]=c;ai[1]=g;return ai;};function dV(dW,A){var bz;var c="";var de=new Array(2);de[0]="height";de[1]="width";for(C=0;C<2;C++){bz=eval("dW."+de[C]);if(bz!=""){c+="You tried to set a value for the "+A+"."+de[C]+" property."+"\n";c+="IIWin code changes this property each time the window is drawn, this is why you don't see the style you set in the rendered window."+"\n";}}return c;};function bE(dW,A){var bz;var c="";var aU=new Array(8);aU[0]="paddingTop";aU[1]="paddingLeft";aU[2]="paddingBottom";aU[3]="paddingRight";aU[4]="marginTop";aU[5]="marginLeft";aU[6]="marginBottom";aU[7]="marginRight";for(C=0;C<8;C++){bz=eval("dW."+aU[C]);if(bz!=""){if(bz!="0px"){c+="The value for the "+A+"."+aU[C]+" property must be 0px"+"\n";c+="IIWin code has assured this property, this is why you don't see the style you set in the rendered window."+"\n\n";}}}return c;};function dz(o,eP,eI){if(eP>0&&eI>0){o.style.width=eP+'px';o.style.height=eI+'px';}return;};function cM(e){if(document.attachEvent){e.returnValue=false;}else{preventDefault();}};function al(o,bl,dF,ct){if(document.attachEvent){bl="on"+bl;o.attachEvent(bl,dF);}else{o.addEventListener(bl,dF,ct);}};function aN(o,bl,dF,ct){if(document.attachEvent){bl="on"+bl;o.detachEvent(bl,dF);}else{o.removeEventListener(bl,dF,ct);}};function aE(fp,bl,dF,ct){var bu=[fp,bl,dF,ct];f.bQ[f.dh]=bu;f.dh++;};function cd(d){var bQ=d.bQ;var bu=[,,,];var bW=bQ.length;var C;var o;for(C=0;C<bW;C++){bu=bQ[C];o=document.getElementById(bu[0]);if(o!=null){aN(o,bu[1],bu[2],bu[3]);}}};function bF(e){var o;if(document.attachEvent){o=e.srcElement;}else{o=e.target;}return o;};function ew(o,ec){for(i=0;i<ec;i++){o=o.parentNode;}return o;};function dG(o){var bR=false;var bt;bt=o.attributes.getNamedItem("IIWin");if(bt!=null){return o;}while(bR==false){o=o.parentNode;bt=o.attributes.getNamedItem("IIWin");if(bt!=null){bR=true;}}return o;};function ce(eR,ep){var bW=eR.childNodes.length;var am;var dJ;var eq=ep.length;for(C=0;C<bW;C++){am=eR.childNodes[C];dJ=am.id;if(dJ.substr(0,eq)==ep){return am;}}return null;};function dp(o){var cF=document.getElementById("IELeakGarbageBin");if(!cF){cF=document.createElement("div");cF.id="IELeakGarbageBin";cF.style.display="none";document.body.appendChild(cF);}cF.appendChild(o);cF.innerHTML="";};function fe(o,dB,cw){ef.value+="objElement.offsetLeft:"+o.offsetLeft+"\n";ef.value+="dB:"+dB+"\n";ef.value+="objElement.clientRight:"+(o.offsetLeft+o.clientWidth)+"\n";ef.value+="objElement.offsetTop:"+o.offsetTop+"\n";ef.value+="cw:"+cw+"\n";ef.value+="objElement.clientBottom:"+(o.clientTop+o.clientHeight)+"\n";ef.value+="===================================="+"\n";if(dB>=o.offsetLeft&&cw<=(o.offsetLeft+o.clientWidth)){if(cw>=o.clientTop&&cw<=(o.clientTop+o.clientHeight)){return true;}else{return false;}}else{return false;}};function dP(){var cB=window.document;aN(cB,"mousemove",ed,false);aN(cB,"mouseup",dN,false);};function bY(e){e=(e)?e:((window.event)?window.event:"");var cB=window.document;var eG=bF(e);var w;var intClientIDSuffix;bd=dG(eG);intClientIDSuffix=parseInt(bd.attributes.getNamedItem("intClientIDSuffix").value);w=aj(intClientIDSuffix);f=F[w];bK=ce(bd,"IIWinCaptionBar");cI=ce(bd,"IIWinBody");cj(bd);al(cB,"mousemove",ed,false);al(cB,"mouseup",dN,false);f.ds=e.clientX;f.dv=e.clientY;cM(e);};function ed(e){e=(e)?e:((window.event)?window.event:"");f.eh=e.clientX-f.ds;f.eg=e.clientY-f.dv;var fh=bd.offsetLeft+f.eh;var fk=bd.offsetTop+f.eg;eA(bd,fh,fk);f.ds=e.clientX;f.dv=e.clientY;if(typeof(f.Window_AfterMove)=="function"){f.Window_AfterMove(bd,bK,cI,bp);}cM(e);};function dN(e){e=(e)?e:((window.event)?window.event:"");var cB=window.document;aN(cB,"mousemove",ed,false);aN(cB,"mouseup",dN,false);bd=null;cM(e);};function dX(e){e=(e)?e:((window.event)?window.event:"");var cB=window.document;var intClientIDSuffix;var w;bp=bF(e);bd=ew(bp,1);intClientIDSuffix=parseInt(bd.attributes.getNamedItem("intClientIDSuffix").value);w=aj(intClientIDSuffix);f=F[w];bK=ce(bd,"IIWinCaptionBar");cI=ce(bd,"IIWinBody");ci(cI,f);cj(bd);al(cB,"mousemove",en,false);al(cB,"mouseup",cN,false);al(cB,"mouseout",cN,false);f.ds=e.clientX;f.dv=e.clientY;cM(e);};function en(e){e=(e)?e:((window.event)?window.event:"");f.eh=e.clientX-f.ds;f.eg=e.clientY-f.dv;if(!cG){dz(bd,bd.clientWidth+f.eh,bd.clientHeight+f.eg);eE(bd,bK,cI,bp);}else{dz(bd,bd.offsetWidth+f.eh,bd.offsetHeight+f.eg);ei(bd,bK,cI,bp);}f.ds=e.clientX;f.dv=e.clientY;if(typeof(f.Window_AfterResize)=="function"){f.Window_AfterResize(bd,bK,cI,bp);}cM(e);};function cN(e){e=(e)?e:((window.event)?window.event:"");var cB=window.document;aN(cB,"mousemove",en,false);aN(cB,"mouseup",cN,false);aN(cB,"mouseout",cN,false);bd=null;cM(e);};function D(dY,fu,eD,ca,bs){var k=new Array(2);var c="";var g=false;var intClientIDSuffix=parseInt(this.ClientIDSuffix);var w;var d;var r=document.getElementById("IIWin."+intClientIDSuffix);k=bq(dY,"dY","Critical error found, can't fade the IIWin.");if(k[1]==true){g=true;c+=k[0];}k=bq(fu,"fu","Critical error found, can't fade the IIWin.");if(k[1]==true){g=true;c+=k[0];}k=bq(eD,"eD","Critical error found, can't fade the IIWin.");if(k[1]==true){g=true;c+=k[0];}k=fa(ca,"Critical error found, can't fade the IIWin.");if(k[1]==true){g=true;c+=k[0];}k=fs(bs);if(k[1]==true){g=true;c+=k[0];}if(g==true){return c;}X(r,dY);w=aj(intClientIDSuffix);d=F[w];d.fB=dY;d.fv=dY;d.bn=fu;if(fu-dY>=0){d.av=eD;}else{d.av=0-eD;}d.fr=ca;d.aW=bs;af(intClientIDSuffix);return "";};function af(intClientIDSuffix){var dR;var w;var d;var r;var at;var aJ;r=document.getElementById("IIWin."+intClientIDSuffix);if(r==null||r==undefined){return;}w=aj(intClientIDSuffix);d=F[w];aJ=d.fB;if(d.av>0){at=aJ>=d.bn;}else{at=aJ<=d.bn;}if(!at){if((aJ+d.av)>100){X(r,100);d.fB=100;dR=window.setTimeout("af("+intClientIDSuffix+")",d.fr);}else if((aJ+d.av)<0){X(r,0);d.fB=0;dR=window.setTimeout("af("+intClientIDSuffix+")",d.fr);}else{X(r,aJ+d.av);d.fB+=d.av;dR=window.setTimeout("af("+intClientIDSuffix+")",d.fr);}}else{if(d.aW=="Destroy"){d.Destroy(r);}else if(d.aW=="Hide"){d.Hide(r);}return true;}};function fy(r){var k=new Array(2);var fL={Opacity: -1,ErrorMessage:""};var intClientIDSuffix=parseInt(this.ClientIDSuffix);var w;var d;k=el(r);if(k[1]==true){fL.ErrorMessage=k[0];return fL;}w=aj(intClientIDSuffix);d=F[w];if(d.fB!=undefined){fL.Opacity=d.fB;}else{fL.Opacity=100;}return fL};function fz(r,Opacity){var k=new Array(2);var c="";var g=false;var intClientIDSuffix=parseInt(this.ClientIDSuffix);var w;var d;k=el(r);if(k[1]==true){g=true;c+=k[0];}k=bq(Opacity,"Opacity","Critical error found, can't fade the IIWin.");if(k[1]==true){g=true;c+=k[0];}if(g){return c;}r.style.filter="progid:DXImageTransform.Microsoft.Alpha( style=0,opacity="+Opacity+")";r.style.MozOpacity=Opacity/100;r.style.KhtmlOpacity=Opacity/100;r.style.opacity=Opacity/100;w=aj(intClientIDSuffix);d=F[w];d.fB=Opacity;return "";};function fx(r){var k=new Array(2);var c="";var g=false;var intClientIDSuffix=parseInt(this.ClientIDSuffix);var w;var d;k=el(r);if(k[1]==true){g=true;c+=k[0];}if(g){return c;}r.style.filter="";r.style.MozOpacity="";r.style.KhtmlOpacity="";r.style.opacity="";w=aj(intClientIDSuffix);d=F[w];d.fB=100;return "";};function v(r){if(r.filters){if(r.filters[0]){if(r.style.filter.indexOf("Microsoft.Alpha")!= -1){return r.filters.item("DXImageTransform.Microsoft.Alpha").Opacity;}else{return 100;}}else{return 100;}}else if(r.style.MozOpacity){return parseInt(r.style.MozOpacity*100);}else if(r.style.KhtmlOpacity){return r.style.KhtmlOpacity*100;}else if(r.style.opacity){return r.style.opacity*100;}else{return 100;}};function X(r,Opacity){r.style.filter="progid:DXImageTransform.Microsoft.Alpha( style=0,opacity="+Opacity+")";r.style.MozOpacity=Opacity/100;r.style.KhtmlOpacity=Opacity/100;r.style.opacity=Opacity/100;};function bq(fI,au,bo){var k=new Array(2);var c="";var g=false;if(typeof(fI)!="number"){g=true;c+="The value for the "+au+" parameter can only be passed as an integer."+"\n";c+=au+" is currently being passed as an "+typeof(fI)+" value."+"\n";}else{k=bh(fI,au,"PositiveOnly",bo);if(k[1]==true){g=true;c+=k[0]+"\n";}else{if(fI<0||fI>100){g=true;c+="The integer for the "+au+" parameter must be between 0 and 100."+"\n";c+=au+" is currently being passed as follows "+fI+"."+"\n";}}}k[0]=c;k[1]=g;return k;};function fw(bm,bo){var k=new Array(2);var c="";var g=false;if(typeof(bm)!="number"){g=true;c+="The value for the PixelInterval parameter can only be passed as an integer."+"\n";c+="PixelInterval is currently being passed as an "+typeof(bm)+" value."+"\n"}else{k=bh(bm,"PixelInterval","PositiveOnly",bo);if(k[1]==true){g=true;c+=k[0]+"\n";}}k[0]=c;k[1]=g;return k;};function fa(ca,bo){var k=new Array(2);var c="";var g=false;if(typeof(ca)!="number"){g=true;c+="The value for the TimeInterval parameter can only be passed as an integer."+"\n";c+="TimeInterval is currently being passed as an "+typeof(ca)+" value."+"\n"}else{k=bh(ca,"TimeInterval","PositiveOnly",bo);if(k[1]==true){g=true;c+=k[0]+"\n";}}k[0]=c;k[1]=g;return k;};function fs(bs){var k=new Array(2);var c="";var g=false;if(typeof(bs)!="string"){g=true;c+="The value for the CloseAction parameter can only be passed as an string."+"\n";c+="CloseAction is currently being passed as an "+typeof(bs)+" value."+"\n"}else{if(bs!=""){if(bs!="Hide"&&bs!="Destroy"){g=true;c+="The value for the CloseAction parameter can only be Hide or Destroy."+"\n";c+="CloseAction is currently being passed as follows: "+bs+"\n";}}}k[0]=c;k[1]=g;return k;};function eC(ey,et,eS,eH,bX,bm,ca,bs){var c="";var g=false;var k=new Array(3);var db=new Array(2);var intClientIDSuffix=parseInt(this.ClientIDSuffix);var w;var r=document.getElementById("IIWin."+intClientIDSuffix);var d;w=aj(intClientIDSuffix);d=F[w];k=bH(ey,"StartTop");if(k[1]==true){g=true;c+=k[0];}else{if(k[2]=="number"){d.cH=ey;}else{d.cH=m(r.style.top);}}k=bH(et,"StartLeft");if(k[1]==true){g=true;c+=k[0];}else{if(k[2]=="number"){d.cy=et;}else{d.cy=m(r.style.left);}}k=bH(eS,"EndTop");if(k[1]==true){g=true;c+=k[0];}else{if(k[2]=="number"){d.cZ=eS;}else{d.cZ=m(r.style.top);}}k=bH(eH,"EndLeft");if(k[1]==true){g=true;c+=k[0];}else{if(k[2]=="number"){d.cS=eH;}else{d.cS=m(r.style.left);}}if(typeof(bX)!="string"){g=true;c+="The value for the MoveStyle parameter can only be passed as a string (HV or VH)."+"\n";c+="MoveStyle is currently being passed as an "+typeof(bX)+" value."+"\n";}else{if(bX!="HV"&&bX!="VH"){g=true;c+="The value for the MoveStyle parameter can only be HV or VH."+"\n";c+="MoveStyle is currently being passed as follows: "+bX+"\n";}}k=fw(bm,"Critical error found, can't move the IIWin.");if(k[1]==true){g=true;c+=k[0];}k=fa(ca,"Critical error found, can't move the IIWin.");if(k[1]==true){g=true;c+=k[0];}k=fs(bs);if(k[1]==true){g=true;c+=k[0];}if(g==true){return c;}d.eL=bX;d.bU=ca;d.cP=bs;if((d.cZ-d.cH)>0){d.cb=bm;}else{d.cb=(0-bm);}if((d.cS-d.cy)>0){d.bT=bm;}else{d.bT=(0-bm);}if(d.cH!=m(r.style.top)){r.style.top=d.cH+"px"}if(d.cy!=m(r.style.left)){r.style.left=d.cy+"px"}dK(intClientIDSuffix);return "";};function bH(by,au){var c="";var g=false;var ai=new Array(2);var k=new Array(3);if(typeof(by)=="number"){ai=bh(by,au,"All","Critical error found, can't move the IIWin.");k[0]=ai[0];k[1]=ai[1];k[2]="number"}else if(typeof(by)=="string"){if(by!="UseCurrent"){k[0]="If the value for the "+au+" parameter is passed as a string, it can only be UseCurrent."+"\n";k[1]=true;k[2]="string";}}else{k[0]="The value for the "+au+" parameter can only be passed as an integer, or the string UseCurrent."+"\n";k[0]+=au+" is currently being passed as an "+typeof(by)+" value."+"\n";k[1]=true;k[2]="string";}return k;};function eO(dZ,es){var bo=l();if(dZ.indexOf(bo)!= -1){dZ=dZ.replace(bo,es);}return dZ;};function dK(intClientIDSuffix){var dR;var w;var d;var r;var t;var n;var j;var di;var cW;var dy;var dM;var at;r=document.getElementById("IIWin."+intClientIDSuffix);if(r==null||r==undefined){return;}t=document.getElementById("IIWinBody."+intClientIDSuffix);n=document.getElementById("IIWinCaptionBar."+intClientIDSuffix);j=document.getElementById("IIWinResizerButton."+intClientIDSuffix);di=m(r.style.top);cW=m(r.style.left);dy=0;dM=0;w=aj(intClientIDSuffix);d=F[w];if(d.eL=="HV"){if(d.bT>0){at=cW>=d.cS;}else{at=cW<=d.cS;}if(!at){dy=cW+d.bT;r.style.left=dy+"px";if(typeof(d.Window_AfterMove)=="function"){d.Window_AfterMove(r,n,t,j);}dR=window.setTimeout("dK("+intClientIDSuffix+")",d.bU);}else{if(d.cb>0){at=di>=d.cZ;}else{at=di<=d.cZ;}if(!at){dM=di+d.cb;r.style.top=dM+"px";if(typeof(d.Window_AfterMove)=="function"){d.Window_AfterMove(r,n,t,j);}dR=window.setTimeout("dK("+intClientIDSuffix+")",d.bU);}else{if(d.cP=="Destroy"){d.Destroy(r);}else if(d.cP=="Hide"){d.Hide(r);}return true;}}}else{if(d.cb>0){at=di>=d.cZ;}else{at=di<=d.cZ;}if(!at){dM=di+d.cb;r.style.top=dM+"px";if(typeof(d.Window_AfterMove)=="function"){d.Window_AfterMove(r,n,t,j);}dR=window.setTimeout("dK("+intClientIDSuffix+")",d.bU);}else{if(d.bT>0){at=cW>=d.cS;}else{at=cW<=d.cS;}if(!at){dy=cW+d.bT;r.style.left=dy+"px";if(typeof(d.Window_AfterMove)=="function"){d.Window_AfterMove(r,n,t,j);}dR=window.setTimeout("dK("+intClientIDSuffix+")",d.bU);}else{if(d.cP=="Destroy"){d.Destroy(r);}else if(d.cP=="Hide"){f.Hide(r);}return true;}}}};function eM(r){var k=new Array(2);var c="";var H;var n;var t;var j;var d;var cx;k=el(r);if(k[1]==true){c=k[0];return c}H=parseInt(r.attributes.getNamedItem("intClientIDSuffix").value);n=document.getElementById("IIWinCaptionBar."+H);t=document.getElementById("IIWinBody."+H);j=document.getElementById("IIWinResizerButton."+H);w=aj(H);d=F[w];if(typeof(d.Window_BeforeDestroy)=="function"){d.Window_BeforeDestroy(r,n,t,j);}r.style.visibility="hidden";cd(d);dp(r);F.splice(w,1);aD=aD-1;return c;};function eT(r){var k=new Array(2);var c="";var H;var n;var t;var j;var d;k=el(r);if(k[1]==true){c=k[0];return c}H=parseInt(r.attributes.getNamedItem("intClientIDSuffix").value);n=document.getElementById("IIWinCaptionBar."+H);t=document.getElementById("IIWinBody."+H);j=document.getElementById("IIWinResizerButton."+H);d=F[H];if(typeof(d.Window_BeforeHide)=="function"){d.Window_BeforeHide(r,n,t,j);}r.style.visibility="hidden";return c;};function el(r){var k=new Array(2);var c="";var g=false;if(typeof(r)!="object"){c+="The value for the IIWin parameter can only be passed as an object."+"\n";c+="IIWin is currently being passed as an "+typeof(r)+" value."+"\n";k[0]=c;k[1]=true;return k;}else{if(r==null){c+="The value for the IIWin parameter can't be passed as null."+"\n";k[0]=c;k[1]=true;return k;}if(r.tagName==undefined){c+="The object passed for the IIWin parameter can't have an undefined tagName. "+"\n";k[0]=c;k[1]=true;return k;}else{if(r.tagName.toLowerCase()!="div"){c+="The object passed for the IIWin parameter must be a div. "+"\n";c+="The tagName of the IIWin is currently set to "+r.tagName+"."+"\n";k[0]=c;k[1]=true;return k;}else{bt=r.attributes.getNamedItem("IIWin");if(bt==null){c+="The object passed for the IIWin parameter must have the IIWin expando attribute set. "+"\n";k[0]=c;k[1]=true;return k;}else{k[0]="";k[1]=false;return k;}}}}};function aj(intClientIDSuffix){var C;var bW=F.length;var d;for(C=0;C<bW;C++){d=F[C];if(d.ClientIDSuffix==intClientIDSuffix){return C;}}return-1;};function CleanupWorkspace(){var bW=F.length;var C;var d;var r;var objFunctionContainer;var ai=new Array(2);while(F.length>0){d=F[0];ai=bh(d.ClientIDSuffix,"ClientIDSuffix","PositiveOnly","Critical Error Found");if(ai[1]==false){r=document.getElementById("IIWin."+d.ClientIDSuffix);objFunctionContainer=GetFunctionContainerObject(r);if(objFunctionContainer.ErrorMessage==""){objFunctionContainer.Destroy(r);}else{break;}}}};function GetFunctionContainerObject(r){var intClientIDSuffix;var cx;var d;var c="";var k=new Array(2);var objFunctionContainer={};k=el(r);if(k[1]==true){objFunctionContainer.ErrorMessage=k[0];objFunctionContainer.ClientIDSuffix= -1;objFunctionContainer.MoveFX=null;objFunctionContainer.Hide=null;objFunctionContainer.Destroy=null;objFunctionContainer.FadeFX=null;objFunctionContainer.GetOpacity=null;objFunctionContainer.SetOpacity=null;objFunctionContainer.RemoveOpacity=null;objFunctionContainer.RegisterIIWinEventHandler=null;objFunctionContainer.GetCenteredCoordinates=null;objFunctionContainer.InitMoveWithScroll=null;objFunctionContainer.RemoveMoveWithScroll=null;return objFunctionContainer;}intClientIDSuffix=parseInt(r.attributes.getNamedItem("intClientIDSuffix").value);w=aj(intClientIDSuffix);if(w== -1){objFunctionContainer.ErrorMessage="Failed to get the handle to the d object.";objFunctionContainer.ClientIDSuffix= -1;objFunctionContainer.MoveFX=null;objFunctionContainer.Hide=null;objFunctionContainer.Destroy=null;objFunctionContainer.FadeFX=null;objFunctionContainer.GetOpacity=null;objFunctionContainer.SetOpacity=null;objFunctionContainer.RemoveOpacity=null;objFunctionContainer.RegisterIIWinEventHandler=null;objFunctionContainer.GetCenteredCoordinates=null;objFunctionContainer.InitMoveWithScroll=null;objFunctionContainer.RemoveMoveWithScroll=null;return objFunctionContainer;}d=F[w];objFunctionContainer.ErrorMessage="";objFunctionContainer.ClientIDSuffix=intClientIDSuffix;objFunctionContainer.MoveFX=d.MoveFX;objFunctionContainer.Hide=d.Hide;objFunctionContainer.Destroy=d.Destroy;objFunctionContainer.FadeFX=d.FadeFX;objFunctionContainer.GetOpacity=d.GetOpacity;objFunctionContainer.SetOpacity=d.SetOpacity;objFunctionContainer.RemoveOpacity=d.RemoveOpacity;objFunctionContainer.RegisterIIWinEventHandler=d.RegisterIIWinEventHandler;objFunctionContainer.GetCenteredCoordinates=d.GetCenteredCoordinates;objFunctionContainer.InitMoveWithScroll=d.InitMoveWithScroll;objFunctionContainer.RemoveMoveWithScroll=d.RemoveMoveWithScroll;return objFunctionContainer;};function cp(bl,fK){var g=false;var c="";var intClientIDSuffix=parseInt(this.ClientIDSuffix);var w;var d;if(typeof(bl)!="string"){g=true;c+="The value for the fA parameter can only be passed as a string."+"\n";c+="(Window_AfterResize, Window_AfterMove, Window_BeforeHide, Window_BeforeDestroy)."+"\n";c+="fA is currently being passed as an "+typeof(fA)+" value."+"\n";}else{if(bl!="Window_AfterResize"&&bl!="Window_AfterMove"&&bl!="Window_BeforeHide"&&bl!="Window_BeforeDestroy"){g=true;c+="The value for the fA parameter can only be one of 4 values:"+"\n";c+="(Window_AfterResize, Window_AfterMove, Window_BeforeHide, Window_BeforeDestroy)."+"\n";c+="fA is currently being passed as follows: "+fA+"\n";}}if(fK!==""){if(typeof(fK)!="function"){g=true;c+="The value for the Function parameter if not set to a blank string, can only be passed as a function "+"\n";c+="Function is currently being passed as an "+typeof(fK)+" value."+"\n";}}if(g){return c;}w=aj(intClientIDSuffix);d=F[w];switch(bl){case "Window_AfterResize":d.Window_AfterResize=fK;break;case "Window_AfterMove":d.Window_AfterMove=fK;break;case "Window_BeforeHide":d.Window_BeforeHide=fK;break;case "Window_BeforeDestroy":d.Window_BeforeDestroy=fK;break}return c;};function ft(r){var k=new Array(2);var c="";var g=false;var fD=0;var fC=0;var cB=window.document;var fG=0;var fE=0;var fl=0;var fd=0;var fH={ErrorMessage:"",Top:0,Left:0};k=el(r);if(k[1]==true){g=true;c+=k[0];}if(g){fH.ErrorMessage=c;return fH;}if(typeof window.innerWidth!="undefined"){fD=window.innerWidth;fC=window.innerHeight;}else{if(cB.documentElement&&typeof(cB.documentElement.clientWidth)!="undefined"&&cB.documentElement.clientWidth!=0){fD=cB.documentElement.clientWidth;fC=cB.documentElement.clientHeight;}else{if(cB.body&&typeof(cB.body.clientWidth)!="undefined"){fD=cB.body.clientWidth;fC=cB.body.clientHeight;}}}fG=Math.floor(fC/2);fF=Math.floor(fD/2);fl=fG-(Math.floor(r.offsetHeight/2));fd=fF-(Math.floor(r.offsetWidth/2));fH.Top=fl;fH.Left=fd;return fH;};function fZ(fP){var c="";var g=false;var intClientIDSuffix=parseInt(this.ClientIDSuffix);var w;var d;var r=document.getElementById("IIWin."+intClientIDSuffix);var fO;var fV={scrollX:0,scrollY:0};if(typeof(fP)!="string"){g=true;c+="The value for the ScrollObject parameter can only be passed as a string. "+"\n";c+="ScrollObject is currently being passed as an "+typeof(fP)+" value."+"\n";}else{if(fP!="window"&&fP!="window.parent"){g=true;c+="The value for the ScrollObject parameter can only be window or window.parent."+"\n";c+="ScrollObject is currently being passed as follows: "+fP+"\n";}}if(g==true){return c;}if(fP=="window"){fO=window;}else{fO=window.parent;}if(fR.fP==""){fR.fP=fP;fR.fO=fO;al(fO,"scroll",fX,false);}fV=fW(fO);fR.scrollX=fV.scrollX;fR.scrollX=fV.scrollX;w=aj(intClientIDSuffix);d=F[w];d.fU=true;};function fY(){var intClientIDSuffix=parseInt(this.ClientIDSuffix);var w;var d;var bW;var fT=false;w=aj(intClientIDSuffix);d=F[w];d.fU=false;bW=F.length;for(C=0;C<bW;C++){d=F[C];if(d.fU==true){fT=true;}}if(fT==false){aN(fR.fO,"scroll",fX,false);fR.fO=null;fR.fP="";}};function fX(){var fQ={scrollX:0,scrollY:0};var ga;var gb;var fd;var fl;var dM;var dy;var d;var bW;var C;var r;var gf;var gg;var gc;gc=F;bW=F.length;fQ=fW(fR.fO);ga=fR.scrollX-fQ.scrollX;gb=fR.scrollY-fQ.scrollY;for(C=0;C<bW;C++){d=F[C];if(d.fU==true){r=document.getElementById("IIWin."+d.ClientIDSuffix);if(r!=null){if(r.currentStyle){fd=parseInt(r.currentStyle.left.replace("px",""));fl=parseInt(r.currentStyle.top.replace("px",""));}else{fd=parseInt(document.defaultView.getComputedStyle(r,null).left.replace("px",""));fl=parseInt(document.defaultView.getComputedStyle(r,null).top.replace("px",""));}dy=fd-ga;dM=fl-gb;r.style.left=dy+"px";r.style.top=dM+"px";}}}fR.scrollX=fQ.scrollX;fR.scrollY=fQ.scrollY;};function fW(fO){var scrollX;var scrollY;var fH={scrollX:0,scrollY:0};if(fO.document.all){if(!fO.document.documentElement.scrollLeft){scrollX=fO.document.body.scrollLeft;}else{scrollX=fO.document.documentElement.scrollLeft;}if(!fO.document.documentElement.scrollTop){scrollY=fO.document.body.scrollTop;}else{scrollY=fO.document.documentElement.scrollTop;}}else{scrollX=fO.pageXOffset;scrollY=fO.pageYOffset;}fH.scrollX=scrollX;fH.scrollY=scrollY;return fH;} 
function GetIIWinFromElement(objElement)
{
var blnFoundIIWinNode = false;
var attribIIWin
var objRetval = {ErrorMessage: "", IIWin: null};
var strError = "";
if(typeof(objElement) != "object")
{
	strError += "The value for the objElement parameter can only be passed as an object." + "\n" ;
	strError += "objElement is currently being passed as an " + typeof(objElement) + " value." + "\n"
	objRetval.ErrorMessage = strError;
	objRetval.IIWin = null;
	return objRetval;
}
else
{
	if(objElement == null)
	{
		strError += "The value for the objElement parameter can't be passed as null." + "\n" ;
		objRetval.ErrorMessage = strError;
		objRetval.IIWin = null;
		return objRetval;
	}
	if(objElement.tagName == undefined)
	{
		strError += "The object passed for the objElement parameter can't have an undefined tagName. " + "\n";
		objRetval.ErrorMessage = strError;
		objRetval.IIWin = null;
		return objRetval;
	}
}

attribIIWin = objElement.attributes.getNamedItem("IIWin")

if(attribIIWin!= null)
{
	objRetval.ErrorMessage = strError;
	objRetval.IIWin = objElement;
	return objRetval;
}


while(blnFoundIIWinNode == false)
{
	objElement = objElement.parentNode;
	if(objElement.tagName.toLowerCase() != "body")
	{
		attribIIWin = objElement.attributes.getNamedItem("IIWin")
		if(attribIIWin!= null)
		{
			blnFoundIIWinNode = true;
		}
	}
	else
	{
		strError += "Could not locate the IIWin amongst the ancestor nodes of the object you passed." + "\n";
		objRetval.ErrorMessage = strError;
		objRetval.IIWin = null;
		return objRetval;
	}
}

objRetval.ErrorMessage = strError;
objRetval.IIWin = objElement;
return objRetval;
}

