	function openWindow(url, PageWidth, PageHeight, _scrollbars, _status)
	{
		if(document.body.clientWidth && document.body.clientHeight && window.screenLeft && window.screenTop)
		{
			var popleft = ((document.body.clientWidth - PageWidth) / 2) + window.screenLeft;
			var poptop = (((document.body.clientHeight - PageHeight) / 2)) + window.screenTop - 40;
		}
		else
		{
			var popleft = ((document.body.clientWidth - PageWidth) / 2) + window.screenX;
			var poptop = (((document.body.clientHeight - PageHeight) / 2)) + window.screenY - 40;
		}
		
		str = "" + Math.random() + "";
		_unique_id = str.substr(2, str.length);
		
		window_url = url.indexOf(".php?") != "-1" ? (url + "&popup_width=" + PageWidth + "&popup_height=" + PageHeight) : (url + "?popup_width=" + PageWidth + "&popup_height=" + PageHeight);
		
		window.open(window_url, _unique_id ,"status=" + _status + ",resizable=1,scrollbars=" + _scrollbars + ",width=" + PageWidth + ",height=" + PageHeight + ",left=" + popleft + ",top=" + poptop);
	}
	
	function calculate_left(PageWidth)
	{
		var positionLeft = (screen.width-PageWidth)/2;
		return Math.round(positionLeft);
	}
	
	function doNothing()
	{
	}
/*	
sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}

if (window.attachEvent) window.attachEvent("onload", sfHover);
*/
