function MM_swapImage(){var a,b=0,c,d=MM_swapImage.arguments;document.MM_sr=new Array;for(a=0;a<d.length-2;a+=3)if((c=MM_findObj(d[a]))!=null){document.MM_sr[b++]=c;if(!c.oSrc)c.oSrc=c.src;c.src=d[a+2]}}function MM_findObj(a,b){var c,d,e;if(!b)b=document;if((c=a.indexOf("?"))>0&&parent.frames.length){b=parent.frames[a.substring(c+1)].document;a=a.substring(0,c)}if(!(e=b[a])&&b.all)e=b.all[a];for(d=0;!e&&d<b.forms.length;d++)e=b.forms[d][a];for(d=0;!e&&b.layers&&d<b.layers.length;d++)e=MM_findObj(a,b.layers[d].document);if(!e&&b.getElementById)e=b.getElementById(a);return e}function MM_swapImgRestore(){var a,b,c=document.MM_sr;for(a=0;c&&a<c.length&&(b=c[a])&&b.oSrc;a++)b.src=b.oSrc}function MM_preloadImages(){var a=document;if(a.images){if(!a.MM_p)a.MM_p=new Array;var b,c=a.MM_p.length,d=MM_preloadImages.arguments;for(b=0;b<d.length;b++)if(d[b].indexOf("#")!=0){a.MM_p[c]=new Image;a.MM_p[c++].src=d[b]}}}function MM_nbGroup(a,b){var c,d,e,f=MM_nbGroup.arguments;if(a=="init"&&f.length>2){if((d=MM_findObj(f[2]))!=null&&!d.MM_init){d.MM_init=true;d.MM_up=f[3];d.MM_dn=d.src;if((e=document[b])==null)e=document[b]=new Array;e[e.length]=d;for(c=4;c<f.length-1;c+=2)if((d=MM_findObj(f[c]))!=null){if(!d.MM_up)d.MM_up=d.src;d.src=d.MM_dn=f[c+1];e[e.length]=d}}}else if(a=="over"){document.MM_nbOver=e=new Array;for(c=1;c<f.length-1;c+=3)if((d=MM_findObj(f[c]))!=null){if(!d.MM_up)d.MM_up=d.src;d.src=d.MM_dn&&f[c+2]?f[c+2]:f[c+1]?f[c+1]:d.MM_up;e[e.length]=d}}else if(a=="out"){for(c=0;c<document.MM_nbOver.length;c++){d=document.MM_nbOver[c];d.src=d.MM_dn?d.MM_dn:d.MM_up}}else if(a=="down"){e=document[b];if(e)for(c=0;c<e.length;c++){d=e[c];d.src=d.MM_up;d.MM_dn=0}document[b]=e=new Array;for(c=2;c<f.length-1;c+=2)if((d=MM_findObj(f[c]))!=null){if(!d.MM_up)d.MM_up=d.src;d.src=d.MM_dn=f[c+1]?f[c+1]:d.MM_up;e[e.length]=d}}}function changeDateFlds(a,b,c){var d=document.getElementById(a);var e=document.getElementById(b);var f=document.getElementById(c);var g="";var h="";var i=-1;var j=0;var k=0;if(!d||!e||!f)return;if(!d.options||!e.options||!f.options)return;if(!d.value||d.value==""||!f.value||f.value=="")return;k=getLastDay(d.value,f.value);i=e.selectedIndex;if(e.options.length<28){e.options.length=0;if(d.options.length>0&&d.options[0].value==""){if(d.options.length>1&&d.options[1].value.charAt(0)=="0")g="0";e.options[e.options.length]=new Option("Day","")}else if(d.options.length>0&&d.options[0].value.charAt(0)=="0")g="0";for(l_nIdx=1;l_nIdx<=k;l_nIdx++){h=l_nIdx+"";if(g!=""&&h.length<2){var l=[];l.push(g);l.push(h);h=l.join("")}e.options[e.options.length]=new Option(h,h)}}if(e.options.length>0&&e.options[0].value=="")j=1;if(e.options.length>k+j)e.options.length=k+j;else{for(l_nIdx=e.options.length;l_nIdx<k+j;l_nIdx++){h=(j==1?l_nIdx:l_nIdx+1)+"";e.options[e.options.length]=new Option(h,h)}}e.selectedIndex=i>=e.options.length?e.options.length-1:i;if(e.selectedIndex==-1&&e.options.length>0)e.selectedIndex=0;return}function getLastDay(a,b){var c=a>=12?b+1:b;var d=a>=12?0:a;var e=new Date(c,d,1);e.setDate(e.getDate()-1);return e.getDate()}function hide_status(a){var b=popupDiv(a);if(g_objStatMsg&&g_objStatMsg!=null)g_objStatMsg.stop("");g_objStatMsg=null;b.window.style.display="none";b.window.style.zIndex=-51;b.mask.style.display="none";b.mask.style.zIndex=-50;if(g_objTheme.browser.isIE()&&g_objTheme.browser.version()<7)displaySelectBoxes();removeEvent(document,"keypress",keyDownHandler);removeEvent(window,"scroll",onScrollHandler);if(g_mapFuncRet[a])g_mapFuncRet[a]();g_bPopupIsShown=false;return}function show_status(a,b,c,d,e,f){var g=strcat("div",a);var h=g_objTheme.browser.center(e,d);var i=popupDiv(a);var j=g_objTheme.browser.isIE()?2:0;var k=g_objTheme.browser.isIE()?4:0;var l=g_objTheme.browser.isIE()?3:7;g_nScrollLockX=g_objTheme.browser.winScrollX();g_nScrollLockY=g_objTheme.browser.winScrollY();i.window.innerHTML=strcat("<table cellpadding='0' cellspacing='0' border='0' class='popupwin' style='width: ",e,"px; height: ",d,"px'><tr><td class='pagecontent'><div class='content' id='",g,"_Content' style='overflow: hidden; position: relative; top: ",j,"; height: ",d-k,"px; padding-top: ",l,"px;'></div></td></tr></table>");i.mask.style.zIndex=50;i.mask.style.display="block";i.window.style.left=strcat(g_nScrollLockX+h.x,"px");i.window.style.top=strcat(f?f:g_nScrollLockY+h.y,"px");i.window.style.width=strcat(e,"px");i.window.style.height=strcat(d,"px");i.window.style.zIndex=51;i.window.style.display="block";positionMask();if(g_objTheme.browser.isIE()&&g_objTheme.browser.version()<7)hideSelectBoxes();g_bPopupIsShown=true;addEvent(document,"keypress",keyDownHandler);addEvent(window,"scroll",onScrollHandler);g_objStatMsg=new Status_Message(strcat(g,"_Content"),b,c);g_objStatMsg.start(200,"g_objStatMsg")}function hide_popup(a){var b=strcat("div",a);var c=g_vecPopUpDivs[a];if(!c)c=popupDiv(a);c.window.style.display="none";c.window.style.zIndex=-51;if(c.innermask){c.innermask.style.display="none";c.innermask.style.zIndex=-52}c.mask.style.display="none";c.mask.style.zIndex=-50;if(g_objTheme.browser.isIE()&&g_objTheme.browser.version()<7)displaySelectBoxes();g_objMaxProps[b]=null;removeEvent(document,"keypress",keyDownHandler);removeEvent(window,"scroll",onScrollHandler);if(g_mapFuncRet[a])g_mapFuncRet[a]();g_bPopupIsShown=false;g_vecPopUpDivs[a]=c=null;return false}function prevpage_popup_window(a){var b=document.getElementById(strcat("div",a,"_Content"));if(b&&b.history){if(b.history.go)b.history.go(-1);else if(b.back)b.history.back()}return}function nextpage_popup_window(a){var b=document.getElementById(strcat("div",a,"_Content"));if(b&&b.history){if(b.history.go)b.history.go(+1);else if(b.forward)b.history.forward()}return}function print_preview(a,b,c,d,e,f,g,h,i,j,k,l){var m=g_objTheme.set(h,c,d);var n=strcat("div",a);var o=strcat("<iframe name='if",a,"_Content' id='if",a,"_Content' frameborder='0' width='",m.content.width,"' height='",m.content.height,"' style='background-color: #FFF; border: 0px none #FFF; overflow: auto; width: ",m.content.width,"px; height: ",m.content.height,"px' src=''><strong>Your Browser Does Not Support IFrames</strong></iframe>");var p=g_objTheme.browser.center(m.window.width,m.window.height);var q=popupDiv(a,i);g_vecPopUpDivs[a]=q;p.x=e?e:p.x;p.y=f?f:p.y;g_nScrollLockX=g_objTheme.browser.winScrollX();g_nScrollLockY=g_objTheme.browser.winScrollY();q.window.innerHTML=popupCode(a,"Print Preview",o,m,true,k);popupFrame(document.getElementById(strcat("if",a,"_Content")),"Print Preview",b,g);q.mask.style.zIndex=50;q.mask.style.display="block";q.window.style.left=strcat(g_nScrollLockX+p.x,"px");q.window.style.top=strcat(g_nScrollLockY+p.y,"px");q.window.style.width=strcat(m.window.width,"px");q.window.style.height=strcat(m.window.height,"px");q.window.style.zIndex=51;q.window.style.display="block";positionMask();if(q.innermask){q.innermask.style.left=strcat(g_nScrollLockX+p.x+m.content.adjX,"px");q.innermask.style.top=strcat(g_nScrollLockY+p.y+m.content.adjY,"px");q.innermask.style.width=strcat(m.content.width,"px");q.innermask.style.height=strcat(m.content.height,"px");q.innermask.style.zIndex=52;q.innermask.style.display="block"}if(g_objTheme.browser.isIE()&&g_objTheme.browser.version()<7)hideSelectBoxes();g_bPopupIsShown=true;addEvent(document,"keypress",keyDownHandler);addEvent(window,"scroll",onScrollHandler);if(j!=null&&(j==true||j!=0))maximizeWin(a);return}function show_popup_window(a,b,c,d,e,f,g,h,i,j,k,l){var m=g_objTheme.set(i,d,e);var n=strcat("div",a);var o=strcat("<iframe name='if",a,"_Content' id='if",a,"_Content' frameborder='0' width='",m.content.width,"' height='",m.content.height,"' style='background-color: #FFF; border: 0px none #FFF; overflow: auto; margin: 0; padding: 0; width: ",m.content.width,"px; height: ",m.content.height,"px' src='",c,"'><strong>Your Browser Does Not Support IFrames</strong></iframe>");var p=g_objTheme.browser.center(m.window.width,m.window.height);var q=popupDiv(a,j);g_vecPopUpDivs[a]=q;if(h)g_mapFuncRet[a]=h;p.x=f?f:p.x;p.y=g?g:p.y;g_nScrollLockX=g_objTheme.browser.winScrollX();g_nScrollLockY=g_objTheme.browser.winScrollY();q.window.innerHTML=popupCode(a,b,o,m,false,l);q.mask.style.zIndex=50;q.mask.style.display="block";q.window.style.left=strcat(g_nScrollLockX+p.x,"px");q.window.style.top=strcat(g_nScrollLockY+p.y,"px");q.window.style.width=strcat(m.window.width,"px");q.window.style.height=strcat(m.window.height,"px");q.window.style.zIndex=51;q.window.style.display="block";positionMask();if(q.innermask){q.innermask.style.left=strcat(g_nScrollLockX+p.x+m.content.adjX,"px");q.innermask.style.top=strcat(g_nScrollLockY+p.y+m.content.adjY,"px");q.innermask.style.width=strcat(m.content.width,"px");q.innermask.style.height=strcat(m.content.height,"px");q.innermask.style.zIndex=52;q.innermask.style.display="block"}if(document.getElementById(strcat(n,"_Title")))if(document.getElementById(strcat(n,"_Title")).focus)document.getElementById(strcat(n,"_Title")).focus();if(g_objTheme.browser.isIE()&&g_objTheme.browser.version()<7)hideSelectBoxes();g_bPopupIsShown=true;addEvent(document,"keypress",keyDownHandler);addEvent(window,"scroll",onScrollHandler);if(k!=null&&(k==true||k!=0))maximizeWin(a);return}function show_popup(a,b,c,d,e,f,g,h,i,j,k,l,m){var n=g_objTheme.set(i,d,e);var o=strcat("div"+a);var p=g_objTheme.browser.center(n.window.width,n.window.height);var q=popupDiv(a,j);var r=null;if(m)r=strcat("<iframe name='if",a,"_Content' id='if",a,"_Content' frameborder='0' width='",n.content.width,"' height='",n.content.height,"' style='background-color: #FFF; border: 0px none #FFF; overflow: auto; width: ",n.content.width,"px; height: ",n.content.height,"px' src=''><strong>Your Browser Does Not Support IFrames</strong></iframe>");else r=strcat("<div id='if",a,"_Content' style='position: relative; background-color: #FFF; border: 0px none #FFF; overflow: auto; width: ",n.content.width,"px; height: ",n.content.height,"px'>",c,"</div>");g_vecPopUpDivs[a]=q;if(h)g_mapFuncRet[a]=h;p.x=f?f:p.x;p.y=g?g:p.y;g_nScrollLockX=g_objTheme.browser.winScrollX();g_nScrollLockY=g_objTheme.browser.winScrollY();q.window.innerHTML=popupCode(a,b,r,n,false,l);if(m)popupFrame(document.getElementById(strcat("if",a,"_Content")),b,c,m);q.mask.style.zIndex=50;q.mask.style.display="block";q.window.style.left=strcat(g_nScrollLockX+p.x,"px");q.window.style.top=strcat(g_nScrollLockY+p.y,"px");q.window.style.width=strcat(n.window.width,"px");q.window.style.height=strcat(n.window.height,"px");q.window.style.zIndex=51;q.window.style.display="block";positionMask();if(q.innermask){q.innermask.style.left=strcat(g_nScrollLockX+p.x+n.content.adjX,"px");q.innermask.style.top=strcat(g_nScrollLockY+p.y+n.content.adjY,"px");q.innermask.style.width=strcat(n.content.width,"px");q.innermask.style.height=strcat(n.content.height,"px");q.innermask.style.zIndex=52;q.innermask.style.display="block"}if(document.getElementById(strcat(o,"_Title")))if(document.getElementById(strcat(o,"_Title")).focus)document.getElementById(strcat(o,"_Title")).focus();if(g_objTheme.browser.isIE()&&g_objTheme.browser.version()<7)hideSelectBoxes();g_bPopupIsShown=true;addEvent(document,"keypress",keyDownHandler);addEvent(window,"scroll",onScrollHandler);if(k!=null&&(k==true||k!=0))maximizeWin(a);return}function popupFrame(a,b,c,d){var e=null;var f=null;if(a)if(!(e=a.contentDocument))e=a.contentWindow.document;if(e){e.open();if(d&&d.length>0){for(l_nIdx=0;l_nIdx<d.length;++l_nIdx){if(/^\<\!DOCTYPE\s.*$/i.test(d[l_nIdx])){f=d.splice(l_nIdx,1);break}}}if(f==null&&document.doctype)f=strcat("<!DOCTYPE ",document.doctype.name,' PUBLIC "',document.doctype.publicId,'" "',document.doctype.systemId,'">');if(f)e.write(f);if(f&&(f+"").indexOf("XHTML")!=-1)e.write('<html xmlns="http://www.w3.org/1999/xhtml" xml lang="en" lang="en">\n');else e.write("<html>\n");e.write("<head>\n");e.write("<title>");e.write(b);e.write("</title>\n");if(d&&d.length>0){for(l_nIdx=0;l_nIdx<d.length;++l_nIdx){l_strItm=d[l_nIdx];if(!l_strItm||l_strItm.length<3)continue;if((l_strExt=file_ext(l_strItm).toLowerCase())=="js")e.write(strcat("<script language='JavaScript' type='text/javascript' src='",l_strItm,"'></script>\n"));else if(l_strExt=="css")e.write(strcat("<link href='",l_strItm,"' rel='stylesheet' type='text/css'>\n"))}}e.write("</head>\n");e.write("<body>\n");e.write(c);e.write("</body>\n");e.write("</html>\n");e.close();a.domain=document.domain}return}function popupCode(a,b,c,d,e,f){l_strDivName=strcat("div",a);l_strTitleEvent=strcat(" onmousedown='JavaScript:startDrag(event, this, \"",l_strDivName,"\");' onkeypress='JavaScript:onDivKeyPress(event, \"",a,"\");'");l_strCloseEvent=strcat(" onClick='return hide_popup(\"",a,"\");'");l_strMaxEvent=strcat(" onClick='this.blur(); return maximizeWin(\"",a,"\");'");l_vecBuff=[];if(e==null)e=false;l_vecBuff.push(strcat("<table id='tbl",a,"' cellpadding='0' cellspacing='0' border='0' style='background-color: transparent; width: ",d.window.width,"px; height: ",d.window.height,"px; margin: 0; padding: 0;'>"));l_vecBuff.push("<tr>");l_vecBuff.push(strcat("<td style='",g_objTheme.current.T.L.backgroundCSS()," border: 0; margin: 0; padding: 0; vertical-align: top; text-align: left;'",l_strTitleEvent,">"));l_vecBuff.push(strcat("<div style='position: relative; border: 0; margin: 0; padding: 0; width: ",g_objTheme.current.T.L.width,"px; height: ",g_objTheme.current.T.L.height,"px;'",l_strTitleEvent,">"));l_vecBuff.push(strcat("<div style='position: absolute; top: 5px; left: 5px; width: 30px; height: 30px; border: 0; margin: 0; padding: 0;'",l_strTitleEvent,">"));if(e)l_vecBuff.push(strcat('<a href="#" onClick="return printIFrame(\'if',a,"_Content');\"><img src='images/icons/icoMiniPrint.png' border=0",l_strTitleEvent,' alt="Print" title="Print"></a>'));else l_vecBuff.push(strcat("<img src='images/icoApp.gif' border=0",l_strTitleEvent,">"));l_vecBuff.push("</div>");l_vecBuff.push("</div>");l_vecBuff.push("</td>");l_vecBuff.push(strcat("<td id='td",a,"_Title' style='",g_objTheme.current.T.C.backgroundCSS()," width: ",d.title.width,"px; border: 0; margin: 0; padding: 0; vertical-align: top; text-align: left;'",l_strTitleEvent,">"));l_vecBuff.push(strcat("<div id='",l_strDivName,"_OuterTitle' style='position: relative; margin: 0; padding: 0; width: ",d.title.width,"px; height: ",g_objTheme.current.T.C.height,"px;'",l_strTitleEvent,">"));l_vecBuff.push(strcat("<div id='",l_strDivName,"_Title' style='position: absolute; top: 3px; left: 20px; margin: 0; padding: 0; font: 13px Arial, Helvetica, san-serif; overflow: hidden; height: 17px; width: ",d.title.div.width,"px; text-align: ",g_objTheme.current.title.align,";'",l_strTitleEvent,">",b,"</div>"));l_vecBuff.push("</div>");l_vecBuff.push("</td>");l_vecBuff.push(strcat("<td style='",g_objTheme.current.T.R.backgroundCSS()," margin: 0; padding: 0; vertical-align: top; text-align: left;'",l_strTitleEvent,">"));l_vecBuff.push(strcat("<div style='position: relative; border: 0; margin: 0; padding: 0; width: ",g_objTheme.current.T.R.width,"px; height: ",g_objTheme.current.T.R.height,"px;'",l_strTitleEvent,">"));l_vecBuff.push(strcat("<div style='position: absolute; top: ",g_objTheme.current.btn.top,"px; right: ",g_objTheme.current.btn.right,"px; width: ",g_objTheme.current.btn.width,"px; height: ",g_objTheme.current.btn.height,"px; text-align: left; border: 0; margin: 0; padding: 0;'",l_strTitleEvent,">"));l_vecBuff.push(strcat("<div style='float: right; border: 0; padding: 0; margin: 0;'><a href='#'",l_strCloseEvent," style='padding: 0px;'><img id='imgClose' src='",g_objTheme.current.btn.close.normal.src,"' border='0' onMouseOver='overBtn(this, true);' onMouseOut='overBtn(this, false);' alt='Close' title='Close Window'></a></div>"));if(!f)l_vecBuff.push(strcat("<div style='float: right; border: 0; padding: 0; margin: 0;'><a href='#'",l_strMaxEvent,"><img id='imgMax' src='",g_objTheme.current.btn.max.normal.src,"' border='0' onMouseOver='overBtn(this, true);' onMouseOut='overBtn(this, false);' alt='Maximize' title='Maximize Window'></a></div>"));l_vecBuff.push("</div>");l_vecBuff.push("</div>");l_vecBuff.push("</td>");l_vecBuff.push("</tr>");l_vecBuff.push("<tr>");if(g_objTheme.current.B){l_vecBuff.push(strcat("<td style='",g_objTheme.current.C.L.backgroundCSS(),"'>",g_objTheme.current.C.L.spacerHTML(),"</td>"));l_vecBuff.push(strcat("<td id='",l_strDivName,"_OuterContent' style='background-color: #FFF; width: ",d.content.outer.width,"px; height: ",d.content.outer.height,"px; margin: 0; padding: 0; background-color: ",g_objTheme.current.C.C.color,";'>"))}else l_vecBuff.push(strcat("<td id='",l_strDivName,"_OuterContent' colspan='3' style='width: ",d.content.outer.width,"px; height: ",d.content.outer.height,"px; border: ",g_objTheme.current.C.C.border.size,"px solid ",g_objTheme.current.C.C.border.color,"; padding: ",g_objTheme.current.C.C.padT,"px ",g_objTheme.current.C.C.padR,"px ",g_objTheme.current.C.C.padB,"px ",g_objTheme.current.C.C.padL,"px; margin: 0; background-color: ",g_objTheme.current.C.C.color,";'>"));l_vecBuff.push(strcat("<div id='",l_strDivName,"_Content' style='width: ",d.content.width,"px; height: ",d.content.height,"px; border: 0; margin: 0; padding: 0; overflow: hidden;'>"));l_vecBuff.push(c);l_vecBuff.push("</div>");if(g_objTheme.current.B){l_vecBuff.push("</td>");l_vecBuff.push(strcat("<td style='",g_objTheme.current.C.R.backgroundCSS(),"'>",g_objTheme.current.C.R.spacerHTML(),"</td>"));l_vecBuff.push("</tr>");l_vecBuff.push("<tr>");l_vecBuff.push(strcat("<td style='",g_objTheme.current.B.L.backgroundCSS(),"'>",g_objTheme.current.B.L.spacerHTML(),"</td>"));l_vecBuff.push(strcat("<td style='",g_objTheme.current.B.C.backgroundCSS(),"'>",g_objTheme.current.B.C.spacerHTML(),"</td>"));l_vecBuff.push(strcat("<td style='",g_objTheme.current.B.R.backgroundCSS(),"'>",g_objTheme.current.B.R.spacerHTML(),"</td>"));l_vecBuff.push("</tr>")}else l_vecBuff.push("</td>");l_vecBuff.push("</tr>");l_vecBuff.push("</table>");return l_vecBuff.join("")}function popupDiv(a,b){var c=new Object;var d=strcat("div",a);var e=strcat(d,"_Mask");var f=strcat(d,"_InnerMask");if(b==null)b=false;c.window=document.getElementById(d);if(!c.window){c.window=document.createElement("DIV");c.window.name=d;c.window.id=d;c.window.className="popupwin";c.window.style.position="absolute";c.window.style.backgroundColor="transparent";c.window.style.color="black";c.window.style.border="0px solid #777";c.window.style.display="none";document.body.appendChild(c.window)}c.window.style.padding="0";c.window.style.margin="0";c.mask=g_objPopupMask=document.getElementById(e);if(!c.mask){c.mask=g_objPopupMask=document.createElement("DIV");c.mask.name=e;c.mask.id=e;c.mask.className="mask";c.mask.style.opacity=".2";c.mask.style.backgroundColor="transparent";c.mask.style.backgroundImage="url(images/maskBG.png)";c.mask.style.backgroundRepeat="repeat";c.mask.style.display="none";document.body.appendChild(c.mask)}if(!b){c.innermask=null;return c}c.innermask=document.getElementById(f);if(!c.innermask){c.innermask=document.createElement("DIV");c.innermask.name=f;c.innermask.id=f;c.innermask.className="clearmask";c.innermask.style.position="absolute";c.innermask.style.top="0px";c.innermask.style.left="0px";c.innermask.style.width="100%";c.innermask.style.height="100%";c.innermask.style.display="none";document.body.appendChild(c.innermask)}return c}function printIFrame(a){var b=null;if(a.name)b=window.frames[a.name];else b=window.frames[a];if(b){b.focus();b.print()}return false}function onDivKeyPress(a,b){switch(g_objTheme.browser.getKeyCode(a)){case 27:hide_popup(b);break}}function displaySelectBoxes(){for(var a=0;a<document.forms.length;a++){for(var b=0;b<document.forms[a].length;b++){if(document.forms[a].elements[b].tagName=="SELECT")document.forms[a].elements[b].style.visibility="visible"}}}function hideSelectBoxes(){for(var a=0;a<document.forms.length;a++){for(var b=0;b<document.forms[a].length;b++){if(document.forms[a].elements[b].tagName=="SELECT")document.forms[a].elements[b].style.visibility="hidden"}}}function restoreTabIndexes(){if(document.all){var a=0;for(var b=0;b<g_vecTabbableTags.length;b++){var c=document.getElementsByTagName(g_vecTabbableTags[b]);for(var d=0;d<c.length;d++){c[d].tabIndex=g_vecTabIndexes[a];c[d].tabEnabled=true;a++}}}}function disableTabIndexes(){if(document.all){var a=0;for(var b=0;b<g_vecTabbableTags.length;b++){var c=document.getElementsByTagName(g_vecTabbableTags[b]);for(var d=0;d<c.length;d++){g_vecTabIndexes[a]=c[d].tabIndex;c[d].tabIndex="-1";a++}}}}function onScrollHandler(a){if(g_bPopupIsShown)positionMask()}function positionMask(){if(!g_objPopupMask)return;g_objPopupMask.style.position="absolute";g_objPopupMask.style.top=strcat(g_objBrowser.winScrollY(),"px");g_objPopupMask.style.left=strcat(g_objBrowser.winScrollX(),"px");g_objPopupMask.style.width=strcat(g_objBrowser.winWidth(),"px");g_objPopupMask.style.height=strcat(g_objBrowser.winHeight(),"px");return}function keyDownHandler(a){if(g_bPopupIsShown&&g_objTheme.browser.getKeyCode(a)==9)return g_objTheme.browser.cancelEvent()}function offX(a){var b=a&&a.src?a:document.getElementById("imgX");changeImg(b,"images/X.gif")}function onX(a){var b=a&&a.src?a:document.getElementById("imgX");changeImg(b,"images/X_over.gif")}function maximizeWin(a){var b=strcat("div",a);var c=g_vecPopUpDivs[a];var d=null;var e=null;var f=null;if(!c)return;e=g_objTheme.browser.winWidth();f=g_objTheme.browser.winHeight();if(g_objMaxProps[b]){if(d=document.getElementById(strcat("td",a,"_Title")))d.style.width=strcat(g_objMaxProps[b].oTitleTDW,"px");if(d=document.getElementById(strcat(b,"_OuterTitle")))d.style.width=strcat(g_objMaxProps[b].oTitleDVW,"px");if(d=document.getElementById(strcat(b,"_Title")))d.style.width=strcat(g_objMaxProps[b].iTitleDVW,"px");if(d=document.getElementById(strcat(b,"_Content"))){d.style.width=strcat(g_objMaxProps[b].iContentW,"px");d.style.height=strcat(g_objMaxProps[b].iContentH,"px");if(d=document.getElementById(strcat("if",a,"_Content"))){d.style.width=strcat(g_objMaxProps[b].iContentW,"px");d.style.height=strcat(g_objMaxProps[b].iContentH,"px")}}if(d=document.getElementById(strcat(b,"_OuterContent"))){d.style.width=strcat(g_objMaxProps[b].oContentW,"px");d.style.height=strcat(g_objMaxProps[b].oContentH,"px")}if(d=document.getElementById(strcat("tbl",a))){d.style.width=strcat(g_objMaxProps[b].tableW,"px");d.style.height=strcat(g_objMaxProps[b].tableH,"px")}if(d=c.window){d.style.width=strcat(g_objMaxProps[b].winW,"px");d.style.height=strcat(g_objMaxProps[b].winH,"px");d.style.left=strcat(g_objMaxProps[b].winX,"px");d.style.top=strcat(g_objMaxProps[b].winY,"px")}if(d=c.innermask){d.style.width=strcat(g_objMaxProps[b].innerMaskW,"px");d.style.height=strcat(g_objMaxProps[b].innerMaskH,"px");d.style.left=strcat(g_objMaxProps[b].innerMaskX,"px");d.style.top=strcat(g_objMaxProps[b].innerMaskY,"px")}if(d=document.getElementById("imgRestore")){d.id="imgMax";d.alt="Maximize";d.title="Maximize Window";overBtn(d,false)}g_objMaxProps[b]=null}else{g_objMaxProps[b]=new Object;c;if(d=c.mask){g_objMaxProps[b].maskX=trimUnits(d.style.left);g_objMaxProps[b].maskY=trimUnits(d.style.top)}if(d=c.window){g_objMaxProps[b].winX=trimUnits(d.style.left)-g_objMaxProps[b].maskX;g_objMaxProps[b].winY=trimUnits(d.style.top)-g_objMaxProps[b].maskY;g_objMaxProps[b].winW=trimUnits(d.style.width);g_objMaxProps[b].winH=trimUnits(d.style.height);d.style.left=g_nScrollLockX+"px";d.style.top=g_nScrollLockY+"px";d.style.width=e+"px";d.style.height=f+"px"}if(d=c.innermask){g_objMaxProps[b].innerMaskX=trimUnits(d.style.left)-g_objMaxProps[b].maskX;g_objMaxProps[b].innerMaskY=trimUnits(d.style.top)-g_objMaxProps[b].maskY;g_objMaxProps[b].innerMaskW=trimUnits(d.style.width);g_objMaxProps[b].innwrMaskH=trimUnits(d.style.height);d.style.left=strcat(g_nScrollLockX+g_objTheme.current.content.AdjX,"px");d.style.top=strcat(g_nScrollLockY+g_objTheme.current.content.AdjY,"px");d.style.width=strcat(e-g_objTheme.current.content.iAdjW,"px");d.style.height=strcat(f-g_objTheme.current.content.iAdjH,"px")}if(d=document.getElementById(strcat("tbl",a))){g_objMaxProps[b].tableW=trimUnits(d.style.width);g_objMaxProps[b].tableH=trimUnits(d.style.height);d.style.width=strcat(e,"px");d.style.height=strcat(f,"px")}if(d=document.getElementById(strcat(b,"_Title"))){g_objMaxProps[b].iTitleDVW=trimUnits(d.style.width);d.style.width=strcat(e-g_objTheme.current.title.AdjDVW,"px")}if(d=document.getElementById(strcat(b,"_OuterTitle"))){g_objMaxProps[b].oTitleDVW=trimUnits(d.style.width);d.style.width=strcat(e-g_objTheme.current.title.AdjTDW,"px")}if(d=document.getElementById(strcat("td",a,"_Title"))){g_objMaxProps[b].oTitleTDW=trimUnits(d.style.width);d.style.width=strcat(e-g_objTheme.current.title.AdjTDW,"px")}if(d=document.getElementById(strcat(b,"_Content"))){g_objMaxProps[b].iContentW=trimUnits(d.style.width);g_objMaxProps[b].iContentH=trimUnits(d.style.height);d.style.width=strcat(e-g_objTheme.current.content.iAdjW,"px");d.style.height=strcat(f-g_objTheme.current.content.iAdjH,"px");if(d=document.getElementById(strcat("if",a,"_Content"))){d.style.width=strcat(e-g_objTheme.current.content.iAdjW,"px");d.style.height=strcat(f-g_objTheme.current.content.iAdjH,"px")}}if(d=document.getElementById(strcat(b,"_OuterContent"))){g_objMaxProps[b].oContentW=trimUnits(d.style.width);g_objMaxProps[b].oContentH=trimUnits(d.style.height);d.style.width=strcat(e-g_objTheme.current.content.oAdjW,"px");d.style.height=strcat(f-g_objTheme.current.content.oAdjH,"px")}if(d=document.getElementById("imgMax")){d.id="imgRestore";d.alt="Restore";d.title="Restore Window";overBtn(d,false)}}return}function trimUnits(a){return a.replace(/[^\d\.]/g,"")*1}function overBtn(a,b){if(a.id){if(a.id=="imgMax")changeImg(a,b?g_objTheme.current.btn.max.hover.src:g_objTheme.current.btn.max.normal.src);else if(a.id=="imgRestore")changeImg(a,b?g_objTheme.current.btn.restore.hover.src:g_objTheme.current.btn.restore.normal.src);else if(a.id=="imgClose")changeImg(a,b?g_objTheme.current.btn.close.hover.src:g_objTheme.current.btn.close.normal.src)}return}function doDrag(a){var b=0;var c=0;var d=0;var e=0;if(!g_objDragIt.objTarget)return;if(g_objTheme.browser.isIE()){b=window.event.clientX+document.documentElement.scrollLeft+document.body.scrollLeft;c=window.event.clientY+document.documentElement.scrollTop+document.body.scrollTop}else if(g_objTheme.browser.isNS()){b=a.clientX+window.scrollX;c=a.clientY+window.scrollY}d=g_objDragIt.start.Top+c-g_objDragIt.start.Y;e=g_objDragIt.start.Left+b-g_objDragIt.start.X;if(d<0)d=0;if(d>g_objDragIt.limits.Top)d=g_objDragIt.limits.Top;if(e<0)e=0;if(e>g_objDragIt.limits.Left)e=g_objDragIt.limits.Left;g_objDragIt.objTarget.style.top=d+"px";g_objDragIt.objTarget.style.left=e+"px";if(g_objTheme.browser.isIE()){window.event.cancelBubble=true;window.event.returnValue=false}else if(g_objTheme.browser.isNS())a.preventDefault()}function stopDrag(a){g_objDragIt.objTarget=null;if(g_objTheme.browser.isIE()){document.detachEvent("onmousemove",doDrag);document.detachEvent("onmouseup",stopDrag)}else if(g_objTheme.browser.isNS()){document.removeEventListener("mousemove",doDrag,true);document.removeEventListener("mouseup",stopDrag,true)}document.body.style.cursor="default";if(g_objDragIt.caller&&g_objDragIt.caller.style)g_objDragIt.caller.style.cursor="default";g_objDragIt.caller=null}function startDrag(a,b,c){if(g_objMaxProps[c])return;g_objDragIt.caller=b;document.body.style.cursor="move";if(g_objDragIt.caller&&g_objDragIt.caller.style)g_objDragIt.caller.style.cursor="move";if(c)g_objDragIt.objTarget=document.getElementById(c);else{if(g_objTheme.browser.isIE())g_objDragIt.objTarget=window.event.srcElement;else if(g_objTheme.browser.isNS())g_objDragIt.objTarget=a.target;if(g_objDragIt.objTarget.nodeType&&g_objDragIt.objTarget.nodeType==3)g_objDragIt.objTarget=g_objDragIt.objTarget.parentNode}if(!g_objDragIt.objTarget)return;g_objDragIt.limits=new Object;g_objDragIt.start=new Object;if(g_objTheme.browser.isIE()){g_objDragIt.start.X=window.event.clientX+document.documentElement.scrollLeft+document.body.scrollLeft;g_objDragIt.start.Y=window.event.clientY+document.documentElement.scrollTop+document.body.scrollTop}else if(g_objTheme.browser.isNS()){g_objDragIt.start.X=a.clientX+window.scrollX;g_objDragIt.start.Y=a.clientY+window.scrollY}if(isNaN(g_objDragIt.start.Top))g_objDragIt.start.Top=0;if(isNaN(g_objDragIt.start.Left))g_objDragIt.start.Left=0;g_objDragIt.start.Top=parseInt(g_objDragIt.objTarget.style.top,10);g_objDragIt.start.Left=parseInt(g_objDragIt.objTarget.style.left,10);g_objDragIt.limits.Top=g_objTheme.browser.winHeight()-parseInt(g_objDragIt.objTarget.style.height,10);g_objDragIt.limits.Left=g_objTheme.browser.winWidth()-parseInt(g_objDragIt.objTarget.style.width,10);if(g_objDragIt.limits.Top<0)g_objDragIt.limits.Top=0;if(g_objDragIt.limits.Left<0)g_objDragIt.limits.Left=0;g_objDragIt.objTarget.style.zIndex=++g_objDragIt.zIndex;if(g_objTheme.browser.isIE()){document.attachEvent("onmousemove",doDrag);document.attachEvent("onmouseup",stopDrag);window.event.cancelBubble=true;window.event.returnValue=false}else if(g_objTheme.browser.isNS()){document.addEventListener("mousemove",doDrag,true);document.addEventListener("mouseup",stopDrag,true);a.preventDefault()}return}function setColumnSortData(a,b,c,d){var e=null;b.colinfo[d]=new Object;b.colinfo[d].type="S";b.colinfo[d].fmt="";if(!c[d].id||c[d].id.length<1)return;b.colmap[c[d].id]=d;if((e=/^.*\_(?:([fFnN])(.*))$/.exec(c[d].id))&&e.length>=2){b.colinfo[d].type=e[1].toUpperCase();b.colinfo[d].fmt=e.length>2||!e[2]||e[2].length<1?b.colinfo[d].type=="N"?"10":"":e[2]}g_objSort.columnid[c[d].id]=new Object;g_objSort.columnid[c[d].id].tableid=a;g_objSort.columnid[c[d].id].header=c[d].innerHTML;return}function sortTable(a,b,c,d){var e=null;var f=null;var g=null;var h=null;var i=null;if(!g_objSort)g_objSort={table:new Object,columnid:new Object};e=g_objSort.table[a]=new Object;f=document.getElementById(a);e.loaded=false;if(!f)return;i=document.getElementById(a+"Header");if(!i)return;e.cols=d;e.coldir=0;e.colid="";e.img=new Object;e.img[1]=c?c:"images/darr.gif";e.img[-1]=b?b:"images/uarr.gif";preloadImg(e.img[1]);preloadImg(e.img[-1]);e.colmap=new Object;e.colinfo=new Object;if(e.cols){for(l_nIdx=0;l_nIdx<e.cols.length;++l_nIdx)setColumnSortData(a,e,i.rows[0].cells,e.cols[l_nIdx])}else{for(l_nIdx=0;l_nIdx<i.rows[0].cells.length;++l_nIdx){if(!i.rows[0].cells[l_nIdx].id||i.rows[0].cells[l_nIdx].id.length<1)continue;setColumnSortData(a,e,i.rows[0].cells,l_nIdx)}}e.bodystart=null;e.bodycount=0;g=f.tBodies;for(l_nIdx=0;g&&l_nIdx<g.length;++l_nIdx){if(g[l_nIdx].tagName&&g[l_nIdx].tagName.toUpperCase()!="TBODY")continue;if(e.bodystart==null)e.bodystart=l_nIdx;++e.bodycount}e.loaded=true}function reverseRows(a,b){var c=document.getElementById(a);var d=!c?null:c.tBodies;var e=null;var f=0;var g=0;if(!d)return;e=[];if(b.bodycount==1){if((c=d[b.bodystart])&&c.rows&&(g=c.rows.length)>1)for(f=0;f<g;++f)e.push(c.rows[f])}else if((g=d.length)>1){for(f=b.bodystart;f<g;++f){if(d[f].tagName&&d[f].tagName.toUpperCase()!="TBODY")continue;e.push(d[f])}}if(c&&e.length>1){for(f=e.length-1;f>=0;--f)c.appendChild(e[f])}delete e;return}function getRowItm(a,b,c,d){var e=!a||b<0||b>=a.length?null:a[b];var f=null;var g=new Object;var h=10;var i=0;var j=!d?0:d.length;g.item=null;if(c&&c.bodycount<2)g.item=e;f=!e?null:e.cells;g.cmpval=new Object;for(i=0;i<j;++i){g.cmpval[i]=!f||d[i]<0||d[i]>=f.length?null:f[d[i]];g.cmpval[i]=!g.cmpval[i]?null:g.cmpval[i].innerHTML;if(!g.cmpval[i]||g.cmpval[i]==" ")g.cmpval[i]="";if(!c||!c.colinfo||!c.colinfo[d[i]]||!c.colinfo[d[i]].type)continue;if(c.colinfo[d[i]].type=="F"){g.cmpval[i]=g.cmpval[i]==""?0:getNumber(g.cmpval[i]);g.cmpval[i]=isNaN(g.cmpval[i])?0:g.cmpval[i]}else if(c.colinfo[d[i]].type=="N"){h=!c.colinfo[d[i]].fmt||!c.colinfo[d[i]].fmt.length<1?10:parseInt(c.colinfo[d[i]].fmt,10);h=isNaN(h)?10:h;g.cmpval[i]=g.cmpval[i]==""?0:getNumber(g.cmpval[i],h);g.cmpval[i]=isNaN(g.cmpval[i])?0:g.cmpval[i]}}return g}function getBodyItm(a,b,c,d){var e=!a||b<0||b>=a.length?null:a[b];var f=!e||!e.rows?null:getRowItm(e.rows,0,c,d);if(f)f.item=e;return f}function swpItems(a,b,c){var d=a[b];a[b]=a[c];a[c]=d;return}function cmpItems(a,b,c){var d=0;var e=!c?0:c.length;for(d=0;d<e;++d){if(a.cmpval[c[d]]<b.cmpval[c[d]])return-1;if(a.cmpval[c[d]]>b.cmpval[c[d]])return 1}return 0}function qsortTableVector(a,b,c,d){var e=null;var f=c;var g=d;if(!a||c>=d)return;e=a[f++];while(f<g){while(f<=d&&cmpItems(a[f],e,b)<=0)++f;while(g>=0&&cmpItems(a[g],e,b)>0)--g;if(f<g)swpItems(a,f,g)}a[c]=a[g];a[g]=e;if(c<g-1)qsortTableVector(a,b,c,g-1);if(g+1<d)qsortTableVector(a,b,g+1,d);return}function bbsortTableVector(a,b){var c=0;var d=0;var e=0;var f=a.length-1;for(c=0;c<f;++c){if(cmpItems(a[c],a[e=c+1],b)>0){swpItems(a,c,e);for(d=c;d>0;--d){if(cmpItems(a[e=d-1],a[d],b)>0){swpItems(a,d,e);continue}break}}}return}function sortTableVector(a,b,c,d){if(a.length>15)qsortTableVector(a,b,0,a.length-1);else bbsortTableVector(a,b);return}function sortRows(a,b){var c=document.getElementById(a);var d=!c?null:c.tBodies;var e=null;var f=null;var g=null;var h=null;var i=!b?0:b.colmap[b.colid];var j=0;var k=!b||!b.cols?0:b.cols.length;if(!d||!b||b.bodycount==0)return;g=[];h=[];h.push(i);for(j=0;j<k;++j)if(b.cols[j]!=i)h.push(b.cols[j]);if(b.bodycount==1){e=!d[b.bodystart]?null:d[b.bodystart].rows;k=!e?0:e.length;for(j=0;j<k;++j)if(f=getRowItm(e,j,b,h))g.push(f)}else{k=d.length;for(j=b.bodystart;j<k;++j)if(f=getBodyItm(d,j,b,h))g.push(f)}if(g.length>1){sortTableVector(g,h);if(b.bodycount==1)c=d[b.bodystart];if(c){for(j=0;j<g.length;++j)c.appendChild(g[j].item)}}delete g;delete h;return}function sortByColumn(a){var b=g_objSort&&g_objSort.columnid[a.id]?g_objSort.columnid[a.id].tableid:null;var c=b?g_objSort.table[b]:null;var d=null;var e=false;if(!c||!c.loaded)return;if(c.coldir!=0){if(c.colid!=a.id){if(d=document.getElementById(c.colid))d.innerHTML=g_objSort.columnid[c.colid].header;c.coldir=0}else e=true}c.colid=a.id;c.coldir=c.coldir==0?1:c.coldir*-1;if(c.coldir<0||e)reverseRows(b,c);else sortRows(b,c);if(d=document.getElementById(c.colid))d.innerHTML=strcat(g_objSort.columnid[c.colid].header,'<img src="',c.img[c.coldir],'" border="0">');return}function toggleClass(a,b,c){var d=document.getElementById(a);var e=!d?null:d.tBodies;var f=0;var g=!e?0:e.length;var h=0;var i=0;var j=0;var k=b.length;var l=0;var m=c.length;var n=null;if(!e)return;for(f=0;f<g;++f){if(e[f].tagName&&e[f].tagName.toUpperCase()!="TBODY")continue;i=e[f].rows.length;for(h=0;h<i;++h){n=c[l];l=(l+1)%m;for(j=0;j<k;++j)if(b[j]>=0&&b[j]<e[f].rows[h].cells.length)e[f].rows[h].cells[b[j]].className=n}}return}function Status_Message(a,b,c){this.m_vecMsg=b;this.m_strMsgClass=c;this.m_vecBuffer=null;this.m_intvTimer=null;this.m_strDivName="";this.m_nIdx=0;this.m_nWalker=0;this.m_objDiv=document.getElementById(a);this.refresh=function(){if(this.m_vecMsg&&this.m_vecMsg.length){this.m_nIdx++;if(this.m_nIdx>this.m_vecMsg.length)this.m_nIdx=this.m_vecMsg.length<1?0:1;if(this.m_nIdx>0){this.m_vecBuffer=[];if(this.m_strMsgClass&&this.m_strMsgClass.length>0){this.m_vecBuffer.push("<font class='");this.m_vecBuffer.push(this.m_strMsgClass);this.m_vecBuffer.push("'>")}for(this.m_nWalker=0;this.m_nWalker<this.m_nIdx;this.m_nWalker++)this.m_vecBuffer.push(this.m_vecMsg[this.m_nWalker]);if(this.m_strMsgClass&&this.m_strMsgClass.length>0)this.m_vecBuffer.push("</font>");this.m_objDiv.innerHTML=this.m_vecBuffer.join("")}}};this.start=function(a,b){this.refresh();if(this.m_intvTimer!=null)clearInterval(this.m_intvTimer);this.m_intvTimer=setInterval(strcat("Status_Refresh(",b,")"),a&&a>0?a:150)};this.stop=function(a){if(this.m_intvTimer!=null)clearInterval(this.m_intvTimer);this.m_intvTimer=null;this.m_nIdx=0;if(this.m_objDiv&&this.m_objDiv.innerHTML)this.m_objDiv.innerHTML=a?a:""}}function Status_Refresh(a){a.refresh()}function popupTheme(){var a=null;this.browser=new Browser;a=this.browser.isIE()&&this.browser.version()<7?"gif":"png";this.themes=null;this.current=null;this.nameDefault=!this.browser.isWindows()||this.browser.typename()=="Safari"?"OSX":"Vista";this.init=function(){if(this.themes)return;this.themes=new Object;this.themes.vista=new Object;this.themes.osx=new Object;this.themes.vista.preloaded=false;this.themes.osx.preloaded=false;this.themes.vista.T=new Object;this.themes.vista.T.L=new imgInfo(strcat("images/dialog/Vista/sliceTL.",a),8,28);this.themes.vista.T.C=new imgInfo(strcat("images/dialog/Vista/sliceT.",a),1,28);this.themes.vista.T.R=new imgInfo(strcat("images/dialog/Vista/sliceTR.",a),8,28);this.themes.vista.C=new Object;this.themes.vista.C.L=new imgInfo(strcat("images/dialog/Vista/sliceL.",a),8,1);this.themes.vista.C.C=new Object;this.themes.vista.C.C.color="#777";this.themes.vista.C.R=new imgInfo(strcat("images/dialog/Vista/sliceR.",a),8,1);this.themes.vista.B=new Object;this.themes.vista.B.L=new imgInfo(strcat("images/dialog/Vista/sliceBL.",a),8,8);this.themes.vista.B.C=new imgInfo(strcat("images/dialog/Vista/sliceB.",a),1,8);this.themes.vista.B.R=new imgInfo(strcat("images/dialog/Vista/sliceBR.",a),8,8);this.themes.vista.btn=new Object;this.themes.vista.btn.close=new Object;this.themes.vista.btn.close.normal=new imgInfo(strcat("images/dialog/Vista/btnClose.",a),27,18);this.themes.vista.btn.close.hover=new imgInfo(strcat("images/dialog/Vista/btnCloseOver.",a),27,18);this.themes.vista.btn.close.disabled=new imgInfo(strcat("images/dialog/Vista/btnCloseDisabled.",a),27,18);this.themes.vista.btn.max=new Object;this.themes.vista.btn.max.normal=new imgInfo(strcat("images/dialog/Vista/btnMax.",a),25,18);this.themes.vista.btn.max.hover=new imgInfo(strcat("images/dialog/Vista/btnMaxOver.",a),25,18);this.themes.vista.btn.max.disabled=new imgInfo(strcat("images/dialog/Vista/btnMaxDisabled.",a),25,18);this.themes.vista.btn.restore=new Object;this.themes.vista.btn.restore.normal=new imgInfo(strcat("images/dialog/Vista/btnRestore.",a),25,18);this.themes.vista.btn.restore.hover=new imgInfo(strcat("images/dialog/Vista/btnRestoreOver.",a),25,18);this.themes.vista.btn.restore.disabled=new imgInfo(strcat("images/dialog/Vista/btnRestoreDisabled.",a),25,18);this.themes.vista.btn.top=0;this.themes.vista.btn.right=this.themes.vista.T.R.width;this.themes.vista.btn.width=this.themes.vista.btn.close.normal.total.width+this.themes.vista.btn.max.normal.total.width;this.themes.vista.btn.height=this.themes.vista.btn.close.normal.total.height>this.themes.vista.btn.max.normal.total.height?this.themes.vista.btn.close.normal.total.height:this.themes.vista.btn.max.normal.total.height;this.themes.vista.title=new Object;this.themes.vista.title.align="left";this.themes.vista.title.height=17;this.themes.vista.title.AdjTDW=this.themes.vista.T.L.total.width+this.themes.vista.T.R.total.width;this.themes.vista.title.AdjDVW=20+this.themes.vista.btn.width+this.themes.vista.title.AdjTDW;this.themes.vista.content=new Object;this.themes.vista.content.AdjX=this.themes.vista.C.L.total.width;this.themes.vista.content.AdjY=this.themes.vista.T.C.total.height;this.themes.vista.content.iAdjW=this.themes.vista.C.L.total.width+this.themes.vista.C.R.total.width;this.themes.vista.content.iAdjH=this.themes.vista.T.C.total.height+this.themes.vista.B.C.total.height;this.themes.vista.content.oAdjW=this.themes.vista.C.L.total.width+this.themes.vista.C.R.total.width;this.themes.vista.content.oAdjH=this.themes.vista.T.C.total.height+this.themes.vista.B.C.total.height;this.themes.vista.images=[this.themes.vista.T.L.src,this.themes.vista.T.C.src,this.themes.vista.T.R.src,this.themes.vista.C.L.src,this.themes.vista.C.R.src,this.themes.vista.B.L.src,this.themes.vista.B.C.src,this.themes.vista.B.R.src,this.themes.vista.btn.close.normal.src,this.themes.vista.btn.close.hover.src,this.themes.vista.btn.close.disabled.src,this.themes.vista.btn.max.normal.src,this.themes.vista.btn.max.hover.src,this.themes.vista.btn.max.disabled.src,this.themes.vista.btn.restore.normal.src,this.themes.vista.btn.restore.hover.src,this.themes.vista.btn.restore.disabled.src];this.themes.osx.T=new Object;this.themes.osx.T.L=new imgInfo(strcat("images/dialog/OSX/sliceTL.",a),6,23);this.themes.osx.T.C=new imgInfo(strcat("images/dialog/OSX/sliceT.",a),1,23);this.themes.osx.T.R=new imgInfo(strcat("images/dialog/OSX/sliceTR.",a),6,23);this.themes.osx.C=new Object;this.themes.osx.C.L=null;this.themes.osx.C.C=new Object;this.themes.osx.C.C.padT=0;this.themes.osx.C.C.padR=0;this.themes.osx.C.C.padB=0;this.themes.osx.C.C.padL=0;this.themes.osx.C.C.border=new Object;this.themes.osx.C.C.border.size=1;this.themes.osx.C.C.border.color="#777";this.themes.osx.C.C.background=new Object;this.themes.osx.C.C.color="#777";this.themes.osx.C.R=null;this.themes.osx.B=null;this.themes.osx.btn=new Object;this.themes.osx.btn.close=new Object;this.themes.osx.btn.close.normal=new imgInfo(strcat("images/dialog/OSX/btnClose.",a),18,19);this.themes.osx.btn.close.hover=new imgInfo(strcat("images/dialog/OSX/btnCloseOver.",a),18,19);this.themes.osx.btn.close.disabled=new imgInfo(strcat("images/dialog/OSX/btnCloseDisabled.",a),18,19);this.themes.osx.btn.max=new Object;this.themes.osx.btn.max.normal=new imgInfo(strcat("images/dialog/OSX/btnMax.",a),18,19);this.themes.osx.btn.max.hover=new imgInfo(strcat("images/dialog/OSX/btnMaxOver.",a),18,19);this.themes.osx.btn.max.disabled=new imgInfo(strcat("images/dialog/OSX/btnMaxDisabled.",a),18,19);this.themes.osx.btn.restore=new Object;this.themes.osx.btn.restore.normal=new imgInfo(strcat("images/dialog/OSX/btnRestore.",a),18,19);this.themes.osx.btn.restore.hover=new imgInfo(strcat("images/dialog/OSX/btnRestoreOver.",a),18,19);this.themes.osx.btn.restore.disabled=new imgInfo(strcat("images/dialog/OSX/btnRestoreDisabled.",a),18,19);this.themes.osx.btn.top=2;this.themes.osx.btn.right=3;this.themes.osx.btn.width=this.themes.osx.btn.close.normal.total.width+this.themes.osx.btn.max.normal.total.width;this.themes.osx.btn.height=this.themes.osx.btn.close.normal.total.height>this.themes.osx.btn.max.normal.total.height?this.themes.osx.btn.close.normal.total.height:this.themes.osx.btn.max.normal.total.height;this.themes.osx.title=new Object;this.themes.osx.title.align="center";this.themes.osx.title.height=17;this.themes.osx.title.AdjTDW=this.themes.osx.T.L.total.width+this.themes.osx.T.R.total.width;this.themes.osx.title.AdjDVW=20+this.themes.osx.btn.width+this.themes.osx.title.AdjTDW;this.themes.osx.content=new Object;this.themes.osx.content.AdjX=this.themes.osx.C.C.border.size+this.themes.osx.C.C.padL;this.themes.osx.content.AdjY=this.themes.osx.T.C.total.height+this.themes.osx.C.C.border.size+this.themes.osx.C.C.padT;this.themes.osx.content.iAdjW=this.themes.osx.C.C.border.size*2+this.themes.osx.C.C.padL+this.themes.osx.C.C.padR;this.themes.osx.content.iAdjH=this.themes.osx.T.C.total.height+this.themes.osx.C.C.border.size*2+this.themes.osx.C.C.padT+this.themes.osx.C.C.padB;this.themes.osx.content.oAdjW=0;this.themes.osx.content.oAdjH=this.themes.osx.T.C.total.height;this.themes.osx.images=[this.themes.osx.T.L.src,this.themes.osx.T.C.src,this.themes.osx.T.R.src,this.themes.osx.btn.close.normal.src,this.themes.osx.btn.close.hover.src,this.themes.osx.btn.close.disabled.src,this.themes.osx.btn.max.normal.src,this.themes.osx.btn.max.hover.src,this.themes.osx.btn.max.disabled.src,this.themes.osx.btn.restore.normal.src,this.themes.osx.btn.restore.hover.src,this.themes.osx.btn.restore.disabled.src];return};this.preload=function(){if(!this.current||this.current.preloaded)return;for(var a in this.current.images)preloadImg(this.current.images[a]);this.current.preloaded=true;return};this.set=function(a,b,c){var d=new Object;if(!this.themes)this.init();l_strName=(a?a:this.nameDefault).toLowerCase();this.current=this.themes[l_strName];this.preload();d.content=new Object;d.content.adjX=this.current.content.AdjX;d.content.adjY=this.current.content.AdjY;d.content.width=b==0?this.browser.winWidth()-this.current.content.iAdjW:b;d.content.height=c==0?this.browser.winHeight()-this.current.content.iAdjH:c;d.window=new Object;d.window.width=d.content.width+this.current.content.iAdjW;d.window.height=d.content.height+this.current.content.iAdjH;d.content.outer=new Object;d.content.outer.width=d.window.width-this.current.content.oAdjW;d.content.outer.height=d.window.height-this.current.content.oAdjH;d.title=new Object;d.title.width=d.window.width-this.current.title.AdjTDW;d.title.height=this.current.title.height;d.title.div=new Object;d.title.div.width=d.window.width-this.current.title.AdjDVW;d.title.div.height=this.current.title.height;return d};this.unset=function(){this.current=null}}function imgInfo(a,b,c,d,e,f,g){this.src=a;this.width=b;this.height=c;this.padding=new Object;this.padding.top=d?d:0;this.padding.right=e?e:0;this.padding.bottom=f?f:0;this.padding.left=g?g:0;this.total=new Object;this.total.width=this.width+this.padding.left+this.padding.right;this.total.height=this.height+this.padding.top+this.padding.bottom;this.spacerHTML=function(){return"<img src='images/spacer.gif' border='0'>"};this.sizeCSS=function(){return strcat("width: ",this.total.width,"px; height",this.total.height,"px;")};this.paddingCSS=function(){return strcat("padding: ",this.padding.top,"px ",this.padding.right,"px ",this.padding.bottom,"px ",this.padding.left,"px")};this.defaultRepeat=function(){if(this.width==1)return"repeat-x";if(this.height==1)return"repeat-y";return"no-repeat"};this.backgroundCSS=function(a){var b=[];var c=a?a:this.defaultRepeat();var d=c=="no-repeat";if(c.toLowerCase()=="x")c="repeat-x";else if(c.toLowerCase()=="y")c="repeat-y";if(d||c=="repeat-y"){b.push("width: ");b.push(this.total.width);b.push("px;")}if(d||c=="repeat-x"){if(b.length>0)b.push(" ");b.push("height: ");b.push(this.total.height);b.push("px;")}if(b.length>0)b.push(" ");return strcat(b.join(""),"background-image: url(",this.src,"); background-repeat: ",c,";")}}function Browser(){var a;var b;var c;var d=null;this.m_bIsIE=false;this.m_bIsNS=false;this.m_bIsMobi=false;this.m_strMobi="";this.m_bIsWin=window.navigator.userAgent.toLowerCase().indexOf("windows")!=-1;this.m_strName="";this.m_fVersion=null;if(!(d=/.*(MSIE|Firefox|Opera|Netscape|Netscape6|Chrome)[  /]([\d]+(?:[.][\d]+)?).*/i.exec(window.navigator.userAgent)))if(!(d=/.*(Safari)[  /]([\d]+(?:[.][\d]+)?).*/i.exec(window.navigator.userAgent)))d=/.*(Mozilla)[  /]([\d]+(?:[.][\d]+)?).*/i.exec(window.navigator.userAgent);if(d&&d.length>2){this.m_strName=d[1];this.m_fVersion=parseFloat(d[2]);this.m_bIsIE=this.m_strName=="MSIE";this.m_bIsNS=!this.m_bIsIE}if(!(d=/\W(ipod|ipad|iphone|android|opera mini|blackberry|palm os|palm|hitop|avantgo|plucker|xiino|blazer|elaine|smartphone|iemobile)\W/i.exec(window.navigator.userAgent)))d=/\W(windows ce|up.browser|up.link|mmp|symbian|midp|wap|vodaphone|o2|pocket|kindle|mobile|pda|psp|treo)\W/i.exec(window.navigator.userAgent);if(this.m_bIsMobi=d&&d.length>1)this.m_strMobi=d[1];this.isIE=function(){return this.m_bIsIE};this.isNS=function(){return this.m_bIsNS};this.isWindows=function(){return this.m_bIsWin};this.typename=function(){return this.m_strName};this.version=function(){return this.m_fVersion};this.isMobile=function(){return this.m_bIsMobi};this.mobiletype=function(){return this.m_strMobi};this.private_filterWinVal=function(a,b,c){var d=a?a:0;var e=b?b:0;var f=c?c:0;if(e&&(!d||d>e))d=e;return f&&(!d||d>f)?f:d};this.private_filterWinDim=function(a,b,c){var d=a?a:0;var e=b?b:0;var f=c?c:0;var g=Math.max(d,e);return g>0?g:f};this.winWidth=function(){var a=window.innerWidth?window.innerWidth:0;var b=document.documentElement?document.documentElement.clientWidth:0;var c=document.body?document.body.clientWidth:0;return this.private_filterWinDim(a,b,c)};this.docWidth=function(){var a=window.innerWidth?window.innerWidth:0;var b=document.documentElement?document.documentElement.clientWidth:0;var c=document.body?document.body.clientWidth:0;return this.private_filterWinVal(a,b,c)};this.winHeight=function(){var a=window.innerHeight?window.innerHeight:0;var b=document.documentElement?document.documentElement.clientHeight:0;var c=document.body?document.body.clientHeight:0;return this.private_filterWinDim(a,b,c)};this.docHeight=function(){var a=window.innerHeight?window.innerHeight:0;var b=document.documentElement?document.documentElement.clientHeight:0;var c=document.body?document.body.clientHeight:0;return this.private_filterWinVal(a,b,c)};this.winScrollX=function(){var a=window.pageXOffset?window.pageXOffset:0;var b=document.documentElement?document.documentElement.scrollLeft:0;var c=document.body?document.body.scrollLeft:0;return this.private_filterWinVal(a,b,c)};this.winScrollY=function(){var a=window.pageYOffset?window.pageYOffset:0;var b=document.documentElement?document.documentElement.scrollTop:0;var c=document.body?document.body.scrollTop:0;return this.private_filterWinVal(a,b,c)};this.center=function(a,b){var c=new Object;var d=a?a:0;var e=b?b:0;var f=0;var g=0;var h=0;var i=0;c.x=0;c.y=0;f=this.winWidth();g=this.winHeight();h=f>0?f/2:f;i=g>0?g/2:g;c.x=d>0?h-d/2:h;c.y=e>0?i-e/2:i;if(c.x<0)c.x=0;if(c.y<0)c.y=0;return c};this.getKeyCode=function(a){if(window.event)return a.keyCode;if(a.which)a.which;return-1};this.cancelEvent=function(a){if(this.isIE())a.returnValue=false;return false}}function AJAX_Request(a){this.m_strType=a;this.m_strResponse="";this.m_strError="";this.m_unlHttp=null;this.m_funReturn=null;this.m_mapReturn=[];this.m_bPageFetched=false;this.setType=function(a){this.m_strType=a};this.loaded=function(){return this.m_bDataFetched};this.error=function(){return this.m_strError!=""};this.errMsg=function(){return this.m_strError};this.page=function(){return this.m_strResponse};this.requestPage=function(a,b,c,d){var e=this;l_strPage=a;l_strArgs="";l_vecArgs=[];for(var f in b)l_vecArgs.push(urlenc(f)+"="+urlenc(b[f]));this.m_nRequests++;this.m_funReturn=c;this.m_mapReturn=d;this.m_bDataFetched=false;this.m_strResponse="";this.m_strError="";if(this.m_unlHttp!=null)delete this.m_unlHttp;this.m_unlHttp=null;if(window.XMLHttpRequest)this.m_unlHttp=new XMLHttpRequest;else if(window.ActiveXObject)this.m_unlHttp=new ActiveXObject("Microsoft.XMLHTTP");else{alert("Your browser does not support HTTP Request");return}this.m_unlHttp.onreadystatechange=function(){e.stateChanged()};if(l_vecArgs.length<1||this.m_strType.toUpperCase()=="GET"){if(l_vecArgs.length>0)l_strPage+="?"+l_vecArgs.join("&");this.m_unlHttp.open("GET",l_strPage,true);this.m_unlHttp.send(null);return}l_strArgs=l_vecArgs.join("&");this.m_unlHttp.open("POST",l_strPage,true);this.m_unlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");this.m_unlHttp.setRequestHeader("Content-Length",l_strArgs.length);this.m_unlHttp.send(l_strArgs);return};this.stateChanged=function(){if(this.m_unlHttp.readyState==4||this.m_unlHttp.readyState=="complete"){if(this.m_unlHttp.status!=200)this.m_strError="ERROR: "+this.m_unlHttp.responseText;else{this.m_strResponse=this.m_unlHttp.responseText;this.m_bPageFetched=true}if(this.m_funReturn!=null)this.m_funReturn(this.m_mapReturn)}}}function AJAX_Records(a){this.m_mapIdx=[];this.m_strDelimiter=a;this.m_strRequest="";this.m_bDataFetched=false;this.m_strError="";this.m_unlHttp=null;this.m_vecSchema=[];this.m_vecData=[];this.m_unlHttp=null;this.m_funReturn=null;this.m_mapReturn=[];this.m_nCursor=-1;this.m_nRequests=0;this.setDelimiter=function(a){this.m_strDelimiter=a};this.loaded=function(){return this.m_bDataFetched};this.error=function(){return this.m_strError!=""};this.errMsg=function(){return this.m_strError};this.atEnd=function(){return this.m_nCursor==-1};this.setIndex=function(a){l_nIdx1=0;l_nIdx2=0;this.m_mapIdx=[];for(l_nIdx1=0;l_nIdx1<this.m_vecSchema.length;l_nIdx1++)if(this.m_vecSchema[l_nIdx1]==a)break;if(l_nIdx1>=this.m_vecSchema.length)return false;for(l_nIdx2=0;l_nIdx2<this.m_vecData.length;l_nIdx2++)this.m_mapIdx[this.m_vecData[l_nIdx2][l_nIdx1]]=l_nIdx2;return true};this.toIdx=function(a){if(typeof this.m_mapIdx[a]=="undefined")return false;this.m_nCursor=this.m_mapIdx[a];return true};this.toFirst=function(){if(this.m_vecData.length<1)this.m_nCursor=-1;else this.m_nCursor=0};this.toLast=function(){if(this.m_vecData.length<1)this.m_nCursor=-1;else this.m_nCursor=this.m_vecData.length-1};this.toNext=function(){this.m_nCursor++;if(this.m_nCursor>=this.m_vecData.length){this.m_nCursor=-1;return false}return true};this.toPrevious=function(){this.m_nCursor--;if(this.m_nCursor<0){this.m_nCursor=-1;return false}return true};this.getCurrent=function(){if(this.m_nCursor==-1)return[];return this.m_vecData[this.m_nCursor]};this.getCurrentMap=function(){l_mapReturn=[];if(this.m_nCursor==-1)return l_mapReturn;for(l_nIdx=0;l_nIdx<this.m_vecSchema.length;l_nIdx++)l_mapReturn[this.m_vecSchema[l_nIdx]]=this.m_vecData[this.m_nCursor][l_nIdx];return l_mapReturn};this.getVecSchema=function(){return this.m_vecSchema};this.getMapSchema=function(){l_mapSchema=[];for(l_nIdx=0;l_nIdx<this.m_vecSchema.length;l_nIdx++)l_mapSchema[this.m_vecSchema[l_nIdx]]=l_nIdx;return l_mapSchema};this.getCount=function(){return this.m_vecData.length};this.requestData=function(a,b,c,d){var e=this;l_vecArgs=[];for(var f in b){l_vecArgs.push(urlenc(f)+"="+urlenc(b[f]))}this.m_strRequest=a;if(l_vecArgs.length>0)this.m_strRequest+="?"+l_vecArgs.join("&");this.m_nRequests++;this.m_funReturn=c;this.m_mapReturn=d;this.m_bDataFetched=false;this.m_vecSchema.length=0;this.m_vecData.length=0;this.m_nCursor=-1;if(this.m_unlHttp!=null)delete this.m_unlHttp;this.m_unlHttp=null;if(window.XMLHttpRequest){this.m_unlHttp=new XMLHttpRequest}else if(window.ActiveXObject){this.m_unlHttp=new ActiveXObject("Microsoft.XMLHTTP")}else{alert("Your browser does not support HTTP Request");return}this.m_unlHttp.onreadystatechange=function(){e.stateChanged()};this.m_unlHttp.open("GET",this.m_strRequest,true);this.m_unlHttp.send(null);return};this.parseBuffer=function(a){var b=new STRING_Parser(a);this.m_vecSchema=b.parseLine(this.m_strDelimiter);if(this.m_vecSchema.length>0){while(!b.EOL()){l_vecCurRow=b.parseLine(this.m_strDelimiter);if(l_vecCurRow.length<1)continue;if(l_vecCurRow.length!=this.m_vecSchema.length){this.m_strError="Schema column count of "+this.m_vecSchema.length+" did not match data row #"+this.m_vecData.length+" with count of "+l_vecCurRow.length+".";this.m_vecSchema.length=0;this.m_vecData.length=0;this.m_bDataFetched=false;return false}this.m_vecData.push(l_vecCurRow)}}this.m_bDataFetched=true;this.m_nCursor=-1;return true};this.stateChanged=function(){if(this.m_unlHttp.readyState==4||this.m_unlHttp.readyState=="complete"){if(this.m_unlHttp.status!=200)this.m_strError="ERROR: "+this.m_unlHttp.responseText;else{l_strContentType=this.m_unlHttp.getResponseHeader("Content-Type").toLowerCase();l_bGoodSrc=false;if(l_strContentType=="text/psv"&&this.m_strDelimiter=="|")l_bGoodSrc=true;else if(l_strContentType=="text/csv"&&(this.m_strDelimiter==","||this.m_strDelimiter=="\t"))l_bGoodSrc=true;if(l_bGoodSrc)this.parseBuffer(this.m_unlHttp.responseText);else this.m_strError="<b>ERROR: Invalid Data Source</b><br>"+this.m_unlHttp.responseText}if(this.m_funReturn!=null)this.m_funReturn(this.m_mapReturn)}}}function STRING_Parser(a){this.m_strBuffer=a;this.m_nCursor=0;if(a.length<1)this.m_nCursor=-1;this.EOL=function(){return this.m_nCursor==-1||this.m_nCursor>=this.m_strBuffer.length};this.parseLine=function(a){l_vecRec=[];l_vecCur=[];l_chCurQt="";for(l_nIdx=this.m_nCursor;l_nIdx<this.m_strBuffer.length;l_nIdx++){l_chCur=this.m_strBuffer.charAt(l_nIdx);if(l_chCurQt==""){if(l_chCur==a||l_chCur=="\n"){if(l_chCur=="\n"&&l_vecCur.length>0&&l_vecCur[l_vecCur.length-1]=="\r")l_vecCur.length--;l_vecRec.push(l_vecCur.join(""));l_vecCur=[];if(l_chCur=="\n"){this.m_nCursor=l_nIdx+1;return l_vecRec}continue}}switch(l_chCur){case'"':case"'":if(l_chCurQt=="")l_chCurQt=l_chCur;else if(l_chCurQt==l_chCur)l_chCurQt="";else l_vecCur.push(l_chCur);continue;case"\\":if(l_nIdx+1<this.m_strBuffer.length){l_nIdx++;l_chCur=this.m_strBuffer.charAt(l_nIdx);switch(l_chCur){case"r":l_vecCur.push("\r");break;case"n":l_vecCur.push("\n");break;case"f":l_vecCur.push("\f");break;case"t":l_vecCur.push("\t");break;case"v":l_vecCur.push("\v");break;case"0":l_vecCur.push("\0");break;default:l_vecCur.push(l_chCur)}}continue;default:l_vecCur.push(l_chCur)}}this.m_nCursor=l_nIdx;return l_vecRec}}function removeEvent(a,b,c,d){if(a.removeEventListener){a.removeEventListener(b,c,d);return true}else if(a.detachEvent){var e=a.detachEvent("on"+b,c);return e}else alert("Handler could not be removed")}function addEvent(a,b,c){if(a.addEventListener){a.addEventListener(b,c,false);return true}else if(a.attachEvent){var d=a.attachEvent("on"+b,c);return d}else return false}function img_change(a,b){a.src=b}function do_ErrDiv(a,b){alert(a);return false}function do_ErrPopup(a,b,c,d,e,f){var g=strcat("<table cellpadding=0 cellspacing=0 border=0><tr><td class=bigErr style='padding: 5px'>",b,"</td></tr></table>");var h=d?d:"osx";show_popup("PopUp",a,g,250,100,e,f,c,h);return false}function URI_Params(){var a=arguments.length<1?window.location.href:arguments[0];var b=a.split("#");var c=null;var d=0;this.m_mapParams=new Object;b=b.length>0?b[0].split("?"):[];b=b.length>1?b[1].split("&"):[];for(d=0;d<b.length;++d){c=b[d].split("=");if(c.length<1||c[0].length<1)continue;c[0]=urldec(c[0]);if(c.length<2)c.push("");else c[1]=urldec(c[1]);if(!this.m_mapParams[c[0]])this.m_mapParams[c[0]]=[];this.m_mapParams[c[0]].push(c[1])}this.getVector=function(a){var b=this.m_mapParams[a];return b?b:[]};this.get=function(a){var b=this.getVector(a);return b.length>0?b[b.length-1]:""};this.toString=function(){var a=[];var b=0;var c=null;var d=null;for(c in this.m_mapParams){d=this.getVector(c);for(b=0;b<d.length;++b)a.push(strcat(c,"=",d[b]))}return a.join("&")};this.length=function(){var a=0;var b=null;for(b in this.m_mapParams){if(this.m_mapParams.hasOwnProperty(b))a+=this.m_mapParams[b].length}return a}}function changeImg(a,b){if(a&&a.src)a.src=b}function preloadImg(a){l_objImg=document.createElement("img");for(l_nIdx=0;l_nIdx<g_vecPreloadHistory.length;l_nIdx++)if(g_vecPreloadHistory[l_nIdx]==a)return;g_vecPreloadHistory.push(a);l_objImg.src=a;return}function focus_field(a){l_objField=document.getElementById(a);if(!l_objField||l_objField.id!=a){l_objField=null;for(var b=0;!l_objField&&b<document.forms.length;++b)for(var c=0;!l_objField&&c<document.forms[b].elements.length;++c)if(document.forms[b].elements[c].id==a)l_objField=document.forms[b].elements[c]}if(l_objField&&!l_objField.disabled&&l_objField.type!="hidden"&&l_objField.style.visibility!="hidden"){if(l_objField.focus)l_objField.focus();if(l_objField.type&&(l_objField.type.toLowerCase()=="text"||l_objField.type.toLowerCase()=="password"))l_objField.select()}}function submitForm(a){l_objForm=document.getElementById(a);if(l_objForm&&l_objForm.submit)l_objForm.submit();return false}function file_ext(a){var b=a?a.length:0;var c=b;while(--c>-1&&a.charAt(c)!=".");if(c<0)return"";if(++c>=b)return"";return a.substring(c)}function dirname(a){var b=a?a.length:0;var c=b;while(--c>-1&&a.charAt(c)!="/"&&a.charAt(c)!="\\");if(c<0)return"";return a.substring(0,c)}function basename(a){var b=a?a.length:0;var c=b;while(--c>-1&&a.charAt(c)!="/"&&a.charAt(c)!="\\");if(c<0)return a;if(++c>=b)return"";return a.substring(c)}function loadPopUpURL(a,b,c,d){var e=makeURL(a,d);var f=window.open(e,"PopUpWindow","width="+b+",height="+c+",resizeable=yes,scrollbars=yes,location=no,directories=no,toolbar=no,status=no,menubar=no");if(f&&f.focus)f.focus();return}function loadURL(a,b,c){var d=makeURL(a,c);if(b){var e=window.open(d);if(e&&e.focus)e.focus()}else self.location=d;return false}function makeURL(a,b){var c=[];var d=a;if(!b||b.length<1)return d;for(var e in b)c.push(strcat(urlenc(e),"=",urlenc(b[e])));d=strcat(a,"?",c.join("&"));return d}function makeFormURL(a){var b=a?a.form:null;var c=b?b.elements:null;var d=null;var e=null;var f=[];var g=0;var h=0;var i=0;if(b)f.push(b.action);if(c){for(h=0;h<c.length;++h){d=c[h];if(!d.name)continue;switch(d.type){case"image":continue;case"radio":case"checkbox":if(d.checked){f.push(g++==0?"?":"&");f.push(urlenc(d.name));f.push("=");f.push(urlenc(d.value))}break;case"submit":if(a==d){f.push(g++==0?"?":"&");f.push(urlenc(d.name));f.push("=");f.push(urlenc(d.type=="image"?"true":d.value))}break;case"select-one":case"select-multiple":e=d.options;for(i=0;i<e.length;++i){if(!e[i].selected)continue;f.push(g++==0?"?":"&");f.push(urlenc(d.name));f.push("=");f.push(urlenc(e[i].value))}break;default:f.push(g++==0?"?":"&");f.push(urlenc(d.name));f.push("=");f.push(urlenc(d.value))}}if(a.name&&a.type=="image"){f.push(g++==0?"?":"&");f.push(urlenc(a.name));f.push("=");f.push("true")}}return f.join("")}function getNumber(a,b){var c=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"];var d=[];var e=null;var f=a?a.toUpperCase():"";var g=!b||b<1||f.indexOf(".")>-1?true:false;var h=!b||b<1?10:b;var i=0;var j=0;var k=" ";if(!g&&f.length>1&&f.substring(0,2)=="0X"&&f.indexOf(".")==-1)h=(j=2)+14;for(i=0;i<h;++i)d.push(c[i]);d.push(".");d.push("-");d.push("+");e=d.join("");d=[];h=f.length;for(i=j;i<h;++i)if((j=e.indexOf(k=f.charAt(i)))>-1)d.push(k);f=d.join("");return g?parseFloat(f):parseInt(f,b)}function firstChild(a,b,c){var d=null;if(c<1)return a&&a.nodeName.toLowerCase()=="div"?a:null;if(a&&a.childNodes)for(var e=0;e<a.childNodes.length&&!d;++e)if(a.childNodes[e]&&a.childNodes[e].nodeName.toLowerCase()==b)d=firstChild(a.childNodes[e],b,c-1);return d}function setSessCookie(a,b){document.cookie=strcat(a,"=",b)}function getSessCookie(a){var b=(document.cookie+"").split(";");if(!b)return"";for(var c=0;c<b.length;++c){var d=trimstr(b[c]);var e="";var f=!d?-1:d.indexOf("=");if(f!=-1){e=f+1<d.length?trimstr(d.substr(f+1)):"";d=trimstr(d.substr(0,f))}if(d==a)return e}return""}function parseURL(){var a=new Object;var b=window.location.href.split("?");a.url=separateURL(b[0]);a.args=b.length>1?separateARGS(b[1]):new Object;return a}function separateARGS(a){var b=new Object;var c=a?a.split("&"):null;if(!c)return b;for(var d=0;d<c.length;++d){var e=c[d].split("=");if(e.length<1)continue;if(e.length<2)e.push("");b[urldec(e[0])]=urldec(e[1])}return b}function separateURL(a){var b=0;var c=0;var d=new Object;d.domain="";d.path="";if((b=a.indexOf("://"))==-1)b=0;else b+=3;if((c=a.indexOf("/",b))==-1)c=a.length;d.domain=a.substring(b,c);if(c==a.length||++c>=a.length)return d;b=c;c=a.length;d.path=a.substring(b,c);return d}function urldec(a){return unescape(a.replace(/\+/g," "))}function urlenc(a){var b=/^([a-zA-Z0-9\-\_\.])$/;var c=[];var d=a+"";for(l_nIdx=0;l_nIdx<d.length;l_nIdx++){l_cCur=d.charAt(l_nIdx);if(l_cCur==" ")c.push("+");else if(b.test(l_cCur))c.push(l_cCur);else c.push(getHexChar(d.charCodeAt(l_nIdx)))}return c.join("")}function getHexChar(a){var b=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"];var c=[];c.push("%");c.push(b[a>>4]);c.push(b[a&15]);return c.join("")}function trimstr(a){return ltrimstr(rtrimstr(a))}function rtrimstr(a){return!a?"":(a+"").replace(/\s+$/g,"")}function ltrimstr(a){return!a?"":(a+"").replace(/^\s+/g,"")}function strcat(){var a=[];var b=0;var c=arguments.length;for(b=0;b<c;++b)a.push(arguments[b]);return a.join("")}var g_vecPreloadHistory=[];var g_objTheme=new popupTheme;var g_objBrowser=g_objTheme.browser;var g_objPopupMask=null;var g_vecPopUpDivs=new Array;var g_objDragIt=new Object;var g_objMaxProps=new Object;var g_vecTabIndexes=new Array;var g_vecTabbableTags=new Array("A","SUBMIT","IMAGE","BUTTON","TEXTAREA","INPUT","IFRAME");var g_bPopupIsShown=false;var g_nScrollLockX=0;var g_nScrollLockY=0;var g_mapFuncRet=new Array;var g_objStatMsg=null;var g_objSort=null;g_objDragIt.zIndex=50

