if(typeof(obips_viewmodel_base_js)=="undefined"){obips_viewmodel_base_js=true;obips.ViewModelBase=function(j,k,l,c,b,f,g,a,e,h){this.masterClientId=j;this.viewName=k;this.viewType=e;this.statePath=f;this.searchID=g;this.colInfoById=a;if(l.length==0){this.childViewIDList=[]}else{this.childViewIDList=l.split(",")}this.edgeDefinition=new Object();this.bodyDefinition=new Object();this.writeBackRows=new Array(2);this.writeBackRows[obips.JSDataLayout.ROW_EDGE]=[];this.writeBackRows[obips.JSDataLayout.DATA_EDGE]=[];for(var d=0;d<this.childViewIDList.length;d++){this.setupSectionSliceEdgeDefinitionId(this.childViewIDList[d],d)}this.pageEdgeId=c;this.reportStatePath=b;this.parentViewId=h};obips.ViewModelBase.getViewModelByMasterClientId=function(a){return document.body[a]};obips.ViewModelBase.prototype.getMasterClientId=function(){return this.masterClientId};obips.ViewModelBase.prototype.getViewName=function(){return this.viewName};obips.ViewModelBase.prototype.getViewID=function(){return this.getStatePath()};obips.ViewModelBase.prototype.getReportStatePath=function(){return this.reportStatePath};obips.ViewModelBase.prototype.getStatePath=function(){return this.statePath};obips.ViewModelBase.prototype.getViewType=function(){return this.viewType};obips.ViewModelBase.prototype.getPromptSearchID=function(){return this.promptSearchID};obips.ViewModelBase.prototype.getSearchID=function(){return this.searchID};obips.ViewModelBase.prototype.getParentViewId=function(){return this.parentViewId};obips.ViewModelBase.prototype.setArrayEdgesContainingOrderedLayers=function(a){this.arrayEdgesContainingOrderedLayers=a};obips.ViewModelBase.prototype.setupSectionSliceEdgeDefinitionId=function(a,b){if(this.edgeDefinition[b]==undefined){this.edgeDefinition[b]=a}};obips.ViewModelBase.getDataLayoutDiv=function(b){var a=b+"JSDataLayoutDataDiv";var c=document.getElementById(a);return c};obips.ViewModelBase.getViewInstanceCache=function(a){var d=a+"ViewInstanceCache";var c=obips.ViewModel.getViewModelById(a);if(c&&c.getHtmlElement()){var b=c.getHtmlElement();if(!b[a]&&!document.body[d]){b[a]=new Object()}if(b[a]){return b[a]}}if(!document.body[d]){document.body[d]=new Object()}return document.body[d]};obips.ViewModelBase.clearViewInstanceCache=function(a){var c=obips.ViewModel.getViewModelById(a);if(c&&c.getHtmlElement()){var b=c.getHtmlElement();if(b[a]){b[a]=null;delete b[a]}}var d=a+"ViewInstanceCache";if(document.body[d]){document.body[d]=null;if(!is_ie7){delete document.body[d]}else{document.body[d]=null}}};obips.ViewModelBase.logEnabled=false;obips.ViewModelBase.log=function(c){if(!obips.ViewModelBase.logEnabled){return}if(typeof(console)=="undefined"){return}var b=0;for(var b=1;b<arguments.length;b++){var a=arguments[b];if(a==undefined){a="<empty>"}c=c.replace("%s",a)}console.log(c)}};