function popup(page, name, style, width, height)
{
	var position_left = 0;
	var position_top = 0;
	var location = 0;
	var scrollbars = 0;
	var resizable = 1;
	
	if ((position_left + width) >= screen.width)
	{
		width = (screen.width - 50);
	}
	
	if ((position_top + height) >= screen.height)
	{
		height = (screen.height - 75);
	}
	
	var settings = "width=" + width + ",height=" + height
	+ ",left=" + position_left + ",top=" + position_top
	+ ",toolbar=0,menubar=0,location=" + location
	+ ",status=0,resizable=" + resizable + ",scrollbars=" + scrollbars;
	
	window.open(page,name,settings);
}


function toggle_visibility(element_to_use, image_to_use)
{
	if (document.getElementById)
	{
		var element = document.getElementById(element_to_use);
		var image = document.getElementById(image_to_use);
		
		if (element.style.display == 'none')
		{
			element.style.display = 'block';
			image.src = 'inc/gfx/show_hide_minus.gif';
		}
		else
		{
			element.style.display = 'none';
			image.src = 'inc/gfx/show_hide_plus.gif';
		}
	}
}


function hide_element(element)
{
	if (document.getElementById)
	{
		document.getElementById(element).style.display = 'none';
	}
}