obips.SessionService=function(){};obips.SessionService.soapNameSpace="com.siebel.analytics.web/soap/v5";obips.SessionService.namespaceMap=new Array();obips.SessionService.namespaceMap.sawsoap=obips.SessionService.soapNameSpace;obips.SessionService.namespaceMap.soap="http://schemas.xmlsoap.org/soap/envelope/";obips.SessionService.getURL=function(){var a=saw.commandToURL("SoapImpl=nQSessionService");return a};obips.SessionService.logon=function(g,b){var d=obips.XMLHTTP.createSoapEnvelope();var e=obips.XMLDOM.selectSingleNode(d,"//soap:Body",obips.SessionService.namespaceMap);var c=d.createElement("logon");c.setAttribute("xmlns",obips.SessionService.soapNameSpace);c.appendChild(obips.XMLDOM.createElementWithTextNode(d,"name",g));c.appendChild(obips.XMLDOM.createElementWithTextNode(d,"password",b));e.appendChild(c);var f=obips.XMLHTTP.syncSOAPAction(obips.SessionService.getURL(),"#logon",d);var a=obips.XMLDOM.selectSingleNode(f,"//sawsoap:sessionID/text()",obips.SessionService.namespaceMap).nodeValue;return a};obips.SessionService.logoff=function(a){var b=obips.XMLHTTP.createSoapEnvelope();var c=obips.XMLDOM.selectSingleNode(b,"//soap:Body",obips.SessionService.namespaceMap);var d=b.createElement("logoff");d.setAttribute("xmlns",obips.SessionService.soapNameSpace);if(a){d.appendChild(obips.XMLDOM.createElementWithTextNode(b,"sessionID",a))}c.appendChild(d);obips.XMLHTTP.syncSOAPAction(obips.SessionService.getURL(),"#logoff",b)};obips.SessionService.getCurUser=function(a){var e=obips.XMLHTTP.createSoapEnvelope();var f=obips.XMLDOM.selectSingleNode(e,"//soap:Body",obips.SessionService.namespaceMap);var g=obips.XMLDOM.createElementNS(e,obips.SessionService.soapNameSpace,"getCurUser");if(a){g.appendChild(obips.XMLDOM.createElementWithTextNode(e,"sessionID",a))}f.appendChild(g);var c=obips.XMLHTTP.syncSOAPAction(obips.SessionService.getURL(),"#getCurUser",e);var d=obips.XMLDOM.selectSingleNode(c,"//sawsoap:getCurUserResult/sawsoap:return/text()",obips.SessionService.namespaceMap);var b=(d)?d.nodeValue:null;return b};obips.SessionService.Session=function(b,a){this.id=null;this.user=null};