if(typeof(obians)=="undefined"){obians=function(){}}obians.MemberShuttleCommon=function(){};obians.MemberShuttleCommon.requestParentsForMembers=function(g,i,d,b,e){var c=false;if(d){var h=d.selectNodes(".//saw:hierarchyLevelMembers/saw:hierarchyLevel");if(h.length==0){i(null);return}var f=new saw.ajax.Request("JSONRequestParentForMembers",i,g);f.addArg("stepXML",saw.getXmlText(d));f.addArg("subjectArea",b.getAttribute("subjectArea"));f.addArg("table",b.getAttribute("tableKey"));f.addArg("hierarchyId",b.getAttribute("hierarchyId"));if(e==true){f.addArg("fullPath","true")}var a=saw.ajax.createConnection(f);c=true;a.post()}return c};obians.MemberShuttleCommon.initHierarchicalSelectedMembers=function(e,o){var k=new Array();k.empty=true;if(e){var l=e.selectNodes(".//saw:hierarchyLevelMembers");for(var g=0;g<l.length;++g){var m=l[g].selectSingleNode("saw:hierarchyLevel");var a=m.getAttribute("levelID");var n=l[g].selectNodes("saw:members/saw:value");for(var d=0;d<n.length;++d){if(n[d].getAttribute("specialValue")){continue}if(!k[a]){k[a]=new Array()}var c=XUIGetElementText(n[d]);if(o){var f=saw.getParentElement(n[d]);var b=XUIGetXsiType(f,"stringMembers");var h="string";switch(b){case"stringMembers":h="string";break;case"integerMembers":h="decimal";break;case"decimalMembers":h="decimal";break;case"dateTimeMembers":h="dateTime";break;case"dateMembers":h="date";break;case"timeMembers":h="time";break;case"":h="untypedLiteral";break;case"untypedMembers":h="untypedLiteral";break;case"booleanMembers":h="untypedLiteral";break;default:h="untypedLiteral";break}k[a].push({keyValue:c,bSelectable:true,dataType:h})}else{k[a].push(c)}k.empty=false}}return k}return null};obians.MemberShuttleCommon.convertAssocArrayToIndexedArray=function(a){var b=new Array();for(var c in a){b[b.length]=a[c]}return b};