var _callback_func = null;
function DoModal(url, height, width, features, callback_function)
{
    _callback_func = callback_function;
    height = parseFloat(height);
    width = parseFloat(width);
    showPopWin(url, width, height, DoModalCallback, null);
    /*
	return showModalDialog("/Public/Dialog/DialogFrame.aspx?" + escape(url), 0,
							"dialogWidth:" + width + ";" +
							"dialogHeight:" + height + ";" + features);
    */
}

function DoModalCallback(rv)
{
    if(_callback_func != null)
        _callback_func(rv)
}


