// (c) 2005 Infragistics - Do NOT modify the content of this file
// Version 6.2.20061.45

if(!ig){Function.prototype._extends=function(sc){var prop;if(this==sc){return;}
var scName=sc.toString();scName=scName.substring(scName.indexOf(" ")+1,scName.indexOf("("));this.prototype[scName]=sc;for(prop in sc.prototype){if(typeof(sc.prototype[prop])=="function"){if(!this.prototype[prop]){this.prototype[prop]=sc.prototype[prop];}
else{this.prototype[scName+"_"+prop]=sc.prototype[prop];}}}};Function.prototype.bind=function(object,args){var method=this;return function(){method.apply(object,args);};};function Ig(){this.components=[];this.PROP_ALLOW_MULTI_SELECT="oams";this.PROP_TYPE="otype";this.PROP_COMPONENT="ocontrol";this.PROP_DATA_ON_DEMAND="odod";this.PROP_FLAG="oflg";this.PROP_PARENT="oParent";this.PROP_PARENT_COMPONENT="oParentComponent";this.PROP_DISABLED="odsbld";this.PROP_EXPANDED="oex";this.PROP_DEFAULT_CLASS="odc";this.PROP_ALTERNATE_CLASS="odac";this.PROP_DISABLED_CLASS="odsc";this.PROP_HOVER_CLASS="ohc";this.PROP_SELECTED_CLASS="osc";this.PROP_FIRE_EVENT="ofe";this.PROP_HREF="ohref";this.PROP_SELECTED_ELEMENT="oseid";this.PROP_TARGET="otarget";this.PROP_FOR_COMPONENT_ID="ofcid";var agt=navigator.userAgent.toLowerCase();this.isMozilla=(agt.indexOf('mozilla')!=-1);this.isIE=((agt.indexOf("msie")!=-1)&&(agt.indexOf("opera")==-1));this.isOpera=(agt.indexOf("opera")!=-1);this.uniqueId=0;this.loadedScripts=new Array();this.debug=function(tmp,id){if(!ig.NaES(id)){id="infragisticsDebug";}
var out=ig.getElementById(id);if(!out){return;}
var s=tmp+"\n"+out.value;s=s.substring(0,500);out.value=s;};this.deleteNode=function(node){if(!ig.isNull(node)){var parent=node.parentNode;if(!ig.isNull(parent)){parent.removeChild(node);}
node=null;}};this.addEventListener=function(e,anEvent,aListener,useCapture){if(e.addEventListener){e.addEventListener(anEvent,aListener,useCapture);}
else if(e.attachEvent){e.attachEvent("on"+anEvent,aListener);}};this.getAttribute=function(n,attrn){var node=ig.getElementById(n);return(node&&node.getAttribute)?node.getAttribute(attrn):null;};this.getCamelNotation=function(param){var result=null;if(ig.NaES(param)){result=param.substr(0,1).toUpperCase()+param.substr(1);}
return result;};this.getClientHeight=function(){var tmp=0;if(document.documentElement&&document.documentElement.clientHeight){tmp=document.documentElement.clientHeight;}
else if(document.body&&document.body.clientHeight){tmp=document.body.clientHeight;}
else if(self.innerHeight){tmp=self.innerHeight;}
return tmp;};this.getClientWidth=function(){var tmp=0;if(document.documentElement&&document.documentElement.clientWidth){tmp=document.documentElement.clientWidth;}
else if(document.body&&document.body.clientWidth){tmp=document.body.clientWidth;}
else if(self.innerWidth){tmp=self.innerWidth;}
return tmp;};this.getComponentsByType=function(type){return this.components[type];};this.getElementById=function(id){var r=null;if(typeof(id)!="string"){r=id;}
else if(ig.NaES(id)&&document.getElementById){r=document.getElementById(id);}
return r;};this.getForm=function(id){return ig.findAncestor(id,null,null,"FORM");};this.getScrollTop=function(){var tmp=0;if(self.pageYOffset){tmp=self.pageYOffset;}
else if(document.documentElement&&document.documentElement.scrollTop){tmp=document.documentElement.scrollTop;}
else if(document.body&&document.body.scrollTop){tmp=document.body.scrollTop;}
return tmp;};this.getScrollLeft=function(){var tmp=0;if(self.pageXOffset){tmp=self.pageXOffset;}
else if(document.documentElement&&document.documentElement.scrollLeft){tmp=document.documentElement.scrollLeft;}
else if(document.body&&document.body.scrollLeft){tmp=document.body.scrollLeft;}
return tmp;};this.getType=function(id){return this.getAttribute(id,ig.PROP_TYPE);};this.executeScript=function(code){if(ig.NaES(code)){window.eval(code);}};this.executeMethod=function(obj,fname,arg){var res=true;if(ig.NaES(fname)){try{res=obj[fname](arg);}
catch(e){}}
return res;};this.findAncestor=function(e,attrn,attrv,tag,fctn,fctv){var node=ig.getElementById(e);while(node){var dn=ig.getUIElementById(node);if(ig.isNull(tag)||(!ig.isNull(tag)&&(dn.elm.nodeName.toLowerCase()==tag.toLowerCase()))){if(ig.isNull(attrn)||(!ig.isNull(attrn)&&ig.isNull(attrv)&&this.NaES(dn.getAttribute(attrn)))||(!ig.isNull(attrn)&&!ig.isNull(attrv)&&(dn.getAttribute(attrn)==attrv))){if(ig.isNull(fctn)||(!ig.isNull(fctn)&&(this.executeMethod(dn,fctn,null)==fctv))){break;}}}
node=node.parentNode;}
return node;};this.findDescendant=function(e,attrn,attrv,tag){var nodes=[];var result=null;e=ig.getElementById(e);if(!ig.isNull(e)){if(ig.isNull(tag)){nodes=e.childNodes;}
else{nodes=e.getElementsByTagName(tag);}}
if(ig.isArray(nodes)){for(var i=0;i<nodes.length;i++){var node=nodes[i];if(ig.isNull(tag)||(!ig.isNull(tag)&&(node.nodeName.toLowerCase()==tag.toLowerCase()))){if(ig.isNull(attrn)){result=node;break;}
if(!ig.isNull(attrn)&&ig.isNull(attrv)&&this.NaES(this.getAttribute(node,attrn))){result=node;break;}
if(!ig.isNull(attrn)&&!ig.isNull(attrv)&&(this.getAttribute(node,attrn)==attrv)){result=node;break;}
var tmp=ig.findDescendant(node,attrn,attrv,tag);if(!ig.isNull(tmp)){result=tmp;break;}}}}
return result;};this.init=function(){};this.isArray=function(arg){return ig.isObject(arg)&&arg.length;};this.isDate=function(d){return(!ig.isNull(d)&&d.getFullYear);};this.isEqualsIgnoreCase=function(s1,s2){var result=false;if(ig.NaES(s1)&&ig.NaES(s2)){result=(s1.toLowerCase()==s2.toLowerCase());}
return result;};this.isObject=function(arg){return(arg&&typeof arg=='object')||(typeof arg=='function');};this.isSameDay=function(date1,date2){var result=false;if(ig.isDate(date1)&&ig.isDate(date2)){result=(date1.getFullYear()==date2.getFullYear()&&date1.getMonth()==date2.getMonth()&&date1.getDate()==date2.getDate());}
return result;};this.isSmartRefreshSupported=function(){return!ig.isNull(window.XMLHttpRequest)||!ig.isNull(window.ActiveXObject);};this.isNull=function(v){return(typeof v=='object'&&!v)||(typeof v=='undefined');};this.isNumber=function(v){return typeof v=='number'&&isFinite(v);};this.isOfType=function(n,t){return this.getAttribute(n,ig.PROP_TYPE)==t;};this.isString=function(v){return typeof v=='string';};this.isUIComponent=function(n){return ig.NaES(ig.getAttribute(n,ig.PROP_COMPONENT));};this.isDomNode=function(n){return ig.isObject(n)&&n.elm;};this.isUIElement=function(n){return ig.NaES(ig.getAttribute(n,ig.PROP_TYPE));};this.getTargetUIElement=function(e,t){var a=ig.findAncestor(e,ig.PROP_TYPE,t);return ig.getUIElementById(a);};this.getUIElementById=function(id){return ig.factory.getInstance(id);};this.getUniqueId=function(){if(ig.uniqueId==Number.MAX_VALUE){ig.uniqueId=0;}
return ig.uniqueId++;};this.isScriptLoaded=function(src){var result=false;if(ig.NaES(src)){var scripts=document.getElementsByTagName("script");if(ig.isArray(scripts)){for(var i=0;i<scripts.length;i++){if(scripts[i].src==src){result=true;break;}}}
if(!result){for(var j=0;i<ig.loadedScripts.length;j++){if(ig.loadedScripts[j]==src){result=true;break;}}}}
return result;};this.loadScript=function(src){if(ig.NaES(src)){if(!ig.isScriptLoaded(src)){var oxmlhttp=null;try{oxmlhttp=new XMLHttpRequest();oxmlhttp.overrideMimeType("text/xml");}
catch(e){try{oxmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){return null;}}
if(!oxmlhttp){return null;}
try{oxmlhttp.open("GET",src,false);oxmlhttp.send(null);}
catch(e){return null;}
var code=oxmlhttp.responseText;ig.loadedScripts.push(src);ig.executeScript(code);}}};this.onPartialRefresh=function(httpReq,callback){if(!ig.isNull(callback)){callback(httpReq);}
else{ig.onPartialRefreshDefault(httpReq);}
ig.httprequestpool.release(httpReq);};this.onPartialRefreshDefault=function(httpReq){var xmlDoc=httpReq.getResponseXml();if(!ig.isNull(xmlDoc)){var results=xmlDoc.documentElement;if(!ig.isNull(results)){var components=results.getElementsByTagName("component");for(var i=0;i<components.length;i++){var component=components.item(i);var componentId=component.getAttribute("id");if(ig.NaES(componentId)){var currentComponent=ig.getElementById(componentId);if(!ig.isNull(currentComponent)){var content=component.getElementsByTagName("content").item(0);if(!ig.isNull(content)){var contentAsHtml=(!ig.isNull(content.firstChild))?content.firstChild.nodeValue:"";if(ig.NaES(contentAsHtml)){var parsedContent=ig.parseHtml(contentAsHtml);if(!ig.isNull(parsedContent)){var cscripts=parsedContent.getElementsByTagName("script");var scripts=[];var iscripts=[];if(ig.isArray(cscripts)){for(var j=0;j<cscripts.length;j++){var aScript=cscripts[j];if(ig.NaES(aScript.src)){scripts.push(aScript.src);}
else{var scriptContent=aScript.innerHTML;if(ig.NaES(scriptContent)){scriptContent=scriptContent.replace(/<!--/g,"");scriptContent=scriptContent.replace(/\/\/-->/g,"");iscripts.push(scriptContent);}}}
while(cscripts.length>0){ig.deleteNode(cscripts[0]);}}
var parentNode=currentComponent.parentNode;var insertBeforeNode=currentComponent.nextSibling;var newNode=ig.findDescendant(parsedContent,"id",componentId);while(!ig.isNull(newNode)){var existingNode=null;if(ig.NaES(newNode.id)){existingNode=ig.findDescendant(parentNode,"id",newNode.id);}
var nextSibling=newNode.nextSibling;if(!ig.isNull(existingNode)){ig.replaceNode(existingNode,newNode);}
else{if(!ig.isNull(parentNode)){parentNode.insertBefore(newNode,insertBeforeNode);}}
newNode=nextSibling;}
for(j=0;j<scripts.length;j++){ig.loadScript(scripts[j]);}
for(j=0;j<iscripts.length;j++){ig.executeScript(iscripts[j]);}}}
ig.deleteNode(parsedContent);}}}}
var clientState=results.getElementsByTagName("state").item(0);if(!ig.isNull(clientState)){var clientStateContent=clientState.getElementsByTagName("content").item(0);if(!ig.isNull(clientStateContent)){var clientStateAsHtml=(!ig.isNull(clientStateContent.firstChild))?clientStateContent.firstChild.nodeValue:"";if(ig.NaES(clientStateAsHtml)){var parsedClientState=ig.parseHtml(clientStateAsHtml,false);if(!ig.isNull(parsedClientState)){var nodes=parsedClientState.childNodes;for(var k=nodes.length-1;k>=0;k--){var aNode=nodes.item(k);if(aNode.nodeName=="INPUT"){var id=aNode.id;var currentNode=null;if(ig.NaES(id)){currentNode=document.getElementById(id);}
else{var name=aNode.name;var elements=document.getElementsByName(name);if(elements.length==1){currentNode=elements[0];}}
if(!ig.isNull(currentNode)){ig.replaceNode(currentNode,aNode);}}}
ig.deleteNode(parsedClientState);}}}}}}};this.pad=function(str,len,pad){var result=str+"";var tmp="";for(var i=0;i<(len-result.length);i++){tmp+=pad;}
return tmp+result;};this.parseHtml=function(toParse,appendToDocument){var aDiv=document.createElement("div");if(appendToDocument!==false){document.body.appendChild(aDiv);}
aDiv.innerHTML=toParse;return aDiv;};this.registerComponent=function(id){var comp=ig.getUIElementById(id);if(ig.isNull(comp)){return;}
var type=comp.getType();var comps=this.components[type];if(ig.isNull(comps)){this.components[type]=new Array();comps=this.components[type];}
comps[comps.length]=comp.elm.id;};this.replaceNode=function(node1,node2){var parent=node1.parentNode;if(!ig.isNull(parent)){return parent.replaceChild(node2,node1);}};this.setAttribute=function(e,n,v){if(e&&e.setAttribute&&this.getAttribute(e,n)!=v){e.setAttribute(n,v+"");return true;}
return false;};this.showStatusMsg=function(msg){if(ig.isNull(msg)){msg="";}
window.status=msg;};this.submit=function(eventSource,eventName,eventArguments,target){var frm=ig.getForm(eventSource);if(!ig.isNull(frm)){if(!ig.NaES(eventSource)){eventSource="";}
if(!ig.NaES(eventName)){eventName="";}
if(!ig.NaES(eventArguments)){eventArguments="";}
var cse=eventSource+"::"+eventName+"::"+eventArguments;var savAction=frm.action;var action=new IgUri(savAction);action.addParameter("com.infragistics.faces.CLIENT_SIDE_EVENT",cse);frm.action=action;if(ig.NaES(target)){var oldTarget=frm.target;frm.target=target;frm.submit();frm.target=oldTarget;}
else{frm.submit();}
frm.action=savAction;}};this.smartSubmit=function(eventSource,eventName,eventArguments,smartRefreshComponents,jsCallback){if(!ig.isSmartRefreshSupported()){ig.submit(eventSource,eventName,eventArguments);}
else{var frm=ig.getForm(eventSource);if(!ig.isNull(frm)){if(!ig.NaES(eventSource)){eventSource="";}
if(!ig.NaES(eventName)){eventName="";}
if(!ig.NaES(eventArguments)){eventArguments="";}
if(!ig.NaES(smartRefreshComponents)){smartRefreshComponents="";}
var cse=eventSource+"::"+eventName+"::"+eventArguments;var params=ig.formToUri(frm);params.addParameter("com.infragistics.faces.CLIENT_SIDE_EVENT",cse);params.addParameter("com.infragistics.faces.SMART_REFRESH_COMPONENTS",smartRefreshComponents);var httpRequest=ig.httprequestpool.get();httpRequest.send(frm.action,params.query,jsCallback,eventSource);}}};this.stringInsert=function(str1,str2,pos){if(!pos){pos=0;}
return str1.substring(0,pos)+str2+str1.substring(pos,str1.length);};this.formToUri=function(frm){var qs=new IgUri();if(!ig.isNull(frm)){for(var i=0;i<frm.elements.length;i++){var control=frm.elements[i];if(!ig.isNull(control)){var name=control.name;if(ig.NaES(name)&&(control.disabled!==true)){var type=control.type;if(type=="hidden"||type=="password"||type=="text"||type=="textarea"){qs.addParameter(name,control.value);}
else{if(type=="button"){}
else{if(type=="checkbox"){if(control.checked===true){qs.addParameter(name,control.value);}}
else{if(type=="radio"){if(control.checked===true){qs.addParameter(name,control.value);}}
else{if(type=="select-one"){for(var j=0;j<control.options.length;j++){if(control.options[j].selected===true){qs.addParameter(name,control.options[j].value);break;}}}
else{if(type=="select-multiple"){for(var k=0;k<control.options.length;k++){if(control.options[k].selected===true){if(ig.NaES(result)){qs.addParameter(name,control.options[k].value);}
else{qs.addParameter(name,control.options[k].value);}}}}
else{if(type=="submit"){}}}}}}}}}}}
return qs;};this.copyForm=function(srcFrm,destDoc,params){if(!ig.isNull(srcFrm)&&!ig.isNull(destDoc)){var tmp='<html><body><form ';tmp+=' id="'+srcFrm.id+'"';tmp+=' action="'+srcFrm.action+'"';tmp+=' method="'+srcFrm.method+'"';tmp+=' enctype="'+srcFrm.encoding+'" >';for(var i=0;i<srcFrm.elements.length;i++){var anElm=srcFrm.elements[i];if(anElm.type!="submit"&&anElm.type!="reset"&&anElm.type!="image"){tmp+='<input type="'+anElm.type+'"';tmp+=' name="'+anElm.name+'"';tmp+=' value="'+anElm.value+'" />';}}
if(ig.NaES(params)){var arrayParams=params.split(";");for(var nbParams=0;nbParams<arrayParams.length;nbParams++){var param=arrayParams[nbParams];if(ig.NaES(param)){var paramNameValue=param.split("=");if(paramNameValue.length==2){tmp+='<input type="hidden"';tmp+=' name="'+paramNameValue[0]+'"';tmp+=' value="'+paramNameValue[1]+'" />';}}}}
tmp+="</form></body></html>";destDoc.open();destDoc.write(tmp);destDoc.close();}};this.NaES=function(str1){return(ig.isString(str1)&&!ig.isNull(str1.length)&&str1.length>0)?true:false;};this.navigateToUrl=function(url,clientId,target){if(ig.NaES(url)){if(ig.NaES(clientId)&&ig.NaES(target)){var frm=ig.getForm(clientId);if(!ig.isNull(frm)){var oldTarget=frm.target;var oldAction=frm.action;frm.action=url;frm.target=target;frm.submit();frm.target=oldTarget;frm.action=oldAction;}}
else{window.location=url;}}};this.stringInsertAfter=function(str1,str2,str3){var pos=0;str3+="";pos=str1.indexOf(str3);return ig.stringInsert(str1,str2,pos+1);};this.toEvent=function(e){return new IgEvent(e);};this.toFloat=function(s){var f=parseFloat(s);return isNaN(f)?0:f;};}
var ig=new Ig();ig.ArrayList=function(arr){this.array=new Array();if(arr){this.array=this.array.concat(arr);}
this.add=function(o){if(!ig.isNull(o)){this.array.push(o);}};this.addAt=function(i,o){if(!ig.isNull(o)){this.array.splice(i,0,o);}};this.clear=function(){this.array.splice(0,this.array.length);};this.contains=function(o){for(var i=0;i<this.array.length;i++){if(this.array[i]==o){return true;}}
return false;};this.indexOf=function(o){for(var i=0;i<this.array.length;i++){if(this.array[i]==o){return i;}}
return-1;};this.get=function(i){return this.array[i];};this.remove=function(o){var i=this.indexOf(o);if(i>=0){this.array.splice(i,1);}};this.removeAt=function(i){this.array.splice(i,1);};this.set=function(i,o){this.array[i]=o;};this.size=function(){return this.array.length;};this.toString=function(){return this.array.join(",");};};function IgEventQueue(e){this.elm=ig.getElementById(e+"_eventQueue");this.SEPARATOR="::";this.queueEvent=function(evtSrc,evtName,evtValue){this.removeEvent(evtSrc,evtName);var tmp="";if(!ig.isNull(evtSrc)){tmp=evtSrc;}
if(!ig.isNull(evtName)){tmp+=(this.SEPARATOR+evtName);}
if(!ig.isNull(evtValue)){tmp+=(this.SEPARATOR+evtValue);}
tmp+=";";tmp+=this.getValue();this.setValue(tmp);};this.findEvent=function(evtSrc,evtName){var tmp=this.getValue();return(ig.isNull(tmp))?-1:tmp.indexOf(evtSrc+this.SEPARATOR+evtName);};this.getValue=function(){return ig.isNull(this.elm)?null:this.elm.value;};this.removeEvent=function(evtSrc,evtName){var idx=this.findEvent(evtSrc,evtName);if(idx>-1){var tmp=this.getValue();var idxSep=tmp.indexOf(";",idx);if(idxSep>-1){tmp=tmp.substring(0,idx)+tmp.substring(idxSep+1,tmp.length);this.setValue(tmp);}}};this.setValue=function(val){if(!ig.isNull(this.elm)){this.elm.value=val;}};}
function IgEventPackage(){this.EVENT_CLICK="click";this.EVENT_COLLAPSE="collapse";this.EVENT_CONTEXTMENU="contextmenu";this.EVENT_EXPAND="expand";this.EVENT_KEYDOWN="keydown";this.EVENT_MOUSEDOWN="mousedown";this.EVENT_MOUSEMOVE="mousemove";this.EVENT_MOUSEOVER="mouseover";this.EVENT_MOUSEUP="mouseup";}
ig.event=new IgEventPackage();function IgEvent(evt){this.KEY_DOWN=40;this.KEY_ESCAPE=27;this.KEY_LEFT=37;this.KEY_RETURN=13;this.KEY_RIGHT=39;this.KEY_TAB=9;this.KEY_UP=38;this.MOUSE_LEFT_BUTTON=1;this.MOUSE_RIGHT_BUTTON=2;this.MOUSE_MIDDLE_BUTTON=4;if(evt){this.event=evt;}
else if(window.event){this.event=window.event;}
if(!this.event){return;}
this.type=(this.event.type)?this.event.type:"";if(this.event.target){this.target=this.event.target;}
else if(this.event.srcElement){this.target=this.event.srcElement;}
if(this.event.relatedTarget){this.relatedTarget=this.event.relatedTarget;}
else if(this.event.fromElement&&this.type=="mouseover"){this.relatedTarget=this.event.fromElement;}else if(this.event.toElement&&this.type=="mouseout"){this.relatedTarget=this.event.toElement;}
if(this.event.keyCode){this.keyCode=this.event.keyCode;}
else if(this.event.which){this.keyCode=this.event.which;}
else if(this.event.charCode){this.keyCode=this.event.charCode;}
if(this.event.pageX||this.event.pageY){this.pageX=this.event.pageX;this.pageY=this.event.pageY;}
else if(this.event.clientX||this.event.clientY){this.pageX=this.event.clientX+document.body.scrollLeft;this.pageY=this.event.clientY+document.body.scrollTop;}
if(this.type.indexOf("mouse",0)>=0){if(this.event.button){this.button=this.event.button;}
else if(this.event.which){this.button=this.event.which-1;}}
this.isShiftKeyPressed=function(){return this.event.shiftKey;};this.stopPropagation=function(){this.event.cancelBubble=true;if(this.event.stopPropagation){this.event.stopPropagation();}};this.preventDefault=function(){this.event.returnValue=false;if(this.event.preventDefault){this.event.preventDefault();}};}
function IgFactory(){this.addClass=function(cls,cp){this[cls]=cp;};this.getInstance=function(id){var r=ig.getElementById(id);var tmp=ig.getElementById(id);if(ig.isDomNode(tmp)){r=tmp;}else if(!ig.isNull(tmp)){var cn=this[ig.getType(tmp)];if(!ig.isNull(cn)){r=new cn(tmp);}
else{r=new IgDomNode(tmp);}}
return r;};}
ig.factory=new IgFactory();function IgHttpRequest(){this.httpRequestImpl=null;this.sourceOfRequest=null;this.getHttpRequestImpl=function(){if(ig.isNull(this.httpRequestImpl)){if(window.XMLHttpRequest){this.httpRequestImpl=new XMLHttpRequest();}
else if(window.ActiveXObject){var MSXML_VERSIONS=new Array('MSXML2.XMLHTTP.5.0','MSXML2.XMLHTTP.4.0','MSXML2.XMLHTTP.3.0','MSXML2.XMLHTTP','Microsoft.XMLHTTP');for(var i=0;i<MSXML_VERSIONS.length;i++){try{this.httpRequestImpl=new ActiveXObject(MSXML_VERSIONS[i]);break;}catch(e){}}}}
return this.httpRequestImpl;};this.getResponseXml=function(){return(!ig.isNull(this.httpRequestImpl))?this.httpRequestImpl.responseXML:null;};this.send=function(url,params,callback,sourceOfRequest){this.sourceOfRequest=sourceOfRequest;var httpReq=this.getHttpRequestImpl();var myself=this;if(!ig.isNull(httpReq)){var srcComp=ig.getUIElementById(sourceOfRequest);if(!ig.isNull(srcComp)){srcComp.setCursor("wait");}
httpReq.open("POST",url,true);httpReq.setRequestHeader("Content-Type","application/x-www-form-urlencoded");httpReq.onreadystatechange=function(){if(httpReq.readyState==4){ig.onPartialRefresh(myself,callback);if(!ig.isNull(srcComp)){srcComp.setCursor("");}}};httpReq.send(params);}};this.getSourceOfRequest=function(){return this.sourceOfRequest;};}
function IgPool(objectType){this.objectType=objectType;this.pool=new Array();this.get=function(){var result=null;for(i=0;i<this.pool.length;i++){var anObject=this.pool[i];if(!ig.isNull(anObject)){if(anObject.infragisticsPool_isBusy===false){result=anObject;break;}}}
if(ig.isNull(result)){result=new this.objectType;this.pool[this.pool.length]=result;}
if(!ig.isNull(result)){result.infragisticsPool_isBusy=true;}
return result;};this.release=function(obj){for(i=0;i<ig.httprequestpool.pool.length;i++){var anObject=ig.httprequestpool.pool[i];if(anObject==obj){anObject.infragisticsPool_isBusy=false;return;}}};}
ig.httprequestpool=new IgPool(IgHttpRequest);function IgUri(uri){this.baseUri=null;this.query=null;this.addParameter=function(name,value){if(ig.NaES(name)){if(ig.NaES(this.query)){if(this.query.charAt(this.query.length-1)!='&'){this.query=this.query+"&";}}
else{this.query="";}
this.query=this.query+encodeURIComponent(name)+"="+encodeURIComponent(value);}};this.parseUri=function(uri){if(ig.NaES(uri)){var i=uri.indexOf("?");if(i!=-1){this.baseUri=uri.substring(0,i);this.query=uri.substr(i+1);}
else{this.baseUri=uri;this.query=null;}}};this.toString=function(){return(ig.NaES(this.query))?this.baseUri+"?"+this.query:this.baseUri;};this.parseUri(uri);}
ig.init();}
