
function _ISD_UI_Window_open(href, name, features)
{
	return window.open(href, name, features);
}

function _ISD_UI_Window_openPos(href, name, width, height, left, top, enableResize)
{
	var features = 'menubar=0,toolbar=0,status=0' +	',width=' + width + ',height=' + height + ',left=' + left + ',top=' + top;
	if(enableResize)
		features += ',scrollbars=1,resizable=1';
	else
		features += ',scrollbars=0,resizable=0';

	return _ISD_UI_Window_open(href, name, features);
}

function _ISD_UI_Window_openHidden(href, name)
{
	var width=10;
	var height=10;
	var left = window.screen.width;
	var top = window.screen.height;
	var wnd = _ISD_UI_Window_openPos(href, name, width, height, left, top);
	window.focus();
	return wnd;
}

function _ISD_UI_Window_openPopup(href, name, width, height, enableResize)
{
	var left = (window.screen.width-width)/2;
	var top = (window.screen.height-height)/2;
	var wnd = _ISD_UI_Window_openPos(href, name, width, height, left, top, enableResize);
	wnd.focus();
	return wnd;
}

function _ISD_UI_Window_openModal(href, params, name, width, height, enableResize)
{
	var left = (window.screen.width-width)/2;
	var top = (window.screen.height-height)/2;
  var resizable = (enableResize || "Yes" == enableResize || "True" == enableResize)? "Yes" : "No";
  var wnd = window.showModalDialog(href, params , "dialogHeight: " + height + "px; dialogWidth: " + width + "px; dialogTop: " + top+ "px; dialogLeft: " + left+ "px; edge: Raised; center: No; help: No; resizable: " + resizable + "; status: No;");
	wnd.focus();
	return wnd;
}


