	//  ___         _      _ 
	// / __| __ _ _(_)_ __| |_      Script developed by Ubora as part of SiteManager
	// \__ \/ _| '_| | '_ \  _|
	// |___/\__|_| |_| .__/\__|     Website: http://www.ubora.nl
	//               |_|            E-mail:  contact@ubora.nl

	function Open(page)
		{
		if (popup_horizontal == 'left')
			{
			var x = 5;
			}
		else if (popup_horizontal == 'center')
			{
			var x = (screen.width - popup_w) / 2;
			}
		else if (popup_horizontal == 'right')
			{
			var x = (screen.width - popup_w) + 5;
			}

		if (popup_vertical == 'top')
			{
			var y = 5;
			}
		else if (popup_vertical == 'middle')
			{
			var y = (screen.height - popup_h - 30) / 2;
			}
		else if (popup_vertical == 'bottom')
			{
			var y = (screen.height - popup_h - 30);
			}

		winprops = 'height='+popup_h+',width='+popup_w+',top='+y+',left='+x+',scrollbars=yes',
		detailwindow = window.open(page,'PopupWindow',winprops);
		if (parseInt(navigator.appVersion) >= 4)
			{
			detailwindow.window.focus();
			}
		}