YAHOO.namespace("popup");

YAHOO.popup.open = function (loc, winname, widthh, heightt, params) {
	var tp = Math.ceil((screen.height - heightt) / 3);
	var lf = Math.ceil((screen.width - widthh) / 2);
	if (params.length > 0) {
		params = "," + params;
	}
	var win = window.open(loc, winname, "width=" + widthh + ",height=" + heightt + ",top=" + tp + ",left=" + lf + params);

	Event.observe(win, "dom:loaded", function(){
		win.document.body.style.cssText="overflow:hidden;";
	});
	
	win.focus();
	return win;
}
