function JSWindow(a,b){this.name=a;this.window=b}function WindowList(){this.windows=new Array()}WindowList.prototype.add=function(a,c){var b=new JSWindow(a,c);this.windows.push(b)};WindowList.prototype.get=function(a){var c=null;if(this.windows!=null&&this.windows.length>0){for(var b=0;b<this.windows.length;b++){if(this.windows[b].name==a){return this.windows[b].window}}}return c};WindowList.prototype.remove=function(a){if(this.windows!=null&&this.windows.length>0){for(var b=0;b<this.windows.length;b++){if(this.windows[b].name==a){this.windows[b].window.close();this.windows.splice(b,1)}}}};WindowList.prototype.closeAll=function(){if(this.windows!=null&&this.windows.length>0){for(var a=0;a<this.windows.length;a++){this.windows[a].window.close()}this.windows=null;this.windows=new Array()}};
