
function BaseWindow(idObjectIn,idFormIn,idWIn,idHIn,controlsIn,resizableIn,draggableIn){this.idObject=idObjectIn;this.idForm=idFormIn;this.idW=idWIn;this.idH=idHIn;this.controls=controlsIn;this.resizable=resizableIn;this.draggable=draggableIn;this.winObj=document.getElementById(this.idForm+":"+this.idObject+"window");this.winHeaderObj=document.getElementById(this.idForm+":"+this.idObject+"window_header");this.winContentObj=document.getElementById(this.idForm+":"+this.idObject+"mapWinContent");this.winFooterObj=document.getElementById(this.idForm+":"+this.idObject+"mapWinFooter");this.winHeaderObjId=this.idForm+"\\:"+this.idObject+"window_header";this.closeControlObj=null;this.closeMinControlObj=null;this.resizeControlObj=null;w=document.getElementById(this.idForm+":"+this.idW).value;h=document.getElementById(this.idForm+":"+this.idH).value;if(document.all)gisJQuery(this.winHeaderObj).css("width",w+"px");if(document.all)gisJQuery(this.winFooterObj).css("width",w+"px");this.hFooter=gisJQuery.jeegfwUtils.getObjectSize(this.winFooterObj).h;this.hHeader=gisJQuery.jeegfwUtils.getObjectSize(this.winHeaderObj).h;this.hcontent=gisJQuery.jeegfwUtils.getObjectSize(this.winContentObj).h;this.winObj.style.height=this.hFooter+this.hHeader+this.hcontent;BaseWindow.prototype.getHfooter=function(){return this.hFooter;}
BaseWindow.prototype.getHheader=function(){return this.hHeader;}
BaseWindow.prototype.getHcontent=function(){return this.hcontent;}
BaseWindow.prototype.setHfooter=function(hFooter){this.hFooter;}
BaseWindow.prototype.setHheader=function(hHeader){this.hHeader=hHeader;}
BaseWindow.prototype.setHcontent=function(hcontent){this.hcontent=hcontent;}
BaseWindow.prototype.getWinObj=function(){return this.winObj;}
BaseWindow.prototype.getWinHeaderObj=function(){return this.winHeaderObj;}
BaseWindow.prototype.gettwinContentObj=function(){return this.winContentObj;}
BaseWindow.prototype.getWinFooterObj=function(){return this.winFooterObj;}
BaseWindow.prototype.getResizeControlObj=function(){return this.resizeControlObj;}
BaseWindow.prototype.getCloseMinControlObj=function(){return this.closeMinControlObj;}
BaseWindow.prototype.getCloseControlObj=function(){return this.closeControlObj;}
BaseWindow.prototype.getId=function(){return this.idObject}
BaseWindow.prototype.apri=function(){gisJQuery.gisWinUtil.apri(this.winObj);gisJQuery.gisWinUtil.deIconizza(this.winObj,this.winHeaderObj,this.winContentObj,this.winFooterObj,this.hHeader,this.hFooter);}
BaseWindow.prototype.docTo=function(x,y,w,h){gisJQuery.gisWinUtil.apri(this.winObj);gisJQuery.gisWinUtil.deIconizza(this.winObj,this.winHeaderObj,this.winContentObj,this.winFooterObj,this.hHeader,this.hFooter);gisJQuery.gisWinUtil.moveTo(this.winObj,x,y);gisJQuery.gisWinUtil.resizeTo(this.winObj,this.winHeaderObj,this.winFooterObj,w,h);if(this.draggable){gisJQuery(this.winObj).DraggableDestroy();gisJQuery(this.hHeader).unbind();}
if(this.resizable){gisJQuery(this.winObj).ResizableDestroy();gisJQuery(this.resizeControlObj).hide();}
if(this.controls){gisJQuery(this.closeControlObj).unbind();gisJQuery(this.closeMinControlObj).unbind();gisJQuery(this.closeControlObj).hide();gisJQuery(this.closeMinControlObj).hide();}}
BaseWindow.prototype.startWindow=function(){if(this.draggable){gisJQuery.gisWinUtil.bindDrag(this.winObj,this.winHeaderObjId);}
if(this.controls){this.closeControlObj=document.getElementById(this.idForm+":"+this.idObject+"mapWinButtonsObk");this.closeMinControlObj=document.getElementById(this.idForm+":"+this.idObject+"mapWinButtonsObkMin");gisJQuery.gisWinUtil.bindCloseClick(this.winObj,this.closeControlObj);gisJQuery.gisWinUtil.bindMaxMin(this.winObj,this.winHeaderObj,this.winContentObj,this.winFooterObj,this.hHeader,this.hFooter,this.closeMinControlObj);}
if(this.resizable){this.resizeControlObj=document.getElementById(this.idForm+":"+this.idObject+"mapWinResize");gisJQuery.gisWinUtil.bindResize(this.winObj,this.winHeaderObj,this.winContentObj,this.winFooterObj,this.resizeControlObj,250,250);}}
if(this.draggable){gisJQuery.gisWinUtil.bindDrag(this.winObj,this.winHeaderObjId);}
if(this.controls){this.closeControlObj=document.getElementById(this.idForm+":"+this.idObject+"mapWinButtonsObk");zHeader=gisJQuery(this.winHeaderObjId).css('z-index');gisJQuery(document.getElementById(this.idForm+":"+this.idObject+"mapWinButtons")).css('z-index',(zHeader+1));this.closeMinControlObj=document.getElementById(this.idForm+":"+this.idObject+"mapWinButtonsObkMin");gisJQuery.gisWinUtil.bindCloseClick(this.winObj,this.closeControlObj);gisJQuery.gisWinUtil.bindMaxMin(this.winObj,this.winHeaderObj,this.winContentObj,this.winFooterObj,this.hHeader,this.hFooter,this.closeMinControlObj);}
if(this.resizable){this.resizeControlObj=document.getElementById(this.idForm+":"+this.idObject+"mapWinResize");zHeader=gisJQuery(this.winHeaderObjId).css('z-index');gisJQuery(document.getElementById(this.idForm+":"+this.idObject+"mapWinResize")).css('z-index',(zHeader+1));gisJQuery.gisWinUtil.bindResize(this.winObj,this.winHeaderObj,this.winContentObj,this.winFooterObj,this.resizeControlObj,250,250,"#"+this.idForm+"\\:"+this.idObject+"window_header");}}
function BaseWindowLT(idObjectIn,idFormIn,controlsIn,resizableIn,draggableIn){this.idObject=idObjectIn;this.idForm=idFormIn;this.controls=controlsIn;this.resizable=resizableIn;this.draggable=draggableIn;this.winObj=document.getElementById(this.idForm+":"+this.idObject+"window");this.winHeaderObj=document.getElementById(this.idForm+":"+this.idObject+"window_header");this.winContentObj=document.getElementById(this.idForm+":"+this.idObject+"mapWinContent");this.winHeaderObjId=this.idForm+"\\:"+this.idObject+"window_header";this.closeControlObj=null;this.closeMinControlObj=null;this.closeRestoreControlObj=null;this.resizeControlObj=null;this.sizehHeader=gisJQuery.jeegfwUtils.getObjectSize(this.winHeaderObj);this.contentSize=gisJQuery.jeegfwUtils.getObjectSize(this.winContentObj);this.windowSize=gisJQuery.jeegfwUtils.getObjectSize(this.winObj);this.delta=this.windowSize.h-this.contentSize.h
this.deltabody=this.windowSize.w-this.contentSize.w
BaseWindowLT.prototype.getDeltaH=function(){return this.delta;}
BaseWindowLT.prototype.getDeltaW=function(){return this.deltabody;}
BaseWindowLT.prototype.getWinObj=function(){return this.winObj;}
BaseWindowLT.prototype.getWinHeaderObj=function(){return this.winHeaderObj;}
BaseWindowLT.prototype.gettwinContentObj=function(){return this.winContentObj;}
BaseWindowLT.prototype.getResizeControlObj=function(){return this.resizeControlObj;}
BaseWindowLT.prototype.getCloseMinControlObj=function(){return this.closeMinControlObj;}
BaseWindowLT.prototype.getCloseRestoreControlObj=function(){return this.closeRestoreControlObj;}
BaseWindowLT.prototype.getCloseControlObj=function(){return this.closeControlObj;}
BaseWindowLT.prototype.getId=function(){return this.idObject}
BaseWindowLT.prototype.getIdForm=function(){return this.idForm;}
BaseWindowLT.prototype.getResizeControlObj=function(){return this.resizeControlObj;}
BaseWindowLT.prototype.getCloseMinControlObj=function(){return this.closeMinControlObj;}
BaseWindowLT.prototype.getCloseControlObj=function(){return this.closeControlObj;}
BaseWindowLT.prototype.apri=function(){gisJQuery.gisWinUtilLT.apri(this.winObj,this);}
BaseWindowLT.prototype.chiudi=function(){gisJQuery.gisWinUtilLT.chiudi(this.winObj);}
if(this.resizable){this.resizeControlObj=document.getElementById(this.idForm+":"+this.idObject+"mapWinresizeObk");if(this.draggable){gisJQuery.gisWinUtilLT.bindResize(this.winObj,this.winContentObj,this.resizeControlObj,this.delta,this.deltabody,this.winHeaderObjId);}else{gisJQuery.gisWinUtilLT.bindResize(this.winObj,this.winContentObj,this.resizeControlObj,this.delta,this.deltabody,null);}}
if(this.draggable&&!this.resizable){gisJQuery.gisWinUtilLT.bindDrag(this.winObj,this.winHeaderObjId);}
if(this.controls){this.closeControlObj=document.getElementById(this.idForm+":"+this.idObject+"mapWinButtonsObk");this.closeMinControlObj=document.getElementById(this.idForm+":"+this.idObject+"mapWinButtonsObkMin");this.closeRestoreControlObj=document.getElementById(this.idForm+":"+this.idObject+"mapWinButtonsObkRestore");gisJQuery.gisWinUtilLT.bindCloseClick(this.winObj,this.closeControlObj);gisJQuery.gisWinUtilLT.bindMaxMin(this.winObj,this.closeRestoreControlObj,this.closeMinControlObj,this.winContentObj,this.resizeControlObj,this.delta,this.sizehHeader.h,this);}
BaseWindowLT.prototype.rebindDragResize=function(){if(this.resizable){this.resizeControlObj=document.getElementById(this.idForm+":"+this.idObject+"mapWinresizeObk");if(this.draggable){gisJQuery.gisWinUtilLT.bindResize(this.winObj,this.winContentObj,this.resizeControlObj,this.delta,this.deltabody,this.winHeaderObjId);}else{gisJQuery.gisWinUtilLT.bindResize(this.winObj,this.winContentObj,this.resizeControlObj,this.delta,this.deltabody,null);}}
if(this.draggable&&!this.resizable){gisJQuery.gisWinUtilLT.bindDrag(this.winObj,this.winHeaderObjId);}}}
