function windowopen(url)
{
	var width = 700;
	var height = 500;
	
	if (arguments.length >= 3)
	{
		if (parseInt(arguments[1]) > 0 &&
		    parseInt(arguments[2]) > 0)
		{
			width = parseInt(arguments[1]);
			height = parseInt(arguments[2]);
		}
	}
	
	var scrollbars_resizable = "yes";
	
	if (arguments.length >= 4)
	{
		scrollbars_resizable = arguments[3];
	}
	
	if (__edit == true)
	{
		height += 95;
	}
	
	window.open(url,'','width=' + width + ',height=' + height + ',scrollbars=' + scrollbars_resizable + ',resizable=' + scrollbars_resizable + ',titlebar=0,top=' + ((screen.availHeight-height) / 2) + ',left=' + ((screen.availWidth-width) / 2));
}

function windowopenunder(url)
{
	var width = 700;
	var height = 500;
	
	if (arguments.length >= 3)
	{
		if (parseInt(arguments[1]) > 0 &&
		    parseInt(arguments[2]) > 0)
		{
			width = parseInt(arguments[1]);
			height = parseInt(arguments[2]);
		}
	}
	
	var scrollbars_resizable = "yes";
	
	if (arguments.length >= 4)
	{
		scrollbars_resizable = arguments[3];
	}
	
	if (__edit == true)
	{
		height += 95;
	}
	
	var w = window.open(url,'','width=' + width + ',height=' + height + ',scrollbars=' + scrollbars_resizable + ',resizable=' + scrollbars_resizable + ',titlebar=0,top=' + ((screen.availHeight-height) / 2) + ',left=' + ((screen.availWidth-width) / 2));
	w.blur()
    window.focus()
}