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;i 0) { for(var j=0; j 0) { for(var j=0; j