function createXMLHttpRequest(){var xmlHttp=null;try{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP")}catch(e){try{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{xmlHttp=new XMLHttpRequest()}catch(e){}}}return xmlHttp}function startRequest(url,fun,xmlHttp){xmlHttp.onreadystatechange=fun;xmlHttp.open("GET",url,true);xmlHttp.send(null)}function getXmlChild(father,name){var es=father.getElementsByTagName(name);if(es.length==0){return null}else{return es[0]}}String.prototype.trim=function(){var t=this.replace(/(^\s*)|(\s*$)/g,"");return t.replace(/(^ *)|( *$)/g,"")};function getXmlData(father,name,defaultvalue){var es=father.getElementsByTagName(name);if(es.length==0){return defaultvalue}else{if(es[0].firstChild==null){return defaultvalue}else{for(var i=0;i0){for(var j=0;j0){for(var j=0;j<objs.length;j++){if(objid==objs[j].id){objs[j].innerHTML=json.length?json[i].wbshowtimes:json.wbshowtimes}}}}}}function addClickTimes(urlid,owner,type){var url="/system/resource/code/news/click/addclicktimes.jsp";var xmlHttp=createXMLHttpRequest();var url=url+"?wburlid="+urlid+"&owner="+owner+"&type="+type;xmlHttp.open("GET",url,true);xmlHttp.onreadystatechange=function(){};xmlHttp.send(null)}loadXML=function(xmlString){var xmlDoc=null;if(!window.DOMParser&&window.ActiveXObject){var xmlDomVersions=["MSXML.2.DOMDocument.6.0","MSXML.2.DOMDocument.3.0","Microsoft.XMLDOM"];for(var i=0;i<xmlDomVersions.length;i++){try{xmlDoc=new ActiveXObject(xmlDomVersions[i]);xmlDoc.async=false;xmlDoc.loadXML(xmlString);break}catch(e){}}}else{if(window.DOMParser&&document.implementation&&document.implementation.createDocument){try{domParser=new DOMParser();xmlDoc=domParser.parseFromString(xmlString,"text/xml")}catch(e){}}else{return null}}return xmlDoc};