﻿var T=function(id,parent){if(typeof(id)=='object')return id;if(!aA(id))return null;if(typeof(id)=='string'&&id.isEmpty())return null;if(!parent)return document.getElementById(id);if(parent.getElementById)return parent.getElementById(id);var nodeQueue=[];var childNodes=parent.childNodes;for(var i=0;i<childNodes.length;i++){var node=childNodes[i];if(node.nodeType==1)nodeQueue[nodeQueue.length]=node;}while(nodeQueue.length){node=nodeQueue.shift();if(node.id==id)return node;childNodes=node.childNodes;for(var i=0;i<childNodes.length;i++){node=childNodes[i];if(node.nodeType==1)nodeQueue[nodeQueue.length]=node;}}return null;};var aA=function(object){return(object!=null&&typeof(object)!='undefined');};String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"");};String.prototype.leftTrim=function(){return this.replace(/^\s+/,"");};String.prototype.rightTrim=function(){return this.replace(/\s+$/,"");};String.prototype.startsWith=function(str){return(this.indexOf(str)==0);};String.prototype.endsWith=function(str){return((this.length-str.length)==this.lastIndexOf(str));};String.prototype.isEmpty=function(){return(this.trim()=='');};String.prototype.isNotEmpty=function(){return!this.isEmpty();};String.prototype.format=function(){var args=arguments;return this.replace(/\{\d+\}/g,function(capture){return args[capture.match(/\d+/)];});};String.prototype.isNumber=function(){return this.search(/[^0-9\.e-]/gi)<0;};auS=new RegExp('(\\'+['/','.','*','+','?','|','(',')','[',']','{','}','\\'].join('|\\')+')','g');String.prototype.replaceAll=function(oldText,newText){oldText=oldText.replace(auS,'\\$1');regexp=new RegExp(oldText,"gi");var s=this.replace(regexp,newText);return s;};auP=new RegExp('('+['"','<','>','&'].join('|')+')','g');Hf=new Array();Hf['"']='&quot;';Hf['<']='&lt;';Hf['>']='&gt;';Hf['&']='&amp;';String.prototype.HtmlEncodeSpecialChars=function(){var s=this.replace(auP,function($1){return Hf[$1];});return s;};auQ=new RegExp('('+['&quot;','&lt;','&gt;','&amp;'].join('|')+')','g');GL=new Array();GL['&quot;']='"';GL['&lt;']='<';GL['&gt;']='>';GL['&amp;']='&';String.prototype.HtmlDecodeSpecialChars=function(){var s=this.replace(auQ,function($1){return GL[$1];});return s;};String.format=function(){var pattern=arguments[0];var args=arguments;return pattern.replace(/\{\d+\}/g,function(capture){return args[parseInt(capture.match(/\d+/)[0])+1];});};String.removeAllAttributes=function(sXml){return sXml.replace(/(<\/?)(\w+:)?(\w+).*?(\/?>)/g,'$1$3$4');};String.removeAllNamespaces=function(sXml){var re=/xmlns:*(\w*?)\s*=.*?([\s|>])/ig;var re2="";var s=sXml.replace(re,function($0,$1,$2){if($1.length>0)re2+=(re2.length>0?"|":"")+$1+":";return $2.trim();});re2=eval("/("+re2+")/gi");s=s.replace(re2,"");return s;};String.removeSquareBrackets=function(str){return str.replaceAll("[","").replaceAll("]","");};String.removeRoundBrackets=function(str){return str.replaceAll("(","").replaceAll(")","");};String.removeAmpersand=function(str){return str.replaceAll("&","");};function eP(){this.buffer=[];};eP.prototype.aC=function(string){this.buffer.push(string);return this;};eP.prototype.clear=function(){this.buffer.length=0;};eP.prototype.isEmpty=function(){return(this.buffer.length==0);};eP.prototype.isNotEmpty=function(){return(this.buffer.length!=0);};eP.prototype.length=function(){return this.buffer.length;};eP.prototype.toString=function(separator){if(!aA(separator))separator="";return this.buffer.join(separator);};Array.copy=function abr(arr){return arr.slice();};Array.orderAscending=0;Array.orderDescending=1;Array.binarySearch=function(arr,order,value,compareFn){if(!aA(arr))return-1;if(!aA(order))order=Array.orderAscending;if(order!=Array.orderAscending&&order!=Array.orderDescending)order=Array.orderAscending;if(!aA(value))return-1;if(!aA(compareFn))compareFn=compare;function compare(order,value1,value2){var cmp=0;if(order==Array.orderAscending)cmp=(value1<value2)? -1:(value1==value2?0:1);else if(order==Array.orderDescending)cmp=(value1>value2)? -1:(value1==value2?0:1);return cmp;};var l=0,r=arr.length-1,m;while(l<=r){if(compareFn(order,value,arr[l])==0)return l;if(compareFn(order,value,arr[r])==0)return r;m=parseInt((l+r)/2);var cmp=compareFn(order,value,arr[m]);if(cmp==0){return m;}else if(cmp== -1){r=m-1;}else if(cmp==1){l=m+1;}else{break;}}return-1;};Array.binaryInsert=function(arr,order,value,compareFn){if(!aA(arr))return-1;if(!aA(order))order=Array.orderAscending;if(order!=Array.orderAscending&&order!=Array.orderDescending)order=Array.orderAscending;if(!aA(value))return-1;if(!aA(compareFn))compareFn=compare;function compare(order,value1,value2){var cmp=0;if(order==Array.orderAscending)cmp=(value1<value2)? -1:(value1==value2?0:1);else if(order==Array.orderDescending)cmp=(value1>value2)? -1:(value1==value2?0:1);return cmp;};var l=0,r=arr.length-1,m;while(l<=r){if(compareFn(order,value,arr[l])==0)break;if(compareFn(order,value,arr[r])==0){l=r;break;}m=parseInt((l+r)/2);var cmp=compareFn(order,value,arr[m]);if(cmp==0){break;}else if(cmp== -1){r=m-1;}else if(cmp==1){l=m+1;}else{break;}}arr.splice(l,0,value);return l;};Array.binarySort=function(){};Array.sort=function(arr,order){if(!aA(arr))return-1;if(!aA(order))order=Array.orderAscending;if(order!=Array.orderAscending&&order!=Array.orderDescending)order=Array.orderAscending;function compareAscending(value1,value2){var cmp=(value1<value2)? -1:(value1==value2?0:1);return cmp;};function compareDescending(value1,value2){var cmp=0;if(order==Array.orderAscending)cmp=(value1<value2)? -1:(value1==value2?0:1);else if(order==Array.orderDescending)cmp=(value1>value2)? -1:(value1==value2?0:1);return cmp;};var retArr=null;if(order==Array.orderAscending)retArr=arr.sort(compareAscending);else retArr=arr.sort(compareDescending);return retArr;};Array.getElementIdByValue=function aAQ(arr,value){if(!aA(arr)|| !aA(value))return null;if(arr.length>0){for(var i=0;i<arr.length;i++)if(arr[i]==value)return i;}else{for(var key in arr);if(arr[key]==value)return key;}return null;};Array.getElementByValue=function aBb(arr,value){if(!aA(arr)|| !aA(value))return null;var id=Array.getElementIdByValue(arr,value);if(id==null)return null;return arr[id];};Array.removeElementByValue=function aAO(arr,value){if(!aA(arr)|| !aA(value))return false;var id=Array.getElementIdByValue(arr,value);if(id==null)return false;try{if(typeof(id)=="number"){arr.splice(id,1);}else{delete arr[id];if(arr.length>0)arr.length--;}return true;}catch(e){}return false;};Array.removeElementByKey=function aAR(arr,key){if(!aA(arr)|| !aA(key))return false;try{for(var id in arr){if(id==key){delete arr[id];if(arr.length>0)arr.length--;return true;}}}catch(e){}return false;};Array.removeElementByIndex=function abg(arr,idx){if(!aA(arr)|| !aA(idx))return false;try{arr.splice(idx,1);}catch(e){return false;}return true;};Array.elementExists=function FL(arr,value){return(Array.getElementIdByValue(arr,value)!=null);};Number.prototype.format=function(pattern){var number=this;if(typeof(pattern)!='string')return number;if(pattern.search(/([\d#,?\.?]+)/)<0)return number;var numPattern=RegExp.$1;var pntSplit=numPattern.split('.');if(pntSplit.length==0){number=number.toFixed(0);}else if(pntSplit.length>1){number=number.toFixed(pntSplit[1].length);}if(pntSplit.length>2){return number.toString();}var numString=number.toString();if(numPattern.indexOf(',')> -1){pntSplit=numString.split('.');var cnum=pntSplit[0],parr=[],j=cnum.length,m=Math.floor(j/3),n=cnum.length%3||3;for(var i=0;i<j;i+=n){if(i!=0)n=3;parr[parr.length]=cnum.substr(i,n);m-=1;}numString=parr.join(',');if(pntSplit[1])numString+='.'+pntSplit[1];}return pattern.replace(/[\d#,?\.?]+/,numString);};var eg={browser:'',version:'',OS:'',init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";},searchString:function(data){for(var i=0;i<data.length;i++){var dataString=data[i].string;var dataProp=data[i].prop;this.versionSearchString=data[i].versionSearch||data[i].identity;if(dataString){if(dataString.indexOf(data[i].subString)!= -1)return data[i].identity;}else if(dataProp)return data[i].identity;}},searchVersion:function(dataString){var index=dataString.indexOf(this.versionSearchString);if(index== -1)return;return parseFloat(dataString.substring(index+this.versionSearchString.length+1));},dataBrowser:[{string:navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari",versionSearch:"Version"},{prop:window.opera,identity:"Opera"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"IE",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.platform,subString:"Linux",identity:"Linux"}],isIE:function(){return this.browser=="IE";}};eg.init();function eT(obj,eventName,fnHandler){if(!aA(obj)|| !aA(eventName)|| !aA(fnHandler))return;if(typeof(obj)=='string')obj=document.getElementById(obj);eventName=eventName.toLowerCase();if(eventName.startsWith("on"))eventName=eventName.substring(2,eventName.length);if(obj.addEventListener){if(!uu.contains(obj,eventName,fnHandler)){obj.addEventListener(eventName,fnHandler,false);uu.add(obj,eventName,fnHandler);}}else if(obj.attachEvent){if(!uu.contains(obj,eventName,fnHandler)){obj.attachEvent("on"+eventName,fnHandler);uu.add(obj,eventName,fnHandler);}}else{obj["on"+eventName]=obj["e"+eventName+fnHandler];}};function ka(obj,eventName,fnHandler){if(obj==null||eventName==null||fnHandler==null)return;if(typeof(obj)=='string')obj=document.getElementById(obj);eventName=eventName.toLowerCase();if(eventName.startsWith("on"))eventName=eventName.substring(2,eventName.length);if(obj.removeEventListener){if(uu.contains(obj,eventName,fnHandler)){obj.removeEventListener(eventName,fnHandler,false);uu.remove(obj,eventName,fnHandler);}}else if(obj.attachEvent){if(uu.contains(obj,eventName,fnHandler)){obj.detachEvent("on"+eventName,fnHandler);uu.remove(obj,eventName,fnHandler);}}else{obj["on"+eventName]=null;}};var uu=function(){var listEvents=[];return{listEvents:listEvents,add:function(obj,eventName,fnHandler){listEvents.push(arguments);},flush:function(){var i,item;for(i=listEvents.length-1;i>=0;i=i-1){item=listEvents[i];if(item[0].removeEventListener){item[0].removeEventListener(item[1],item[2],item[3]);};if(item[1].substring(0,2)!="on"){item[1]="on"+item[1];};if(item[0].detachEvent){item[0].detachEvent(item[1],item[2]);};item[0][item[1]]=null;};},contains:function(obj,eventName,fnHandler){var i,item;for(i=0;i<listEvents.length;i++){item=listEvents[i];itemEventName=item[1];if(itemEventName.startsWith("on"))itemEventName=itemEventName.substring(2,itemEventName.length);if((obj==item[0]||(obj.id&&item[0].id&&obj.id==item[0].id))&&eventName==itemEventName&&fnHandler==item[2])return true;}return false;},remove:function(obj,eventName,fnHandler){var i,item;if(eventName.startsWith("on"))eventName=eventName.substring(2,eventName.length);for(i=0;i<listEvents.length;i++){item=listEvents[i];itemEventName=item[1];if(itemEventName.startsWith("on"))itemEventName=itemEventName.substring(2,itemEventName.length);if((obj==item[0]||(obj.id&&item[0].id&&obj.id==item[0].id))&&eventName==itemEventName&&fnHandler==item[2]){listEvents.splice(i--,1);break;}}}};}();eT(window,'unload',uu.flush);function PL(name){return wZ(document.cookie,name);};function wZ(str,name){var start=str.indexOf(name+"=");var len=start+name.length+1;if((!start)&&(name!=str.substring(0,name.length))){return null;}if(start== -1)return null;var end=str.indexOf(';',len);if(end== -1)end=str.length;return unescape(str.substring(len,end));};function aBg(){var arr=new Array();var arr2=document.cookie.split(";");for(var i=0;i<arr2.length;i++){var arr3=arr2[i].split("=");if(arr3&&arr3.length==2)arr[arr3[0].trim()]=unescape(arr3[1]);}return arr;};function vK(name,value,expires,path,domain,secure){var today=new Date();today.setTime(today.getTime());if(expires){expires=expires*1000*60*60*24;}var expires_date=new Date(today.getTime()+(expires));document.cookie=name+'='+escape(value)+((expires)?';expires='+expires_date.toGMTString():'')+((path)?';path='+path:'')+((domain)?';domain='+domain:'')+((secure)?';secure':'');};function PM(name,path,domain){if(PL(name))document.cookie=name+'='+((path)?';path='+path:'')+((domain)?';domain='+domain:'')+';expires=Thu, 01-Jan-1970 00:00:01 GMT';};function aBi(path,domain){var arrCookies=document.cookie.split(";");for(var i=0;i<arrCookies.length;i++){var idx=arrCookies[i].indexOf("=");var name=(idx>0?arrCookies[i].substr(0,idx):arrCookies[i]).trim();PM(name,path,domain);}};function hq(){var oHttp=null;if(eg.browser!="IE"&&window.XMLHttpRequest){oHttp=new XMLHttpRequest();}else{if(window.ActiveXObject){try{var a=['Microsoft.XMLHTTP','Msxml2.XMLHTTP','Msxml2.XMLHTTP.3.0'];var i=a.length;while(i--){try{oHttp=new ActiveXObject(a[i]);if(oHttp)break;;}catch(e){}}}catch(e){oHttp=null;}}}return oHttp;};function aaF(){var oHttp=null;if(eg.browser!="IE"&&window.XMLHttpRequest){oHttp=new XMLHttpRequest();}else{if(window.ActiveXObject){try{var a=['Microsoft.XMLHTTP','Msxml2.XMLHTTP','Msxml2.XMLHTTP.3.0','Msxml2.XMLHTTP.5.0','Msxml2.XMLHTTP.6.0'];var i=a.length;while(i--){try{oHttp=new ActiveXObject(a[i]);if(oHttp)break;;}catch(e){}}}catch(e){oHttp=null;}}}return oHttp;};function aBj(url){var oHttp=hq();try{oHttp.open("GET",url,false);oHttp.setRequestHeader("Content-Type","text/text");oHttp.setRequestHeader("Accept-Encoding","gzip, deflate");oHttp.send(null);return oHttp.responseText;}catch(e){return e.message;}};function aar(url){xmlDoc=PS();if(xmlDoc==null)return null;xmlDoc.async=false;var bOK=xmlDoc.load(url);return xmlDoc;};function alI(url){xmlDoc=awd();if(xmlDoc==null)return null;xmlDoc.async=false;var bOK=xmlDoc.load(url);return xmlDoc;};function aBk(url){var oHttp=hq();oHttp.open("GET",url,false);oHttp.setRequestHeader("Content-Type","text/xml");oHttp.setRequestHeader("Accept-Encoding","gzip, deflate");oHttp.send(null);return(oHttp.responseXML.documentElement!=null)?oHttp.responseXML:null;};function fq(paramName){paramName=paramName.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regex=new RegExp("[\\?&]"+paramName+"=([^&#]*)","ig");var results=regex.exec(window.location.href);return(results==null)?"":results[1];};function aBh(){var url=window.location.href;var arrParams=new Array();if(url.search(/\?([\s\S]*)/ig)>0){var paramsString=RegExp.$1;var paramsPairs=paramsString.split("&");for(var i=0;i<paramsPairs.length;i++){var paramValue=paramsPairs[i].split("=");arrParams[paramValue[0]]="";if(paramValue[1])arrParams[paramValue[0]]=paramValue[1];}}return arrParams;};function aBP(href,paramName,paramValue){var url=href;var regexp=eval("/(\\?|\\&)("+paramName+"=[\\s\\S]*)(\\?|\\&)/ig");if(url.search(regexp)>0){url=url.replace(regexp,RegExp.$1+paramName+"="+paramValue+RegExp.$3);}else{var delimiter=(url.search(/\?/ig)<0)?delimiter="?":"&";url+=delimiter+paramName+"="+paramValue}return url;};function PS(){var xmlDoc=null;if(document.implementation&&document.implementation.createDocument)xmlDoc=document.implementation.createDocument("","",null);else{xmlDoc=new ActiveXObject("MSXML2.DOMDocument");if(xmlDoc==null)xmlDoc=new ActiveXObject("Microsoft.XMLDOM");}return xmlDoc;};function awd(){var xmlDoc=null;if(document.implementation&&document.implementation.createDocument)xmlDoc=document.implementation.createDocument("","",null);else{var a=['MSXML2.DOMDocument','MSXML2.DOMDocument.6.0'];var i=a.length;while(i--){try{xmlDoc=new ActiveXObject(a[i]);if(xmlDoc)break;;}catch(e){}}if(xmlDoc==null)xmlDoc=new ActiveXObject("Microsoft.XMLDOM");}return xmlDoc;};function aBx(){return PS();};function Xg(){return PS();};function iz(xmlText){var xmlDoc=null;try{if(eg.isIE()){xmlDoc=new ActiveXObject("MSXML2.DOMDocument");xmlDoc.async=false;xmlDoc.loadXML(xmlText);}else{var parser=new DOMParser();xmlDoc=parser.parseFromString(xmlText,"text/xml");}}catch(e){}return xmlDoc;};function Dz(xmlText){var xmlDoc=null;try{if(eg.isIE()){var a=['MSXML2.DOMDocument','MSXML2.DOMDocument.6.0'];var i=a.length;while(i--){try{xmlDoc=new ActiveXObject(a[i]);if(xmlDoc)break;;}catch(e){}}xmlDoc.async=false;xmlDoc.loadXML(xmlText);}else{var parser=new DOMParser();xmlDoc=parser.parseFromString(xmlText,"text/xml");}}catch(e){}return xmlDoc;};function ly(xmlText){return iz(xmlText);};function vp(http){var oXml=new ActiveXObject("MSXML2.DOMDocument");oXml.async=false;var bOK=oXml.load(http);return oXml;};function aAV(http){var oXml;var a=['MSXML2.DOMDocument',,'MSXML2.DOMDocument.6.0'];var i=a.length;while(i--){try{oXml=new ActiveXObject(a[i]);if(oXml)break;;}catch(e){}}oXml.async=false;var bOK=oXml.load(http);return oXml;};function aBw(http){return vp(http);};function oQ(node,sXPath){var oNode=node.selectSingleNode(sXPath);return aA(oNode)?oNode.text:"";};function bB(sTag,sValue){return "<{0}>{1}</{0}>".format(sTag,sValue);};function eq(sTag,sValue){return "<{0}><![CDATA[{1}]]></{0}>".format(sTag,sValue);};function awv(sSection,sTag,arr,encloseInCDATA){if(!aA(arr))return "<{0}></{0}>".format(sSection);if(!aA(encloseInCDATA))encloseInCDATA=false;var cQ=new eP();cQ.aC("<{0}>".format(sSection));for(var i=0;i<arr.length;i++)cQ.aC(encloseInCDATA?eq(sTag,arr[i]):bB(sTag,arr[i]));cQ.aC("</{0}>".format(sSection));return cQ.toString();};function AK(node,attrName,defValue){if(!aA(defValue))defValue=null;if(!aA(node)|| !aA(attrName))return defValue;var retValue=node.getAttribute(attrName);if(retValue==null)return retValue;return retValue;};function aBC(node,attrName,defValue){var retValue=fU(AK(node,attrName,defValue));return retValue;};function jn(parentNode,xPath){if(parentNode==null)return null;var oNode=parentNode.selectSingleNode(xPath);return oNode;};function aL(parentNode,xPath,defaultValue){if(!aA(xPath))xPath="";if(!aA(defaultValue))defaultValue="";if(parentNode==null)return defaultValue;var oNode=xPath.isEmpty()?parentNode:parentNode.selectSingleNode(xPath);return oNode?oNode.text:defaultValue;};function ge(parentNode,xPath,defaultValue){if(!aA(xPath))xPath="";if(!aA(defaultValue))defaultValue=0;if(parentNode==null)return defaultValue;var oNode=xPath.isEmpty()?parentNode:parentNode.selectSingleNode(xPath);if(!oNode)return defaultValue;var value=parseInt(oNode.text);return!isNaN(value)?value:defaultValue;};function rR(parentNode,xPath,defaultValue){if(!aA(xPath))xPath="";if(!aA(defaultValue))defaultValue=0.0;if(parentNode==null)return defaultValue;var oNode=xPath.isEmpty()?parentNode:parentNode.selectSingleNode(xPath);if(!oNode)return defaultValue;var value=parseFloat(oNode.text);return!isNaN(value)?value:defaultValue;};function eB(parentNode,xPath,defaultValue){if(!aA(xPath))xPath="";if(!aA(defaultValue))defaultValue=false;if(parentNode==null)return defaultValue;var oNode=xPath.isEmpty()?parentNode:parentNode.selectSingleNode(xPath);if(!oNode)return defaultValue;var nodeText=oNode.text.trim();if(nodeText=="true"||nodeText=="1")return true;else if(nodeText=="false"||nodeText=="0")return false;else return defaultValue;};function rU(nodeObj,attribute){if(!aA(nodeObj))return "";var oAttribute=nodeObj.attributes.getNamedItem(attribute);return(oAttribute)?oAttribute.text:"";};function avH(xmlStr,indentStr,newlineStr){return Or(xmlStr,indentStr,newlineStr);};function Or(xmlStr,indentStr,newlineStr){if(!aA(indentStr))indentStr="\t";if(!aA(newlineStr))newlineStr="\n";var spaces="\t\t\t\t\t\t\t\t\t\t";if(indentStr!="\t")spaces=spaces.replace(/\t/g,indentStr);xmlStr=xmlStr.replace(/(>)(<)(\/*)/g,"$1\r$2$3");var pad=0;var strArr=xmlStr.split("\r");var sb=new eP();for(var i=0;i<strArr.length;i++){var indent=0;var node=strArr[i];if(node.match(/.+<\/\w[^>]*>$/)){indent=0;}else if(node.match(/^<\/\w/)){if(pad>0){pad-=1;}}else if(node.match(/^<\w[^>]*[^\/]>.*$/)){indent=1;if(((i+1)<strArr.length)&&strArr[i+1].match(/^<\/\w/)){node+=strArr[i+1];indent=0;i++;}}else indent=0;sb.aC(Qi(spaces,pad)+node+newlineStr);pad+=indent;}var xml=sb.toString();return xml;function Qi(spaces,count){var retValue="";var indentLength=spaces.length/10;if(count<=0){}else if(count<10){retValue=spaces.substr(0,count*indentLength);}else{var decades=parseInt((count/10));for(var i=0;i<decades;i++)retValue+=spaces;var remainder=count%10;if(remainder>0)retValue+=spaces.substr(0,remainder*indentLength);}return retValue;}};function avH(xmlStr,indentStr,newlineStr){return Or(xmlStr,indentStr,newlineStr);};function Or(xmlStr,indentStr,newlineStr){if(!aA(indentStr))indentStr="\t";if(!aA(newlineStr))newlineStr="\n";var spaces="\t\t\t\t\t\t\t\t\t\t";if(indentStr!="\t")spaces=spaces.replace(/\t/g,indentStr);xmlStr=xmlStr.replace(/(>)(<)(\/*)/g,"$1\r$2$3");var pad=0;var strArr=xmlStr.split("\r");var sb=new eP();for(var i=0;i<strArr.length;i++){var indent=0;var node=strArr[i];if(node.match(/.+<\/\w[^>]*>$/)){indent=0;}else if(node.match(/^<\/\w/)){if(pad>0){pad-=1;}}else if(node.match(/^<\w[^>]*[^\/]>.*$/)){indent=1;if(((i+1)<strArr.length)&&strArr[i+1].match(/^<\/\w/)){node+=strArr[i+1];indent=0;i++;}}else indent=0;sb.aC(Qi(spaces,pad)+node+newlineStr);pad+=indent;}var xml=sb.toString();return xml;function Qi(spaces,count){var retValue="";var indentLength=spaces.length/10;if(count<=0){}else if(count<10){retValue=spaces.substr(0,count*indentLength);}else{var decades=parseInt((count/10));for(var i=0;i<decades;i++)retValue+=spaces;var remainder=count%10;if(remainder>0)retValue+=spaces.substr(0,remainder*indentLength);}return retValue;}};function alE(currentCallee,newLineSymbol){if(newLineSymbol==null||typeof(newLineSymbol)=='undefined')newLineSymbol='\n';var stackTraceMessage="";var nextCaller=currentCallee;while(nextCaller){stackTraceMessage+=alF(nextCaller)+newLineSymbol;nextCaller=nextCaller.caller;}return stackTraceMessage;};function alF(theFunction){var signature=amb(theFunction);signature+="(";if(theFunction.arguments){var fnSourceCode=theFunction.arguments.callee.toString();var startIdx=fnSourceCode.indexOf('(');var endIdx=fnSourceCode.indexOf(')',startIdx+1);var params=new Array();if(startIdx<endIdx)params=fnSourceCode.substring(startIdx+1,endIdx).split(',');for(var x=0;x<theFunction.arguments.length;x++){var nextArgument=theFunction.arguments[x];if(nextArgument==null)nextArgument='?';if(nextArgument.length>30)nextArgument=nextArgument.substring(0,30)+"...";signature+=params[x].trim()+"='"+nextArgument+"'";if(x<theFunction.arguments.length-1)signature+=", ";}}signature+=")";return signature;};function amb(theFunction){if(theFunction.name)return theFunction.name;var definition=theFunction.toString();var name=definition.substring(definition.indexOf('function')+8,definition.indexOf('('));if(name)return name;return "anonymous";};function aay(e,callee){var msg="Exception: "+e.name+" ("+e.number+")\n"+"Message: "+e.message+"\n"+"Description: "+e.description;if(callee)msg+="\n"+"StackTrace:\n    "+alE(callee,'\n    ');return msg;};function aBs(e,callee){if(typeof(_DEBUG)!='undefined'&&_DEBUG==true)P.ShowModal("Popups/MessageBox.aspx?text="+escape(aay(e,callee))+"&icon=success&buttons=ok","",null,"title:Message; width:250; height:100; autoHeight:true; zIndex:11100;");};function my(oElement,oParent){if(!aA(oParent))oParent=null;var x=0;while(oElement!=oParent){x+=oElement.offsetLeft;oElement=oElement.offsetParent;}return x;};function ov(oElement,oParent){if(!aA(oParent))oParent=null;var y=0;while(oElement!=oParent){y+=oElement.offsetTop;oElement=oElement.offsetParent;}return y;};function avI(){var scrollTop=0;if(self.pageYOffset)scrollTop=self.pageYOffset;else if(document.documentElement&&document.documentElement.scrollTop)scrollTop=document.documentElement.scrollTop;else if(document.body)scrollTop=document.body.scrollTop;return parseInt(scrollTop);};function avF(){var scrollLeft=0;if(self.pageXOffset)scrollLeft=self.pageXOffset;else if(document.documentElement&&document.documentElement.scrollLeft)scrollLeft=document.documentElement.scrollLeft;else if(document.body)scrollLeft=document.body.scrollLeft;return parseInt(scrollLeft);};function avJ(){if(aA(window.innerWidth))return window.innerWidth;if(aA(document.documentElement)&&aA(document.documentElement.clientWidth)&&document.documentElement.clientWidth>0)return document.documentElement.clientWidth;if(aA(document.body.clientWidth))return document.body.clientWidth;return 0;};function avK(){if(aA(window.innerHeight))return window.innerHeight;if(aA(document.documentElement)&&aA(document.documentElement.clientHeight)&&document.documentElement.clientHeight>0)return document.documentElement.clientHeight;if(aA(document.body.clientHeight))return document.body.clientHeight;return 0;};function Ki(){var width=0;if(aA(window.innerWidth))width=window.innerWidth;if(aA(document.documentElement)&&aA(document.documentElement.clientWidth))width=Math.max(width,document.documentElement.clientWidth);if(aA(document.body.clientWidth))width=Math.max(width,document.body.clientWidth);return width;};function Kh(){var height=0;if(aA(window.innerHeight))height=window.innerHeight;if(aA(document.documentElement)&&aA(document.documentElement.clientHeight))height=Math.max(height,document.documentElement.clientHeight);if(aA(document.body.clientHeight))height=Math.max(height,document.body.clientHeight);return height;};function aBl(oElement,oParent){var rect=new XS();if(!aA(oParent))oParent=null;rect.width=oElement.offsetWidth;rect.height=oElement.offsetHeight;while(oElement!=oParent){rect.left+=oElement.offsetLeft;rect.top+=oElement.offsetTop;oElement=oElement.offsetParent;}return rect;};function aE(){this.divId='essProgressIndicatorDiv';this.divBackColor="";this.divOpacity= -1;this.divCssClass="";this.imgId='essProgressIndicatorImg';this.imgSrc='essProgressIndicatorImg.gif';this.btnId='essProgressIndicatorBtn';this.btnCallback=null;this.btnShow=true;this.elementToCover=null;this.isBlocked=false;if(!aA(window.progressIndicator))window.progressIndicator=this;this.Show=function(bShow,elementToCover){if(this.isBlocked)return;this.elementToCover=T(elementToCover);if(this.divCssClass.isEmpty()){if(this.divBackColor.isEmpty())this.divBackColor=aE.DefaultBackColor;if(this.divOpacity<0)this.divOpacity=aE.DefaultOpacity;}var div=T(this.divId);if(div==null){if(eg.browser=="IE"){if(this.divCssClass.isNotEmpty())div=document.createElement(("<div id='{0}' class='{1}' style='z-index:10000; display:none;' ></div>").format(this.divId,this.divCssClass));else div=document.createElement(("<div id='{0}' "+"style='background-color:{1}; filter:alpha(opacity={2}); "+"position:absolute; display:none; z-index:10000;' > "+"</div>").format(this.divId,this.divBackColor,this.divOpacity));}else{div=document.createElement("div");div.setAttribute("id",this.divId);div.display="none";if(this.divCssClass.isNotEmpty()){div.setAttribute("class",this.divCssClass);}else{div.style.backgroundColor=this.divBackColor;div.style.opacity=this.divOpacity/100.0;}div.style.position="absolute";div.style.cursor="wait";div.style.zIndex="10000";}document.body.appendChild(div);}if(div==null)return;div.style.cursor="wait";var img=T(this.imgId);if(img==null){var imgSrc=aE.EssUrl+this.imgSrc;if(eg.browser=="IE"){img=document.createElement(("<img id='{0}' src='{1}' alt='' "+"style='position:absolute; cursor:wait; z-index:10001;' />").format(this.imgId,imgSrc));}else{img=document.createElement("img");img.setAttribute("id",this.imgId);img.setAttribute("src",imgSrc);img.setAttribute("alt",'');img.display="none";img.style.position="absolute";img.style.cursor="wait";img.style.zIndex="10001";}document.body.appendChild(img);}var btn=null;if(this.btnShow){btn=T(this.btnId);if(btn==null){if(eg.browser=="IE"){btn=document.createElement(("<input id='{0}' type='button' class='button' value='Cancel' onclick='XT()' "+"style='display:none; position:absolute; width:50px; z-index:10002;' />").format(this.btnId));}else{btn=document.createElement("input");btn.setAttribute("id",this.btnId);btn.setAttribute("type","button");btn.setAttribute("value","Cancel");btn.setAttribute("class","button");btn.setAttribute("onclick","XT()");btn.display="none";btn.style.position="absolute";btn.style.width="50px";btn.style.zIndex="10002";}document.body.appendChild(btn);}}if(bShow){if(div.style.display!='none')return;var left,top,width,height;if(!aA(this.elementToCover)){left=0;top=0;width=document.body.clientWidth;height=document.body.clientHeight;}else{left=my(this.elementToCover);top=ov(this.elementToCover);width=this.elementToCover.clientWidth;height=this.elementToCover.clientHeight;}div.style.left=left;div.style.top=top;div.style.width=width;div.style.height=height;div.style.display='';img.style.left=(width-img.offsetWidth)/2;img.style.top=(height-img.offsetHeight)/2;img.style.display='';if(btn){var diff=(img.offsetWidth-parseInt(btn.style.width))/2;btn.style.left=parseInt(img.style.left)+diff;btn.style.top=parseInt(img.style.top)+img.offsetHeight+5;btn.style.display='';}eT(window,"resize",CG);}else if(!bShow){div.style.cursor="default";div.style.display='none';if(img)img.style.display='none';if(btn)btn.style.display='none';ka(window,"resize",CG);}}};aE.AppUrl="";aE.EssUrl="";aE.DefaultBackColor="#CADDEC";aE.DefaultOpacity=20;aE.Init=function(bM,yc,backColor,opacity){aE.AppUrl=bM;if(!aE.AppUrl.endsWith("/"))aE.AppUrl+="/";aE.EssUrl=aE.AppUrl+yc;if(!aE.EssUrl.endsWith("/"))aE.EssUrl+="/";if(!aA(window.progressIndicator))window.progressIndicator=new aE();if(!aA(backColor))backColor=aE.DefaultBackColor;if(!aA(opacity))opacity=aE.DefaultOpacity;window.progressIndicator.divBackColor=backColor;window.progressIndicator.divOpacity=opacity;};aE.Init2=function(bM,yc,cssClass){aE.AppUrl=bM;if(!aE.AppUrl.endsWith("/"))aE.AppUrl+="/";aE.EssUrl=aE.AppUrl+yc;if(!aE.EssUrl.endsWith("/"))aE.EssUrl+="/";if(!aA(window.progressIndicator))window.progressIndicator=new aE();if(!aA(cssClass))cssClass="";window.progressIndicator.divCssClass=cssClass;};aE.Show=function avv(bShow,elementToCover){if(!aA(window.progressIndicator))window.progressIndicator=new aE();window.progressIndicator.btnShow=true;window.progressIndicator.Show(bShow,elementToCover);};aE.ShowNoCancel=function avv(bShow,elementToCover){if(!aA(window.progressIndicator))window.progressIndicator=new aE();window.progressIndicator.btnShow=false;window.progressIndicator.Show(bShow,elementToCover);};aE.ShowBlock=function aBO(){if(!aA(window.progressIndicator))window.progressIndicator=new aE();window.progressIndicator.Show(true);window.progressIndicator.isBlocked=true;};aE.HideBlock=function aBT(){if(!aA(window.progressIndicator))window.progressIndicator=new aE();window.progressIndicator.isBlocked=false;window.progressIndicator.Show(false);};function CG(){var progressIndicator=window.progressIndicator;if(!aA(progressIndicator))return;var div=T(progressIndicator.divId);if(!div)return;var elementToCover=T(progressIndicator.elementToCoverId);var left,top,width,height;if(!aA(elementToCover)){left=0;top=0;width=document.body.clientWidth;height=document.body.clientHeight;}else{left=my(elementToCover);top=ov(elementToCover);width=elementToCover.clientWidth;height=elementToCover.clientHeight;}div.style.left=left;div.style.top=top;div.style.width=width;div.style.height=height;var img=T(progressIndicator.imgId);img.style.left=(width-img.offsetWidth)/2;img.style.top=(height-img.offsetHeight)/2;var btn=T(progressIndicator.btnId);if(btn){var diff=(img.offsetWidth-parseInt(btn.style.width))/2;btn.style.left=parseInt(img.style.left)+diff;btn.style.top=parseInt(img.style.top)+img.offsetHeight+5;}};function XT(){var progressIndicator=window.progressIndicator;if(!aA(progressIndicator))return;if(progressIndicator.btnCallback)progressIndicator.btnCallback();};function kE(){this.element=null;this.draggingElement=null;this.mask=null;this.cursorStartX=0;this.cursorStartY=0;this.elStartLeft=0;this.elStartTop=0;this.zIndex=0;this.onStopCallback=null;kE.Start=alK;kE.Move=alM;kE.Stop=avP;};kE.dragObj=null;kE.Start=function alK(event,id,dragReal,onStopCallback){var x,y;if(!aA(dragReal))dragReal=true;if(!aA(onStopCallback))onStopCallback=null;kE.dragObj=new kE();var dragObj=kE.dragObj;dragObj.onStopCallback=onStopCallback;var isIE=(eg.browser=='IE');var isNS=(eg.browser=='Netscape');if(id)dragObj.element=document.getElementById(id);else{if(isIE)dragObj.element=window.event.srcElement;else dragObj.element=event.target;if(dragObj.element.nodeType==3)dragObj.element=dragObj.element.parentNode;}dragObj.draggingElement=dragObj.element;if(!dragReal){var zIndex=(dragObj.draggingElement.style.zIndex>11000)?dragObj.draggingElement.style.zIndex+100:11000;var parent=aA(dragObj.element.parentElement)?dragObj.element.parentElement:document.body;var mask=document.createElement("div");mask.style.position='absolute';mask.style.backgroundColor='Gray';mask.style.left="0px";mask.style.top="0px";mask.style.width=Ki()+"px";mask.style.height=Kh()+"px";mask.style.opacity=0;mask.style.filter='alpha(opacity=0)';mask.style.zIndex=zIndex;parent.appendChild(mask);dragObj.mask=mask;var element=document.createElement("div");element.style.backgroundColor='Transparent';element.style.borderStyle='dotted';element.style.borderWidth='1px';element.style.position='absolute';element.style.left=dragObj.element.style.left;element.style.top=dragObj.element.style.top;element.style.width=dragObj.element.offsetWidth+"px";element.style.height=dragObj.element.offsetHeight+"px";element.style.zIndex=zIndex+1;parent.appendChild(element);dragObj.draggingElement=element;}if(isIE){x=window.event.clientX+document.documentElement.scrollLeft+document.body.scrollLeft;y=window.event.clientY+document.documentElement.scrollTop+document.body.scrollTop;}else{x=event.clientX+window.scrollX;y=event.clientY+window.scrollY;}dragObj.cursorStartX=x;dragObj.cursorStartY=y;dragObj.elStartLeft=parseInt(dragObj.draggingElement.style.left,10);dragObj.elStartTop=parseInt(dragObj.draggingElement.style.top,10);if(isNaN(dragObj.elStartLeft))dragObj.elStartLeft=0;if(isNaN(dragObj.elStartTop))dragObj.elStartTop=0;eT(document,"mousemove",kE.Move);eT(document,"mouseup",kE.Stop);if(isIE){window.event.cancelBubble=true;window.event.returnValue=false;}else{event.preventDefault();}};kE.Move=function alM(event){var x,y;if(kE.dragObj==null)return;var dragObj=kE.dragObj;var isIE=(eg.browser=='IE');var isNS=(eg.browser=='Netscape');if(isIE){x=window.event.clientX+document.documentElement.scrollLeft+document.body.scrollLeft;y=window.event.clientY+document.documentElement.scrollTop+document.body.scrollTop;}else{x=event.clientX+window.scrollX;y=event.clientY+window.scrollY;}dragObj.draggingElement.style.left=(dragObj.elStartLeft+x-dragObj.cursorStartX)+"px";dragObj.draggingElement.style.top=(dragObj.elStartTop+y-dragObj.cursorStartY)+"px";if(isIE){window.event.cancelBubble=true;window.event.returnValue=false;}else event.preventDefault();};kE.Stop=function avP(event){var dragObj=kE.dragObj;var isIE=(eg.browser=='IE');var isNS=(eg.browser=='Netscape');if(dragObj.element!=dragObj.draggingElement){if(aA(dragObj.mask))dragObj.draggingElement.parentElement.removeChild(dragObj.mask);dragObj.element.style.left=dragObj.draggingElement.style.left;dragObj.element.style.top=dragObj.draggingElement.style.top;dragObj.draggingElement.parentElement.removeChild(dragObj.draggingElement);}ka(document,"mouseup",kE.Stop);ka(document,"mousemove",kE.Move);if(dragObj.onStopCallback!=null)dragObj.onStopCallback(event,dragObj.element);kE.dragObj=null;};function bY(){bY.currObj=this;bY.Start=awG;bY.Move=awj;bY.Stop=awF;};bY.currObj=null;bY.dragObj=null;bY.Direction=0;bY.MinWidth=0;bY.MinHeight=0;bY.NONE=0x0000;bY.TOP=0x0001;bY.RIGHT=0x0002;bY.BOTTOM=0x0004;bY.LEFT=0x0008;bY.TOPRIGHT=bY.TOP|bY.RIGHT;bY.RIGHTTOP=bY.TOP|bY.RIGHT;bY.RIGHTBOTTOM=bY.BOTTOM|bY.RIGHT;bY.BOTTOMRIGHT=bY.BOTTOM|bY.RIGHT;bY.LEFTBOTTOM=bY.BOTTOM|bY.LEFT;bY.BOTTOMLEFT=bY.BOTTOM|bY.LEFT;bY.LEFTTOP=bY.TOP|bY.LEFT;bY.TOPLEFT=bY.TOP|bY.LEFT;bY.ALL=0xFFFF;bY.Start=function awG(evnt,id,direction,resizeReal,minWidth,minHeight){var x,y;if(!aA(id))id="";if(!aA(direction))direction=bY.ALL;if(!aA(resizeReal))resizeReal=false;if(!aA(minWidth)||isNaN(parseInt(minWidth)))minWidth=0;if(!aA(minHeight)||isNaN(parseInt(minHeight)))minHeight=0;bY.Direction=direction;bY.MinWidth=minWidth;bY.MinHeight=minHeight;bY.dragObj=new Object();var dragObj=bY.dragObj;if(!aA(resizeReal))resizeReal=true;var isIE=(eg.browser=='IE');var isNS=(eg.browser=='Netscape');if(id)dragObj.element=document.getElementById(id);else{if(isIE)dragObj.element=evnt.srcElement;else dragObj.element=evnt.target;if(dragObj.element.nodeType==3)dragObj.element=dragObj.element.parentNode;}dragObj.draggingElement=dragObj.element;if(!resizeReal){var zIndex=(dragObj.draggingElement.style.zIndex>11000)?dragObj.draggingElement.style.zIndex+100:11000;var parent=aA(dragObj.element.parentElement)?dragObj.element.parentElement:document;var mask=document.createElement("div");mask.style.position='absolute';mask.style.backgroundColor='Gray';mask.style.left="0px";mask.style.top="0px";mask.style.width=Ki()+"px";mask.style.height=Kh()+"px";mask.style.opacity=0;mask.style.filter='alpha(opacity=0)';mask.style.zIndex=zIndex;parent.appendChild(mask);dragObj.mask=mask;var element=document.createElement("div");element.style.backgroundColor='Transparent';element.style.borderStyle='dotted';element.style.borderWidth='1px';element.style.position='absolute';element.style.left=dragObj.element.style.left;element.style.top=dragObj.element.style.top;element.style.width=dragObj.element.offsetWidth+"px";element.style.height=dragObj.element.offsetHeight+"px";element.style.zIndex=zIndex+1;parent.appendChild(element);dragObj.draggingElement=element;}if(isIE){x=evnt.clientX+document.documentElement.scrollLeft+document.body.scrollLeft;y=evnt.clientY+document.documentElement.scrollTop+document.body.scrollTop;}else{x=evnt.clientX+window.scrollX;y=evnt.clientY+window.scrollY;}dragObj.cursorStartX=x;dragObj.cursorStartY=y;dragObj.elStartLeft=parseInt(dragObj.draggingElement.style.left,10);dragObj.elStartTop=parseInt(dragObj.draggingElement.style.top,10);if(isNaN(dragObj.elStartLeft))dragObj.elStartLeft=0;if(isNaN(dragObj.elStartTop))dragObj.elStartTop=0;eT(document,"mousemove",bY.Move);eT(document,"mouseup",bY.Stop);if(isIE){window.event.cancelBubble=true;window.event.returnValue=false;}else{event.preventDefault();}};bY.Move=function awj(evnt){var x,y;if(bY.dragObj==null)return;var dragObj=bY.dragObj;var isIE=(eg.browser=='IE');var isNS=(eg.browser=='Netscape');if(isIE){x=evnt.clientX+document.documentElement.scrollLeft+document.body.scrollLeft;y=evnt.clientY+document.documentElement.scrollTop+document.body.scrollTop;}else{x=evnt.clientX+window.scrollX;y=evnt.clientY+window.scrollY;}var newX=(dragObj.elStartLeft+x-dragObj.cursorStartX);var newY=(dragObj.elStartTop+y-dragObj.cursorStartY);if(bY.Direction==bY.LEFT||bY.Direction==bY.LEFTTOP||bY.Direction==bY.LEFTBOTTOM){var newWidth=dragObj.element.offsetWidth+(dragObj.cursorStartX-x);if(newWidth<bY.MinWidth){newWidth=bY.MinWidth;newX=(dragObj.element.offsetLeft+dragObj.element.offsetWidth)-bY.MinWidth;}dragObj.draggingElement.style.left=newX+"px";dragObj.draggingElement.style.width=newWidth+"px";if(bY.Direction==bY.LEFTTOP){var newHeight=dragObj.element.offsetHeight+(dragObj.cursorStartY-y);if(newHeight<bY.MinHeight){newHeight=bY.MinHeight;newY=(dragObj.element.offsetTop+dragObj.element.offsetHeight)-bY.MinHeight;}dragObj.draggingElement.style.top=newY+"px";dragObj.draggingElement.style.height=newHeight+"px";}if(bY.Direction==bY.LEFTBOTTOM){var newHeight=dragObj.element.offsetHeight+(y-dragObj.cursorStartY);if(newHeight<bY.MinHeight)newHeight=bY.MinHeight;dragObj.draggingElement.style.height=newHeight+"px";}}else if(bY.Direction==bY.RIGHT||bY.Direction==bY.RIGHTTOP||bY.Direction==bY.RIGHTBOTTOM){var newWidth=dragObj.element.offsetWidth-(dragObj.cursorStartX-x);if(newWidth<bY.MinWidth)newWidth=bY.MinWidth;dragObj.draggingElement.style.width=newWidth+"px";if(bY.Direction==bY.RIGHTTOP){var newHeight=dragObj.element.offsetHeight+(dragObj.cursorStartY-y);if(newHeight<bY.MinHeight){newHeight=bY.MinHeight;newY=(dragObj.element.offsetTop+dragObj.element.offsetHeight)-bY.MinHeight;}dragObj.draggingElement.style.top=newY+"px";dragObj.draggingElement.style.height=newHeight+"px";}if(bY.Direction==bY.RIGHTBOTTOM){var newHeight=dragObj.element.offsetHeight-(dragObj.cursorStartY-y);if(newHeight<bY.MinHeight)newHeight=bY.MinHeight;dragObj.draggingElement.style.height=newHeight+"px";}}else if(bY.Direction==bY.TOP){var newHeight=dragObj.element.offsetHeight+(dragObj.cursorStartY-y);if(newHeight<bY.MinHeight){newHeight=bY.MinHeight;newY=(dragObj.element.offsetTop+dragObj.element.offsetHeight)-bY.MinHeight;}dragObj.draggingElement.style.top=newY+"px";dragObj.draggingElement.style.height=newHeight+"px";}else if(bY.Direction==bY.BOTTOM){var newHeight=dragObj.element.offsetHeight-(dragObj.cursorStartY-y);if(newHeight<bY.MinHeight)newHeight=bY.MinHeight;dragObj.draggingElement.style.height=newHeight+"px";}if(isIE){evnt.cancelBubble=true;evnt.returnValue=false;}else evnt.preventDefault();};bY.Stop=function awF(event){var dragObj=bY.dragObj;var isIE=(eg.browser=='IE');var isNS=(eg.browser=='Netscape');if(dragObj.element!=dragObj.draggingElement){if(aA(dragObj.mask))dragObj.draggingElement.parentElement.removeChild(dragObj.mask);dragObj.element.style.left=dragObj.draggingElement.style.left;dragObj.element.style.top=dragObj.draggingElement.style.top;try{var width=parseInt(dragObj.draggingElement.style.width)-(dragObj.element.offsetWidth-parseInt(dragObj.element.style.width));dragObj.element.style.width=width;}catch(e){}try{var height=parseInt(dragObj.draggingElement.style.height)-(dragObj.element.offsetHeight-parseInt(dragObj.element.style.height));dragObj.element.style.height=height;}catch(e){}dragObj.draggingElement.parentElement.removeChild(dragObj.draggingElement);}ka(document,"mouseup",bY.Stop);ka(document,"mousemove",bY.Move);bY.currObj=null;bY.dragObj=null;bY.MinWidth=0;bY.MinHeight=0;};function avM(beginColor,endColor,steps,delay,callback){this.beginColor=beginColor;this.endColor=endColor;this.steps=steps;this.delay=delay;this.callback=callback;this.data=new Array();this.timerId=0;for(var i=0,j=1;i<3;i++,j+=2)this.data[i]=new colorset(j,beginColor,endColor);function colorset(num,beginColor,endColor){this.begin=parseInt('0x'+beginColor.substring(num,num+2));this.end=parseInt('0x'+endColor.substring(num,num+2));this.up=this.startup=(this.end>=this.begin)?true:false;this.increment=Math.abs(this.end-this.begin)/steps;this.current=this.begin;};this.changeColor=function(){var color=new Array();for(var i=0;i<3;i++){(this.data[i].up)?this.data[i].current+=this.data[i].increment:this.data[i].current-=this.data[i].increment;if(this.data[i].startup){if(this.data[i].current>=this.data[i].end){this.data[i].up=false;this.data[i].current=this.data[i].end}if(this.data[i].current<=this.data[i].begin){this.data[i].up=true;this.data[i].current=this.data[i].begin}}if(!this.data[i].startup){if(this.data[i].current<=this.data[i].end){this.data[i].up=true;this.data[i].current=this.data[i].end}if(this.data[i].current>=this.data[i].begin){this.data[i].up=false;this.data[i].current=this.data[i].begin}}color[i]=this.data[i].current;}var r=Math.floor(color[0]).toString(16);if(r.length==1)r='0'+r;var g=Math.floor(color[1]).toString(16);if(g.length==1)g='0'+g;var b=Math.floor(color[2]).toString(16);if(b.length==1)b='0'+b;this.callback('#'+r+g+b);}};function XS(){this.left=0;this.top=0;this.width=0;this.height=0;this.Init=function(left,top,width,height){if(!aA(left))left=0;if(!aA(top))top=0;if(!aA(width))width=0;if(!aA(height))height=0;this.left=left;this.top=top;this.width=width;this.height=height;};this.GetRight=function(){return this.left+this.width;};this.GetBottom=function(){return this.top+this.height;}};function alH(){this.count=0;this.Obj=new Object();this.exists=alB;this.add=alG;this.remove=alO;this.removeAll=alN;this.values=alJ;this.keys=alC;this.items=alD;this.getValue=alA;this.setValue=alP;this.setKey=alQ;};function alB(sKey){return(this.Obj[sKey])?true:false;};function alG(sKey,aVal){var K=String(sKey);if(this.exists(K))return false;this.Obj[K]=aVal;this.count++;return true;};function alO(sKey){var K=String(sKey);if(!this.exists(K))return false;delete this.Obj[K];this.count--;return true;};function alN(){for(var key in this.Obj)delete this.Obj[key];this.count=0;};function alJ(){var Arr=new Array();for(var key in this.Obj)Arr[Arr.length]=this.Obj[key];return Arr;};function alC(){var Arr=new Array();for(var key in this.Obj)Arr[Arr.length]=key;return Arr;};function alD(){var Arr=new Array();for(var key in this.Obj){var A=new Array(key,this.Obj[key]);Arr[Arr.length]=A;}return Arr;};function alA(sKey){var K=String(sKey);return this.Obj[K];};function alP(sKey,aVal){var K=String(sKey);if(this.exists(K))this.Obj[K]=aVal;else this.add(K,aVal);};function alQ(sKey,sNewKey){var K=String(sKey);var Nk=String(sNewKey);if(this.exists(K)){if(!this.exists(Nk)){this.add(Nk,this.getValue(K));this.remove(K);}}else if(!this.exists(Nk))this.add(Nk,null);};function aat(input,w){var Nb=4;var Nr=w.length/Nb-1;var state=[[],[],[],[]];for(var i=0;i<4*Nb;i++)state[i%4][Math.floor(i/4)]=input[i];state=Qb(state,w,0,Nb);for(var round=1;round<Nr;round++){state=aaM(state,Nb);state=aaJ(state,Nb);state=avO(state,Nb);state=Qb(state,w,round,Nb);}state=aaM(state,Nb);state=aaJ(state,Nb);state=Qb(state,w,Nr,Nb);var output=new Array(4*Nb);for(var i=0;i<4*Nb;i++)output[i]=state[i%4][Math.floor(i/4)];return output;};function aaM(s,Nb){for(var r=0;r<4;r++){for(var c=0;c<Nb;c++)s[r][c]=Sbox[s[r][c]];}return s;};function aaJ(s,Nb){var t=new Array(4);for(var r=1;r<4;r++){for(var c=0;c<4;c++)t[c]=s[r][(c+r)%Nb];for(var c=0;c<4;c++)s[r][c]=t[c];}return s;};function avO(s,Nb){for(var c=0;c<4;c++){var a=new Array(4);var b=new Array(4);for(var i=0;i<4;i++){a[i]=s[i][c];b[i]=s[i][c]&0x80?s[i][c]<<1^0x011b:s[i][c]<<1;}s[0][c]=b[0]^a[1]^b[1]^a[2]^a[3];s[1][c]=a[0]^b[1]^a[2]^b[2]^a[3];s[2][c]=a[0]^a[1]^b[2]^a[3]^b[3];s[3][c]=a[0]^b[0]^a[1]^a[2]^b[3];}return s;};function Qb(state,w,rnd,Nb){for(var r=0;r<4;r++){for(var c=0;c<Nb;c++)state[r][c]^=w[rnd*4+c][r];}return state;};function aas(key){var Nb=4;var Nk=key.length/4;var Nr=Nk+6;var w=new Array(Nb*(Nr+1));var temp=new Array(4);for(var i=0;i<Nk;i++){var r=[key[4*i],key[4*i+1],key[4*i+2],key[4*i+3]];w[i]=r;}for(var i=Nk;i<(Nb*(Nr+1));i++){w[i]=new Array(4);for(var t=0;t<4;t++)temp[t]=w[i-1][t];if(i%Nk==0){temp=aaP(avQ(temp));for(var t=0;t<4;t++)temp[t]^=Rcon[i/Nk][t];}else if(Nk>6&&i%Nk==4){temp=aaP(temp);}for(var t=0;t<4;t++)w[i][t]=w[i-Nk][t]^temp[t];}return w;};function aaP(w){for(var i=0;i<4;i++)w[i]=Sbox[w[i]];return w;};function avQ(w){var tmp=w[0];for(var i=0;i<3;i++)w[i]=w[i+1];w[3]=tmp;return w;};var Sbox=[0x63,0x7c,0x77,0x7b,0xf2,0x6b,0x6f,0xc5,0x30,0x01,0x67,0x2b,0xfe,0xd7,0xab,0x76,0xca,0x82,0xc9,0x7d,0xfa,0x59,0x47,0xf0,0xad,0xd4,0xa2,0xaf,0x9c,0xa4,0x72,0xc0,0xb7,0xfd,0x93,0x26,0x36,0x3f,0xf7,0xcc,0x34,0xa5,0xe5,0xf1,0x71,0xd8,0x31,0x15,0x04,0xc7,0x23,0xc3,0x18,0x96,0x05,0x9a,0x07,0x12,0x80,0xe2,0xeb,0x27,0xb2,0x75,0x09,0x83,0x2c,0x1a,0x1b,0x6e,0x5a,0xa0,0x52,0x3b,0xd6,0xb3,0x29,0xe3,0x2f,0x84,0x53,0xd1,0x00,0xed,0x20,0xfc,0xb1,0x5b,0x6a,0xcb,0xbe,0x39,0x4a,0x4c,0x58,0xcf,0xd0,0xef,0xaa,0xfb,0x43,0x4d,0x33,0x85,0x45,0xf9,0x02,0x7f,0x50,0x3c,0x9f,0xa8,0x51,0xa3,0x40,0x8f,0x92,0x9d,0x38,0xf5,0xbc,0xb6,0xda,0x21,0x10,0xff,0xf3,0xd2,0xcd,0x0c,0x13,0xec,0x5f,0x97,0x44,0x17,0xc4,0xa7,0x7e,0x3d,0x64,0x5d,0x19,0x73,0x60,0x81,0x4f,0xdc,0x22,0x2a,0x90,0x88,0x46,0xee,0xb8,0x14,0xde,0x5e,0x0b,0xdb,0xe0,0x32,0x3a,0x0a,0x49,0x06,0x24,0x5c,0xc2,0xd3,0xac,0x62,0x91,0x95,0xe4,0x79,0xe7,0xc8,0x37,0x6d,0x8d,0xd5,0x4e,0xa9,0x6c,0x56,0xf4,0xea,0x65,0x7a,0xae,0x08,0xba,0x78,0x25,0x2e,0x1c,0xa6,0xb4,0xc6,0xe8,0xdd,0x74,0x1f,0x4b,0xbd,0x8b,0x8a,0x70,0x3e,0xb5,0x66,0x48,0x03,0xf6,0x0e,0x61,0x35,0x57,0xb9,0x86,0xc1,0x1d,0x9e,0xe1,0xf8,0x98,0x11,0x69,0xd9,0x8e,0x94,0x9b,0x1e,0x87,0xe9,0xce,0x55,0x28,0xdf,0x8c,0xa1,0x89,0x0d,0xbf,0xe6,0x42,0x68,0x41,0x99,0x2d,0x0f,0xb0,0x54,0xbb,0x16];var Rcon=[[0x00,0x00,0x00,0x00],[0x01,0x00,0x00,0x00],[0x02,0x00,0x00,0x00],[0x04,0x00,0x00,0x00],[0x08,0x00,0x00,0x00],[0x10,0x00,0x00,0x00],[0x20,0x00,0x00,0x00],[0x40,0x00,0x00,0x00],[0x80,0x00,0x00,0x00],[0x1b,0x00,0x00,0x00],[0x36,0x00,0x00,0x00]];function pf(sp,Ji,Jh){var Ll=16;if(!(Jh==128||Jh==192||Jh==256))return '';sp=sp.decodeBase64();Ji=Ji.encodeUTF8();var Ml=Jh/8;var Qj=new Array(Ml);for(var i=0;i<Ml;i++){Qj[i]=isNaN(Ji.charCodeAt(i))?0:Ji.charCodeAt(i);}var vo=aat(Qj,aas(Qj));vo=vo.concat(vo.slice(0,Ml-16));var Ku=new Array(8);ctrTxt=sp.slice(0,8);for(var i=0;i<8;i++)Ku[i]=ctrTxt.charCodeAt(i);var ahk=aas(vo);var Mt=Math.ceil((sp.length-8)/Ll);var ct=new Array(Mt);for(var b=0;b<Mt;b++)ct[b]=sp.slice(8+b*Ll,8+b*Ll+Ll);sp=ct;var aaD=new Array(sp.length);for(var b=0;b<Mt;b++){for(var c=0;c<4;c++)Ku[15-c]=((b)>>>c*8)&0xff;for(var c=0;c<4;c++)Ku[15-c-4]=(((b+1)/0x100000000-1)>>>c*8)&0xff;var cipherCntr=aat(Ku,ahk);var plaintxtByte=new Array(sp[b].length);for(var i=0;i<sp[b].length;i++){plaintxtByte[i]=cipherCntr[i]^sp[b].charCodeAt(i);plaintxtByte[i]=String.fromCharCode(plaintxtByte[i]);}aaD[b]=plaintxtByte.join('');}var PU=aaD.join('');PU=PU.decodeUTF8();return PU;};var b64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";String.prototype.encodeBase64=function(utf8encode){utf8encode=(typeof utf8encode=='undefined')?false:utf8encode;var o1,o2,o3,bits,h1,h2,h3,h4,e=[],pad='',c,plain,coded;plain=utf8encode?this.encodeUTF8():this;c=plain.length%3;if(c>0){while(c++ <3){pad+='=';plain+='\0';}}for(c=0;c<plain.length;c+=3){o1=plain.charCodeAt(c);o2=plain.charCodeAt(c+1);o3=plain.charCodeAt(c+2);bits=o1<<16|o2<<8|o3;h1=bits>>18&0x3f;h2=bits>>12&0x3f;h3=bits>>6&0x3f;h4=bits&0x3f;e[c/3]=b64.charAt(h1)+b64.charAt(h2)+b64.charAt(h3)+b64.charAt(h4);}coded=e.join('');coded=coded.slice(0,coded.length-pad.length)+pad;return coded;};function Dv(str){return str.encodeBase64();};String.prototype.decodeBase64=function(utf8decode){utf8decode=(typeof utf8decode=='undefined')?false:utf8decode;var o1,o2,o3,h1,h2,h3,h4,bits,d=[],plain,coded;coded=utf8decode?this.decodeUTF8():this;for(var c=0;c<coded.length;c+=4){h1=b64.indexOf(coded.charAt(c));h2=b64.indexOf(coded.charAt(c+1));h3=b64.indexOf(coded.charAt(c+2));h4=b64.indexOf(coded.charAt(c+3));bits=h1<<18|h2<<12|h3<<6|h4;o1=bits>>>16&0xff;o2=bits>>>8&0xff;o3=bits&0xff;d[c/4]=String.fromCharCode(o1,o2,o3);if(h4==0x40)d[c/4]=String.fromCharCode(o1,o2);if(h3==0x40)d[c/4]=String.fromCharCode(o1);}plain=d.join('');return utf8decode?plain.decodeUTF8():plain;};function GZ(str){return str.decodeBase64();};String.prototype.encodeUTF8=function(){var str=this.replace(/[\u0080-\u07ff]/g,function(c){var cc=c.charCodeAt(0);return String.fromCharCode(0xc0|cc>>6,0x80|cc&0x3f);});str=str.replace(/[\u0800-\uffff]/g,function(c){var cc=c.charCodeAt(0);return String.fromCharCode(0xe0|cc>>12,0x80|cc>>6&0x3F,0x80|cc&0x3f);});return str;};String.prototype.decodeUTF8=function(){var str=this.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,function(c){var cc=(c.charCodeAt(0)&0x1f)<<6|c.charCodeAt(1)&0x3f;return String.fromCharCode(cc);});str=str.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(c){var cc=((c.charCodeAt(0)&0x0f)<<12)|((c.charCodeAt(1)&0x3f)<<6)|(c.charCodeAt(2)&0x3f);return String.fromCharCode(cc);});return str;};function ll(){ll.enc64List=new Array();ll.dec64List=new Array();ll.Init=avR;ll.Encode=avS;ll.Decode=avT;};ll.enc64List=null;ll.dec64List=null;ll.Init=function avR(){ll.enc64List=new Array();ll.dec64List=new Array();var enc64List=ll.enc64List;var dec64List=ll.dec64List;for(var i=0;i<26;i++){enc64List[enc64List.length]=String.fromCharCode(65+i);}for(var i=0;i<26;i++){enc64List[enc64List.length]=String.fromCharCode(97+i);}for(var i=0;i<10;i++){enc64List[enc64List.length]=String.fromCharCode(48+i);}enc64List[enc64List.length]="+";enc64List[enc64List.length]="/";for(var i=0;i<128;i++){dec64List[dec64List.length]= -1;}for(var i=0;i<64;i++){dec64List[enc64List[i].charCodeAt(0)]=i;}};ll.Encode=function avS(str){var enc64List=ll.enc64List;var dec64List=ll.dec64List;var c,d,e,end=0;var u,v,w,x;var ptr= -1;var input=str.split("");var output="";while(end==0){c=(typeof input[++ptr]!="undefined")?input[ptr].charCodeAt(0):((end=1)?0:0);d=(typeof input[++ptr]!="undefined")?input[ptr].charCodeAt(0):((end+=1)?0:0);e=(typeof input[++ptr]!="undefined")?input[ptr].charCodeAt(0):((end+=1)?0:0);u=enc64List[c>>2];v=enc64List[(0x00000003&c)<<4|d>>4];w=enc64List[(0x0000000F&d)<<2|e>>6];x=enc64List[e&0x0000003F];if(end>=1){x="=";}if(end==2){w="=";}if(end<3){output+=u+v+w+x;}}var formattedOutput="";var lineLength=76;while(output.length>lineLength){formattedOutput+=output.substring(0,lineLength)+"\n";output=output.substring(lineLength);}formattedOutput+=output;return formattedOutput;};ll.Decode=function avT(str){var enc64List=ll.enc64List;var dec64List=ll.dec64List;var c=0,d=0,e=0,f=0,i=0,n=0;var input=str.split("");var output="";var ptr=0;do{f=input[ptr++].charCodeAt(0);i=dec64List[f];if(f>=0&&f<128&&i!= -1){if(n%4==0){c=i<<2;}else if(n%4==1){c=c|(i>>4);d=(i&0x0000000F)<<4;}else if(n%4==2){d=d|(i>>2);e=(i&0x00000003)<<6;}else{e=e|i;}n++;if(n%4==0){output+=String.fromCharCode(c)+String.fromCharCode(d)+String.fromCharCode(e);}}}while(typeof input[ptr]!="undefined");output+=(n%4==3)?String.fromCharCode(c)+String.fromCharCode(d):((n%4==2)?String.fromCharCode(c):"");return output;};function gI(){};gI.XmlFormatString="<?xml version=\"1.0\" encoding=\"utf-8\"?>"+"<soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' "+"xmlns:xsd='http://www.w3.org/2001/XMLSchema' "+"xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'>"+"<soap:Body>{0}</soap:Body></soap:Envelope>";gI.ErrorMessageFormatString="<b>code</b>:&nbsp;{0}<br/>"+"<b>message</b>:&nbsp;{1}<br/>"+"<b>detail</b>:&nbsp;{2}";gI.FaultFormatString="<?xml version=\"1.0\"?>"+"<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" "+"xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" "+"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">"+"<soap:Body>"+"<soap:Fault>"+"<faultcode>{0}</faultcode>"+"<faultstring>{1}</faultstring>"+"<detail>{2}</detail>"+"</soap:Fault>"+"</soap:Body>"+"</soap:Envelope>";gI.GetError=function(xmlDoc){var codeNode=xmlDoc.selectSingleNode("//faultcode");var code=codeNode?codeNode.text:"";var msgNode=xmlDoc.selectSingleNode("//faultstring");var msg=msgNode?msgNode.text:"";var detailNode=xmlDoc.selectSingleNode("//detail");var detail=detailNode?detailNode.text:"";return gI.ErrorMessageFormatString.format(code,msg,detail);};gI.SetError=function(code,message,detail){if(!aA(code))code="";if(!aA(message))message="";if(!aA(detail))detail="";var soap=gI.FaultFormatString.format(code,message,detail);return iz(soap);};function aBo(){};function awf(elm){if(!aA(elm))return false;if(aA(elm.style)&&aA(elm.style.display)&&(elm.style.display!="none"))return true;return false;};function awh(elm,sDisplay){if(!aA(elm))return false;if(aA(elm.style)&&aA(elm.style.display)){elm.style.display=sDisplay;return true;}return false;};function Js(elm,attrName,defValue){if(!aA(defValue))defValue=null;if(!aA(elm)|| !aA(attrName))return defValue;if(!aA(elm.getAttribute))return defValue;var retValue=elm.getAttribute(attrName);if(retValue==null)return retValue;return retValue;};function awi(elm,attrName,value){if(!aA(elm)|| !aA(attrName)|| !aA(value))return false;if(!aA(elm.setAttribute))return defValue;elm.setAttribute(attrName,value);return true;};function uh(){};uh.ContainsOptionByValue=ui;uh.ContainsOptionByText=awg;uh.AddOption=fA;uh.SelectOptionByValue=mg;uh.SelectOptionByText=jY;function ui(selectObj,sValue){for(var i=0;i<selectObj.options.length;i++)if(selectObj.options[i].value==sValue)return true;return false;};function awg(selectObj,sText){for(var i=0;i<selectObj.options.length;i++)if(selectObj.options[i].text==sText)return true;return false;};function avW(selectObj,sValue){for(var i=0;i<selectObj.options.length;i++)if(selectObj.options[i].value==sValue)return selectObj.options[i];return null;};function aBn(selectObj,sText){for(var i=0;i<selectObj.options.length;i++)if(selectObj.options[i].text==sText)return selectObj.options[i];return null;};function aBp(selectObj,sValue){for(var i=0;i<selectObj.options.length;i++)if(selectObj.options[i].value==sValue)return i;return-1;};function aBq(selectObj,sText){for(var i=0;i<selectObj.options.length;i++)if(selectObj.options[i].text==sText)return i;return-1;};function fA(selectObj,sValue,sText,bSetCurrentSelected){if(!aA(selectObj))return;if(!aA(bSetCurrentSelected))bSetCurrentSelected=false;for(var i=0;i<selectObj.options.length;i++){if(selectObj.options[i].value==sValue){selectObj.options[i].text=sText;if(bSetCurrentSelected)selectObj.selectedIndex=i;return false;}}var i=selectObj.options.length;selectObj.options[i]=new Option(sText,sValue);if(bSetCurrentSelected)selectObj.selectedIndex=i;return true;};function oE(selectObj,sValue){if(!aA(selectObj))return;var selectedIndex=selectObj.selectedIndex;for(var i=0;i<selectObj.options.length;i++){if(selectObj.options[i].value==sValue){selectObj.options[i]=null;if(selectedIndex==i){var idx=i;if(idx>selectObj.options.length-1)idx=selectObj.options.length-1;selectObj.selectedIndex=idx;}return true;}}return false;};function gV(selectObj){if(!aA(selectObj))return;selectObj.options.length=0;selectObj.selectedIndex= -1;};function mg(selectObj,sValue){for(var i=0;i<selectObj.options.length;i++){if(selectObj.options[i].value==sValue){selectObj.selectedIndex=i;return selectObj.options[i];}}return null;};function jY(selectObj,sText){for(var i=0;i<selectObj.options.length;i++){if(selectObj.options[i].text==sText){selectObj.selectedIndex=i;return selectObj.options[i];}}return null;};function Jk(selectObj,fromIdx,toIdx){if(selectObj==null)return;if(selectObj.options.length<2)return;if(fromIdx<0)fromIdx=0;if(toIdx<0)toIdx=0;if(fromIdx>=selectObj.options.length)fromIdx=selectObj.options.length-1;if(toIdx>=selectObj.options.length)toIdx=selectObj.options.length-1;if(fromIdx==toIdx)return;var fromValue=selectObj[fromIdx].value;var fromText=selectObj[fromIdx].text;var increment=(fromIdx<toIdx)?1: -1;var i=fromIdx;while(i!=toIdx){selectObj[i].value=selectObj[i+increment].value;selectObj[i].text=selectObj[i+increment].text;i+=increment;}selectObj[i].value=fromValue;selectObj[i].text=fromText;};function er(selectObj){if(!aA(selectObj))return;if(selectObj.selectedIndex>=0&&selectObj.selectedIndex<selectObj.options.length)return selectObj[selectObj.selectedIndex].value;return "";};function Bj(selectObj){if(!aA(selectObj))return;if(selectObj.selectedIndex>=0&&selectObj.selectedIndex<selectObj.options.length)return selectObj[selectObj.selectedIndex].text;return "";};function DQ(selectObj){if(!aA(selectObj))return;if(selectObj.selectedIndex>=0&&selectObj.selectedIndex<selectObj.options.length)return selectObj[selectObj.selectedIndex];return null;};function lK(selectObj,arr){if(!aA(selectObj))return;if(!aA(arr))return;for(var i=0;i<arr.length;i++)fA(selectObj,arr[i],arr[i])};function Jm(selectObj,delimiter){if(!aA(delimiter))delimiter=",";var sb=new eP();for(var i=0;i<selectObj.options.length;i++){if(i>0)sb.aC(delimiter);sb.aC(selectObj.options[i].text);}var retValue=sb.toString();return retValue;};function aAT(selectObj,delimiter){if(!aA(delimiter))delimiter=",";var sb=new eP();for(var i=0;i<selectObj.options.length;i++){if(i>0)sb.aC(delimiter);sb.aC(selectObj.options[i].value);}var retValue=sb.toString();return retValue;};function Bh(srcSelectObj,destSelectObj){gV(destSelectObj);for(var i=0;i<srcSelectObj.options.length;i++)destSelectObj.options[i]=new Option(srcSelectObj.options[i].text,srcSelectObj.options[i].value);destSelectObj.selectedIndex=srcSelectObj.selectedIndex;};function ir(){};ir.MinToMs=function aBu(jG){if(isNaN(parseInt(jG)))return 0;return(jG*6*Math.pow(10,4));};ir.SecToMs=function Kb(ZU){if(isNaN(parseInt(ZU)))return 0;return(ZU*Math.pow(10,3));};ir.NLToBR=function aBr(jJ){jJ=jJ.replace(/\r\n/g,"<br/>");jJ=jJ.replace(/[\r\n]/g,"<br/>");return jJ;};ir.BRToNL=function aBt(jJ){jJ=jJ.replace(/<br\s*\/>/g,"\n");return jJ;};ir.ForeSlashToBackSlash=function ForeSlashToBackSlash(jJ){jJ=jJ.replace(/\//g,"\\");return jJ;};ir.BackSlashToForeSlash=function BackSlashToForeSlash(jJ){jJ=jJ.replace(/\\/g,"/");return jJ;};function jr(){this.bValue=true;this.nValue=0;this.sValue="";};function fU(bL,Ee){var RM=parseInt(bL);if(aA(Ee)&&isNaN(RM))RM=Ee;return RM;};function aAP(bL,Ee){var PW=parseFloat(bL);if(aA(Ee)&&isNaN(PW))PW=Ee;return PW;};function aax(ver1,ver2){if(ver1==ver2)return 0;var ver1parts=ver1.split(".");var ver2parts=ver2.split(".");for(var i=0;i<Math.min(ver1parts.length,ver2parts.length);i++){var ver1partNum=parseInt(ver1parts[i]);var ver2partNum=parseInt(ver2parts[i]);if(ver1partNum<ver2partNum)return-1;if(ver1partNum>ver2partNum)return 1;}return(ver1parts.length>ver2parts.length);};function dg(fileName,linkId){if(!aA(linkId))linkId="";var linkObj=null;if(linkId.isNotEmpty())linkObj=document.getElementById(linkId);if(linkObj==null){linkObj=document.createElement("link");document.getElementsByTagName("head")[0].appendChild(linkObj);}linkObj.setAttribute("rel","stylesheet");linkObj.setAttribute("type","text/css");linkObj.setAttribute("href",fileName);};function aAS(filename){var fileref=document.createElement('script');fileref.setAttribute("type","text/javascript");fileref.setAttribute("src",filename);if(typeof fileref!="undefined")document.getElementsByTagName("head")[0].appendChild(fileref);};function amc(str){try{if(eg.isIE()){if(window.clipboardData&&clipboardData.setData){clipboardData.setData("Text",str);}}}catch(e){}};function lN(){};lN._validateByRegExp=function(sValue,regExp){if(typeof(sValue)!="string")return false;if(sValue!=null&&typeof(sValue)!="undefined"&&sValue!=""){var isMatched=sValue.match(regExp);var isValid=regExp.test(sValue);if(isMatched==null||isValid==false)return false;}return true;};lN.Email=function aCc(sValue){var regexEmail=new RegExp(/^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@(([0-9a-zA-Z])+([-\w]*[0-9a-zA-Z])*\.)+[a-zA-Z]{2,9})$/);return lN._validateByRegExp(sValue,regexEmail);};lN.Date=function aCa(sValue){var regexDate=new RegExp(/^(?=\d)(?:(?:(?:(?:(?:0?[13578]|1[02])(\/|-|\.)31)\1|(?:(?:0?[1,3-9]|1[0-2])(\/|-|\.)(?:29|30)\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})|(?:0?2(\/|-|\.)29\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))|(?:(?:0?[1-9])|(?:1[0-2]))(\/|-|\.)(?:0?[1-9]|1\d|2[0-8])\4(?:(?:1[6-9]|[2-9]\d)?\d{2}))($|\ (?=\d)))?(((0?[1-9]|1[012])(:[0-5]\d){0,2}(\ [AP]M))|([01]\d|2[0-3])(:[0-5]\d){1,2})?$/);return lN._validateByRegExp(sValue,regexDate);};lN.Zip=function aBB(sValue){var regexZip=new RegExp(/(^\d{5}$)|(^\d{5}-\d{4}$)/);return lN._validateByRegExp(sValue,regexZip);};lN.Phone=function aBV(sValue){var regexPhone=new RegExp(/^([2-9]\d{9})|([2-9]\d{2}[-.]\d{3}[-.]\d{4})$/);return lN._validateByRegExp(sValue,regexPhone);};lN.State=function aBY(sValue){var regexState=new RegExp(/^A[LKSZRAEP]|C[AOT]|D[EC]|F[LM]|G[ANU]|HI|I[ADLN]|K[SY]|LA|M[ADEHINOPST]|N[CDEHJMVY]|O[HKR]|P[ARW]|RI|S[CD]|T[NX]|UT|V[AIT]|W[AIVY]$/);return lN._validateByRegExp(sValue,regexState);};lN.Digits=function aBZ(sValue){var regexDigits=new RegExp(/^\d+$/);return lN._validateByRegExp(sValue,regexDigits);};lN.Numeric=function aBW(sValue){var regexInteger=new RegExp(/(^-?\d\d*$)/);return lN._validateByRegExp(sValue,regexNumeric);};lN.Integer=function aCb(sValue){var regexNumeric=new RegExp(/(^-?\d\d*\.\d*$)|(^-?\d\d*$)|(^-?\.\d\d*$)/);return lN._validateByRegExp(sValue,regexInteger);};function Bq(styleName,styleSheetName){if(!aA(styleName))return null;if(!aA(styleSheetName))styleSheetName="";var styleSheets=document.styleSheets;for(var i=0;i<styleSheets.length;i++){var styleSheet=styleSheets[i];if(styleSheetName.isNotEmpty()&& !styleSheet.href.endsWith(styleSheetName))continue;var styleRules=styleSheet.rules;for(var j=0;j<styleRules.length;j++){var styleRule=styleRules[j];if(styleName==styleRule.selectorText)return styleRule.style;}}return null;};if(!eg.isIE()){function selectSingleNode(sXPath){var oEvaluator=new XPathEvaluator();var oNS=oEvaluator.createNSResolver(this.ownerDocument==null?this.documentElement:this.ownerDocument.documentElement);var oResult=oEvaluator.evaluate(sXPath,this,oNS,XPathResult.FIRST_ORDERED_NODE_TYPE,null);return oResult.singleNodeValue;};function selectNodes(sXPath){var oEvaluator=new XPathEvaluator();var oNS=oEvaluator.createNSResolver(this.ownerDocument==null?this.documentElement:this.ownerDocument.documentElement);var oResult=oEvaluator.evaluate(sXPath,this,oNS,XPathResult.ORDERED_NODE_ITERATOR_TYPE,null);var aNodes=new Array();if(oResult!=null){var oElement=oResult.iterateNext();while(oElement){aNodes.push(oElement);oElement=oResult.iterateNext();}}return aNodes;};Document.prototype.selectSingleNode=selectSingleNode;Document.prototype.selectNodes=selectNodes;Element.prototype.selectSingleNode=selectSingleNode;Element.prototype.selectNodes=selectNodes;Document.prototype.__defineGetter__("parentElement",function(){return this.parentNode;});Element.prototype.__defineGetter__("parentElement",function(){return this.parentNode;});HTMLElement.prototype.__defineGetter__("parentElement",function(){return this.parentNode;});Document.prototype.__defineGetter__('text',function(){var text='';for(var i=0;i<this.childNodes.length;i++){text+=this.childNodes[i].text;}return text;});Document.prototype.__lookupGetter__('text');Document.prototype.__defineSetter__('text',function(txt){this.textContent=txt;});Document.prototype.__defineGetter__('xml',function(){var serializer=new XMLSerializer();var xml=serializer.serializeToString(this);return xml;});Document.prototype.__lookupGetter__('xml');function transformNode(oXsl){var xsltProcessor=new XSLTProcessor();xsltProcessor.importStylesheet(oXsl);var resultDocument=xsltProcessor.transformToFragment(this,document);var sHTML="";for(var i=0;i<resultDocument.childNodes.length;i++)sHTML+=resultDocument.childNodes[i].outerHTML;return sHTML;};Document.prototype.transformNode=transformNode;Element.prototype.__defineGetter__('text',function(){var text='';for(var i=0;i<this.childNodes.length;i++){text+=this.childNodes[i].text;}return text;});Element.prototype.__lookupGetter__('text');Element.prototype.__defineSetter__('text',function(txt){this.textContent=txt;});Attr.prototype.__defineGetter__('text',function(){return this.nodeValue});Attr.prototype.__lookupGetter__('text');Attr.prototype.__defineSetter__('text',function(txt){this.nodeValue=txt;});Text.prototype.__defineGetter__('text',function(){return this.nodeValue});Text.prototype.__lookupGetter__('text');Text.prototype.__defineSetter__('text',function(txt){this.nodeValue=txt;});HTMLElement.prototype.__defineGetter__("innerText",function(){return(this.textContent);});HTMLElement.prototype.__defineSetter__("innerText",function(txt){this.textContent=txt;});function get_outerHTML(obj){var attrs=obj.attributes;var str="<"+obj.tagName;for(var i=0;i<attrs.length;i++)str+=" "+attrs[i].name+"=\""+attrs[i].value+"\"";var _emptyTags={"IMG":true,"BR":true,"INPUT":true,"META":true,"LINK":true,"PARAM":true,"HR":true};if(_emptyTags[obj.tagName])return str+" />";return str+">"+obj.innerHTML+"</"+obj.tagName+">";};function set_outerHTML(obj,sHTML){var r=obj.ownerDocument.createRange();r.setStartBefore(obj);var df=r.createContextualFragment(sHTML);obj.parentNode.replaceChild(df,obj);};HTMLElement.prototype.__lookupGetter__('outerHTML');HTMLElement.prototype.__defineGetter__("outerHTML",function(){return get_outerHTML(this);});HTMLElement.prototype.__defineSetter__("outerHTML",function(sHTML){set_outerHTML(this,sHTML);});DocumentFragment.prototype.__lookupGetter__('outerHTML');DocumentFragment.prototype.__defineGetter__("outerHTML",function(){var html="";for(var i=0;i<childNodes.length;i++){html+get_outerHTML(childNodes[i]);}return html;});DocumentFragment.prototype.__defineSetter__("outerHTML",function(sHTML){set_outerHTML(this,sHTML);});HTMLElement.prototype.__defineGetter__("XMLDocument",function(){return((new DOMParser()).parseFromString(this.innerHTML,"text/xml"));});HTMLElement.prototype.__defineGetter__("children",function(){return(this.childNodes);});DocumentFragment.prototype.__defineGetter__("children",function(){return(this.childNodes);});HTMLElement.prototype.attachEvent=function(eventName,fHandler){fHandler._wrapHandler=function(e){window.event=e;fHandler();return(e.returnValue);};this.addEventListener(eventName.substr(2),fHandler._wrapHandler,false);};HTMLElement.prototype.detachEvent=function(eventName,fHandler){if(fHandler._wrapHandler!=null)this.removeEventListener(eventName.substr(2),fHandler._wrapHandler,false);};Event.prototype.__defineGetter__("srcElement",function(){var node=this.target;while(node.nodeType!=1)node=node.parentNode;return node;});Event.prototype.__defineSetter__("cancelBubble",function(b){if(b)this.stopPropagation();});Event.prototype.__defineSetter__("returnValue",function(b){if(!b)this.preventDefault();this._returnValue=b;return(b);});Event.prototype.__defineGetter__("returnValue",function(){return(this._returnValue);});}
