/**
 * Javascript functions for IgnitionWeb Administration Site
 *
 * This file may be included by a front-end
 */

function iw_open_window(link, window_name, width, height, resizable, scrollbars) 
{ 
	return window.open(link, window_name,'toolbar=no,location=no,status=no,menubar=0,scrollbars='+scrollbars+',resizable='+resizable+',height='+height+',width='+width+',top='+(screen.height-height)/2+',left='+(screen.width-width)/2+',copyhistory=no');
}

var rib_window;
var mcb_window;
function close_browsers()
{
    // close RIB window if it's open; usually used as onunload handler
    if (typeof(rib_window) != 'undefined' && !rib_window.closed) {
        rib_window.close();
    }
    if (typeof(mcb_window) != 'undefined' && !mcb_window.closed) {
        mcb_window.close();
    }
}
