function win(url,name,w,h,scroll,resize,showMenue) {
	 
   if (window.screen) {
		var screen_height = screen.availHeight - 30;
		var screen_width = screen.availWidth-10;
   	if (w==0){
      	w = screen_width
         x = 0;
      }else{
      	w = Math.min(screen_width,w);
         x = (screen_width - w) / 2;
      }
   	if (h==0){
      	h = screen_height;
         y = 0;
      }else{
			h = Math.min(screen_height,h);
			y = (screen_height - h) / 2;
      }
   }
this.x = "left="+x;
this.y = "top="+y;
this.scroll = "scrollbars=no";
this.resizable= "resizable=no";
this.hideMenue= (!showMenue) ? "menubar=no" : "menubar=yes" ;   
this.w = (w) ? "width="+w : null;
this.h = (h) ? "height="+h : null;

this.p = this.w+","+this.h+","+this.scrollh+","+this.x+","+this.y+","+this.resizable;

this.name = "NMWindow";

this.url=url;
this.winH = null;   
this.open = WindowOpen;
this.close = WindowClose; 
this.o = this.name+"Object";
eval(this.o + "=this");
this.open();
}
function WindowOpen(){
	this.winH = window.open(this.url,this.name,this.p+",modal=yes");
	this.winH.focus();
}
function WindowClose(){
	if(!this.winH.closed) this.winH.close();
}
var Window_count = 0;

