var popup;

function openPopup(title, url, width, height, scroll) {
	
	if (url == null) return; 
	if (width == null) width = 580;
	if (height == null) height = 620;
	if (scroll == null) scroll = true;

	popup = new Ext.Window({
		title : title,
		width : width,
		height : height,
		autoScroll : scroll,
		border : false,
		bodyBorder : false,
		layout : 'fit',
		modal : true,
		closable : true,
		onEsc : Ext.emptyFn,
		maximizable : false,
		resizable : false
	});
	
	popup.show();
	
	new Ajax.Updater(
		popup.body.id, 
		url,
		{
			encoding	: "iso-8859-1",
			evalScripts	: true,
			evalJS: "force"
		}
	);

}

