var ie=document.all,nn6=document.getElementById&&!document.all;oBrowser={};oBrowser.IsIE=document.all&&navigator.userAgent.search(/MSIE/i)!=-1||false;var ajaxct=0,ajaxxml=[],ajaxtxt=[];function ajaxdump(a){window.open("","debug").document.write('<textarea style="width:100%;height:100%">'+a+"</pre>")}var ajaxrequests=[]; function ajaxrequest(a,b,d,e){var c=false,f="GET",g=null;if(typeof ajaxdebug=="undefined")ajaxdebug=0;if(arguments.length==6){f=arguments[4];g=arguments[5]}var h=ajaxct++;if(window.XMLHttpRequest){c=new XMLHttpRequest;c.overrideMimeType&&c.overrideMimeType("text/xml")}else if(window.ActiveXObject)try{c=new ActiveXObject("Msxml2.XMLHTTP")}catch(i){try{c=new ActiveXObject("Microsoft.XMLHTTP")}catch(j){}}if(!c){alert("Unfortunatelly you browser doesn't support this feature.");return false}c.onreadystatechange= function(){if(!(!ie&&c.aborted))if(c.readyState==4)if(c.status==200){if(c.responseText!=""){if(ajaxdebug){ajaxtxt[h]=c.responseText;debug("ajax",h,'<a href="'+a+'" target="_blank">'+a+"</a>",f,g,'<a href="javascript:;" onclick="ajaxdump(ajaxtxt['+h+'])">show</a>')}e?eval(b+"(http_request.responseXML,callback_param,http_request.responseText)"):eval(b+"(http_request.responseText,callback_param)")}}else c.status!=0&&alert("There was a problem with the request.(Code: "+c.status+")")};c.open(f,a,true); f=="POST"&&c.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(!ie)c.aborted=false;c.send(g);ajaxrequests.push(c);return c}function abort_all_ajax_requests(){for(var a=0;a<ajaxrequests.length;a++)if(ajaxrequests[a].readyState!=4){if(!ie)ajaxrequests[a].aborted=true;ajaxrequests[a].abort()}}function getXMLNodeSerialisation(a){var b=false;try{b=(new XMLSerializer).serializeToString(a)}catch(d){try{b=a.text}catch(e){}}return b} function ntag(a,b){return a.getElementsByTagName(b)}function vtag(a,b){a=a.getElementsByTagName(b);return a.length>0&&a[0].firstChild!=null?a[0].firstChild.nodeValue:""}function nodeval(a){return a.firstChild!=null?a.firstChild.nodeValue:""}function resulttxt(a,b){b.innerHTML=a}function resulttxt2(a,b){b.innerHTML+=a}function parsexml(a){if(ie){var b=new ActiveXObject("Microsoft.XMLDOM");b.loadXML(a);return b}else return(new DOMParser).parseFromString(a,"text/xml")} function getCookie(a){var b=document.cookie,d=a+"=";a=b.length;for(var e=0;e<a;){var c=e+d.length;if(b.substring(e,c)==d){d=b.indexOf(";",c);if(d==-1)d=a;return unescape(b.substring(c,d))}e=b.indexOf(" ",e)+1;if(e==0)break}return""}function setCookie(a,b){delCookie(a);b+="";b=b.replace(/\n/,"");document.cookie=a+"="+escape(b)+"; expires="+expdate.toGMTString()+"; path=/"}function setSessionCookie(a,b){delCookie(a);b+="";b=b.replace(/\n/,"");document.cookie=a+"="+escape(b)} function delCookie(a){var b=new Date;document.cookie=a+"=; expires=Thu, 01-Jan-70 00:00:01 GMT; path=/"}function delAllCookies(){if(document.cookie)for(var a=document.cookie.split("; "),b=0;b<a.length;b++){name=a[b].substring(0,a[b].indexOf("=",0));document.cookie=name+"=; expires=Thu, 01-Jan-70 00:00:01 GMT"}}var expdate=new Date;expdate.setTime(expdate.getTime()+31536E6);WorkSpace=Window=Background="";divIdBackground="divPanel_Popup_parent";divIdPopup="divPanel_Popup";divIdWorkSpace="divPanelcontanier_Popup"; function popupShow(a,b,d){Loaded=false;createPopupBackground();createWindow(b,d);Window.innerHTML=uppendHTML(a);document.body.appendChild(Window);WorkSpace=document.getElementById(divIdWorkSpace);hideElement("div");return WorkSpace} function createPopupBackground(){Background=document.createElement("div");Background.id=divIdBackground;vPageSize=getPageSize();Background.style.width=vPageSize.vPageWidth;Background.style.height=vPageSize.vPageHeight;Background.className="PopupBackground";document.body.appendChild(Background)} function createWindow(a,b){Window=document.createElement("div");Window.id=divIdPopup;Window.style.width=parseInt(a);Window.style.height=parseInt(b);Window.style.left=document.body.scrollLeft+(screen.width/2-parseInt(a)/2);Window.style.top=document.body.scrollTop+(screen.height/2-parseInt(b)/2)-70;Window.style.position="absolute"} function uppendHTML(a){this.vHTML='<table width="100%" border="0" cellpadding="0" cellspacing="0">';this.vHTML+=" <tr>";this.vHTML+=' <td align="left" valign="top">';this.vHTML+=" </td>";this.vHTML+=" </tr>";this.vHTML+="</table>";return this.vHTML}function showElement(a){if(oBrowser.IsIE){vControls=document.getElementsByTagName(a);for(vLoop=0;vLoop<vControls.length;vLoop++)if(vControls[vLoop].id.match(/divselect/))vControls[vLoop].style.visibility="visible"}} function getPageSize(){var a,b;if(window.innerHeight&&window.scrollMaxY){a=document.body.scrollWidth;b=window.innerHeight+window.scrollMaxY}else if(document.body.scrollHeight>document.body.offsetHeight){a=document.body.scrollWidth;b=document.body.scrollHeight}else{a=document.body.offsetWidth;b=document.body.offsetHeight}var d,e;if(self.innerHeight){d=self.innerWidth;e=self.innerHeight}else if(document.documentElement&&document.documentElement.clientHeight){d=document.documentElement.clientWidth;e= document.documentElement.clientHeight}else if(document.body){d=document.body.clientWidth;e=document.body.clientHeight}return{vPageWidth:a<d?d:a,vPageHeight:b<e?e:b,vWindowWidth:d,vWindowHeight:e}}function hideElement(a){if(oBrowser.IsIE){vControls=document.getElementsByTagName(a);for(vLoop=0;vLoop<vControls.length;vLoop++)if(vControls[vLoop].id.match(/divselect/))vControls[vLoop].style.visibility="hidden"}};