var xqs,xpath;function geturlvalue(rKey){var a,b,c,ss;if(window.location.search){ss=window.location.search;}else{return "";}b=ss.indexOf(rKey+"=");if(b<0){return 0;}b=b+rKey.length+1;c=ss.indexOf("&", b);if(c>=0){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+="&seid="+getseid();}else{xqs="seid="+getseid();}var q;q=geturlvalue('q');if(q!=0){xqs+="&q="+q;};}function isurlseid(){if(!window.location.search){return 0;}if(window.location.search.indexOf("seid=")<0){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=')>0){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 characterCode;if(e &&e.which){e=e;characterCode=e.which;}else{e=event;characterCode=e.keyCode;};if(characterCode==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');};