function openSimpleDialog(str_url, str_windowName, int_width, int_height) {
	
	// the best we can do is center in screen.
	int_windowleft 	= (screen.width - int_width) / 2;
	int_windowtop 	= (screen.height - int_height) / 2;
	var str_attr = 'left=' + int_windowleft + ',top=' + int_windowtop + ',resizable=no,width=' + int_width + ',height=' + int_height + ',dependent=no,scrollbars=yes';

	// Generate the dialog and make sure it has focus.
	if (str_file = str_url.match(/^(.*)\.php/)) {

		if (typeof str_file != 'string') {
			str_file = str_file[0];
		}

		if (!str_file.match(/^(https?:|ftp:)/)) {
			ostr_url = document.location.protocol + '//' + document.location.hostname + '/' + str_file + str_url.match(/\?(.*)$/);
		}
	}
	
	newWindow = window.open(str_url, str_windowName, str_attr);
	newWindow.focus();
	
}
