
Window = function() {

	this.WIDTH = 550;
	this.HEIGHT = 500;

	/**
	 * 幅と高さを指定してWindowを作る。
	 * ＊scrollbars=yes,resizable=yes
	 */
	var openEx = function(url, target, width, height) {
		var opt = "";
		
		if (width == null || width == undefined || width == "") {
			width = this.WIDTH;
		}
		
		if (height == null || height == undefined || height == "") {
			height = this.HEIGHT;
		}

		opt = "width=" + width + ",height=" + height;
		opt += (",screenX=" + (screen.width - width) / 2);
		opt += (",screenY=" + (screen.height - height) / 2);
		opt += ",scrollbars=yes,resizable=yes";
		
		return window.open(url, target, opt);
	}
	
	var openMapHelp = function(url, target, width, height) {
		return this.openEx(url, target, width, height);
	}

// static	
//	Window.prototype.openEx = openEx;
//	Window.prototype.openMapHelp = openMapHelp;

// public?
	this.openEx = openEx;
	this.openMapHelp = openMapHelp;
	
	return this;
}

var Window = new Window();

