Popup = Class.create();
Popup.prototype = {
	
	initialize: function (url,name,width,height,params) {
		this.url = url;
		this.name = name;
		this.width = width;
		this.height = height;
		this.params = params;
		this.x = this.y = 0;
	},
	
	init: function () {
		this.myPop = window.open(this.url,this.name,"width="+this.width+",height="+this.height+",left="+this.x+",top"+this.x+","+this.params);
	},
	
	center: function () {
		this.x = (screen.width/2) - (this.width/2);
		this.y = (screen.height/2) - (this.height/2);
	}
	
}
