function BrowserScreenSize(){var theWidth,theHeight;if(window.innerWidth){theWidth=window.innerWidth}else{if(document.documentElement&&document.documentElement.clientWidth){theWidth=document.documentElement.clientWidth}else{if(document.body){theWidth=document.body.clientWidth}}}if(window.innerHeight){theHeight=window.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){theHeight=document.documentElement.clientHeight}else{if(document.body){theHeight=document.body.clientHeight}}}this.getWidth=function(){return theWidth};this.getHeight=function(){return theHeight};this.setMapSize=function(mapContainer,mapCanvasObj,compensetion){try{var calculatedHeight=(this.getHeight()+compensetion)+"px";mapCanvasObj.style.height=calculatedHeight;mapContainer.style.height=calculatedHeight}catch(e){alert("EX : "+e)}};this.setObjectHeight=function(obj,compensation){try{obj.style.height=(this.getHeight()+compensation)+"px"}catch(e){}}}function ComboBoxOperation(comboId){this.initCombo=function(nameValuePairArray){if(comboId!=null&&nameValuePairArray!=null){var len=nameValuePairArray!=null?nameValuePairArray.length:0;removeAllElement();for(i=0;i<len;i++){comboId.options[i]=new Option(nameValuePairArray[i][0],nameValuePairArray[i][1])}}else{alert("Target Object or Data array is 'Null'")}};this.addComboElement=function(name,value){if(comboId!=null&&name!=null&&value!=null){comboId.options[comboId.length]=new Option(name,value)}};this.selectElement=function(value){size=getLength();for(i=0;i<size;i++){if(comboId.options[i].value==value){comboId.options[i].selected=true;return true}}comboId.options[0].selected=true;return false};this.sortCombo=function(){alert("[Sorting Combobox] : Presently Not available")};function removeAllElement(){for(i=(getLength()-1);i>=0;i--){comboId.remove(i)}}function getLength(){if(comboId!=null){return comboId.length}else{return 0}}}function ComboboxWithOptionGroupOperation(comboObj){this.clearCombobox=function(){comboObj.innerHTML=""};this.addToCombobox=function(object){comboObj.appendChild(object)};this.appendOption=function(target,value,name){var optionObj=document.createElement("option");optionObj.value=value;optionObj.innerHTML=name;target.appendChild(optionObj);return target};this.createOptionGroup=function(groupName){var optionGroupObj=document.createElement("optgroup");optionGroupObj.label=groupName;return optionGroupObj};this.initCombobox=function(dataList){var size=0,i=0;var groupObj=null;var element=null;var optionList=null;var optionListSize=0;var optionListItr=0;var optionData=null;if(dataList!=null){this.clearCombobox();if((size=dataList.length)>0){for(i=0;i<size;i++){element=dataList[i];if(element[0]==null||element[0]==""){optionList=element[1];optionListSize=optionList.length;for(optionListItr=0;optionListItr<optionListSize;optionListItr++){optionData=optionList[optionListItr];this.appendOption(comboObj,optionData[0],optionData[1])}}else{groupObj=this.createOptionGroup(element[0]);optionList=element[1];optionListSize=optionList.length;for(optionListItr=0;optionListItr<optionListSize;optionListItr++){optionData=optionList[optionListItr];this.appendOption(groupObj,optionData[0],optionData[1])}this.addToCombobox(groupObj)}}}}}}function initializeHeight(mainBodyObj,leftPaneContentDIVObj,mapCanvasDivObj){var headerHeight=80;var footerHeight=30;var bodyMargin=5;var borderCompensation=6;var otherCompensation=15;var totalCompensation=(30+24+13);try{var bss=new BrowserScreenSize();if(mainBodyObj!=null){bss.setObjectHeight(mainBodyObj,-(headerHeight+footerHeight+bodyMargin))}if(leftPaneContentDIVObj!=null){bss.setObjectHeight(leftPaneContentDIVObj,-(headerHeight+footerHeight+bodyMargin+totalCompensation+otherCompensation))}if(mapCanvasDivObj!=null){bss.setObjectHeight(mapCanvasDivObj,-(headerHeight+footerHeight+bodyMargin+totalCompensation+otherCompensation+borderCompensation))}}catch(e){alert(e)}};
