var xqs,xpath;function geturlvalue(rKey){var a,b,c,ss;if(window.location.search){ss=window.location.search;}else{return null;}b=ss.indexOf(rKey+"=");if(b===-1){return null;}b=b+rKey.length+1;c=ss.indexOf("&", b);if(c!==-1){a=ss.substring(b, c);}else{a=ss.substring(b);}return a;}function getseid(){if(typeof xqseid!='undefined'){return xqseid;}else{return geturlvalue('seid');}}function _initxqs(){if(!xqs){xqs='';}if(xqs){xqs+="&seid="+getseid();}else{xqs="seid="+getseid();}var q;q=geturlvalue('q');if(q!==null){if(q.length>0){xqs+="&q="+q;}}}function isurlseid(){if(!window.location.search){return 0;}if(window.location.search.indexOf("seid=")===-1){return 0;}return 1;}function isnewseid(){if((typeof xqseid=='undefined')&&(isurlseid()===0)){return 0;}if(typeof xqseid!='undefined'){return 1;}if(isurlseid()==1){return 2;}}function _dohref(el){_initxqs();if(el.href.indexOf('seid=')!==-1){return;}if(el.href.indexOf('?')==-1){el.href=el.href+'?'+xqs;}else{el.href=el.href+'&'+xqs;}}function cleanres(wpart){window.location.href=wpart+'?pn=1&q=&seid='+getseid();}function addxmlel(eid, evalue){return "<item id='"+eid+"'>"+evalue+"</item>";}function getdata(ar){if(ar.length===0){return null;}var rx;rx='';var c;for(i=1;i<ar.length;i++){c=document.getElementById(ar[i]);if(c===null){rx+=addxmlel(ar[i],'');}else{rx+=addxmlel(ar[i],c.value);}}rx=addxmlel(ar[0],rx);return rx;}function changelid(rlid){window.location.search='seid='+getseid()+'&l1='+rlid;}function isEnterKey(e){var charcode;if(!e){var e=window.event;}if(e.keyCode){charcode=e.keyCode;}else if(e.which){charcode=e.which;}if(charcode==13){return true;}else{return false;}}function createhttpreq(){var xobj;if(typeof(XMLHttpRequest)!='undefined'){return new XMLHttpRequest();}var activeXObjects=['MSXML2.XML6HTTP.6.0', 'Msxml2.XMLHTTP.5.0', 'MSXML2.XMLHTTP.4.0', 'MSXML2.XMLHTTP.3.0', 'MSXML2.XMLHTTP', 'Microsoft.XMLHTTP'];for(var i=0;i<activeXObjects.length;i++){try{xobj=new ActiveXObject(activeXObjects[i]);if(typeof(xobj)!='undefined'){return xobj;}}catch(err){}}alert('XMLHttp object could not be created');}function sencode(rstr){rstr=rstr.replace(/\s{2,}/g,' ');rstr=rstr.replace(/^\s*([\S\s]*?)\s*$/, '$1');rstr=escape(rstr);while(rstr.indexOf("+")>-1){rstr=rstr.replace("+", "%2B");}while(rstr.indexOf("%20")>-1){rstr=rstr.replace("%20", "+");}return(rstr);}