obips.XMLDOM=function(){};obips.XMLDOM._supportedXMLDocIds=["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.3.0"];obips.XMLDOM.createXMLDom=function(){var d=null;if(window.ActiveXObject){var c=obips.XMLDOM._supportedXMLDocIds;for(var b=0;b<c.length;++b){try{d=new ActiveXObject(c[b]);d.setProperty("SelectionLanguage","XPath");break}catch(a){}}}else{if(document.implementation&&document.implementation.createDocument){d=document.implementation.createDocument(null,null,null)}}if(d==null){throw new Error("Current browser does not have sufficient support for XML DOM creation.")}return d};obips.XMLDOM.parseXML=function(d,c){var b=null;c=c||false;if(window.ActiveXObject){b=obips.XMLDOM.createXMLDom();b.async=false;b.validateOnParse=c;var a=b.loadXML(d);if(!a){throw new Error(b.parseError.reason)}}else{var e=new DOMParser();b=e.parseFromString(d,"text/xml")}return b};obips.XMLDOM.createXMLDomFromString=obips.XMLDOM.parseXML;obips.XMLDOM.hasSupportedXMLParser=function(){var a=false;try{if(obips.XMLDOM.createXMLDom()){a=true}}catch(b){}return a};obips.XMLDOM.removeChildNodes=function(b){if(b.childNodes){var c=b.childNodes.length;for(var a=0;a<c;a++){b.removeChild(b.childNodes[0])}}};obips.XMLDOM.createElementNS=function(d,b,c){var a=null;if(d.createElementNS){a=d.createElementNS(b,c)}else{a=d.createNode(1,c,b)}return a};obips.XMLDOM.setAttributeNS=function(b,c,e,d){if(b.setAttributeNS){b.setAttributeNS(c,e,d)}else{var a=b.ownerDocument.createNode(2,e,c);a.value=d;b.setAttributeNode(a)}};obips.XMLDOM.createElementWithTextNode=function(f,b,a,d){var c;if(typeof(d)!="undefined"&&d!=null&&d.length!=0){c=obips.XMLDOM.createElementNS(f,d,b)}else{c=f.createElement(b)}var e=f.createTextNode(a?a:"");c.appendChild(e);return c};obips.XMLDOM.getXMLString=function(a){var d=false;try{var b=new XMLSerializer();d=b.serializeToString(a)}catch(c){try{d=a.xml}catch(c){}}return d};obips.XMLDOM.selectNodes=function(j,q,g){var l=new Array();if(document.implementation.hasFeature("XPath","3.0")){var n=(j.evaluate&&j)||(j.ownerDocument&&j.ownerDocument.evaluate&&j.ownerDocument)||new XPathEvaluator();var c=null;if(g!=null){c=function(i){return g[i]}}else{c=document.createNSResolver(j.nodeType==9?j.documentElement:j)}var m=n.evaluate(q,j,c,XPathResult.ORDERED_NODE_ITERATOR_TYPE,null);if(m!=null){var b=m.iterateNext();while(b){l.push(b);b=m.iterateNext()}}}else{var o=(j.nodeType==9)?j:j.ownerDocument;var a=o.getProperty("SelectionNamespaces");var f="";if(g!=null){for(k in g){var e=g[k];if(typeof(e)=="function"){continue}f+="xmlns:"+k+"='"+e+"' "}}else{if(a==null||a==""){var p=o.documentElement.attributes;for(var h=0;h<p.length;h++){var d=p[h];if("xmlns:"==d.nodeName.substring(0,6)){var k=d.nodeName.substring(6);var e=d.nodeValue;f+="xmlns:"+k+"='"+e+"' "}}}}if(f!=""){o.setProperty("SelectionNamespaces",f)}o.setProperty("SelectionLanguage","XPath");l=j.selectNodes(q);if(f!=""&&a!=null&&a!=""){o.setProperty("SelectionNamespaces",a)}}return l};obips.XMLDOM.selectSingleNode=function(c,d,e){var b=obips.XMLDOM.selectNodes(c,d,e);return b.length==0?null:b[0]};obips.XMLDOM.debugDisplayXML=function(b){var a=window.open().document.write('<?xml version="1.0" encoding="UTF-8"?>'+b)};obips.XMLDOM.getNodeText=function(b){var a=null;if(typeof(b.textContent)!="undefined"){a=b.textContent}else{if(typeof(b.text)!="undefined"){a=b.text}else{a=b.firstChild.nodeValue}}return a};obips.XMLDOM.NodeType=function(){};obips.XMLDOM.NodeType.ELEMENT_NODE=1;obips.XMLDOM.NodeType.ATTRIBUTE_NODE=2;obips.XMLDOM.NodeType.TEXT_NODE=3;obips.XMLDOM.NodeType.CDATA_SECTION_NODE=4;obips.XMLDOM.NodeType.ENTITY_REFERENCE_NODE=5;obips.XMLDOM.NodeType.ENTITY_NODE=6;obips.XMLDOM.NodeType.PROCESSING_INSTRUCTION_NODE=7;obips.XMLDOM.NodeType.COMMENT_NODE=8;obips.XMLDOM.NodeType.DOCUMENT_NODE=9;obips.XMLDOM.NodeType.DOCUMENT_TYPE_NODE=10;obips.XMLDOM.NodeType.DOCUMENT_FRAGMENT_NODE=11;obips.XMLDOM.NodeType.NOTATION_NODE=12;