<!--

	function openWindow(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable) {

		toolbar_str = toolbar ? 'yes' : 'no';
		menubar_str = menubar ? 'yes' : 'no';
		statusbar_str = statusbar ? 'yes' : 'no';
		scrollbar_str = scrollbar ? 'yes' : 'no';
		resizable_str = resizable ? 'yes' : 'no';

		return window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
	}



	function getCenterX(width, type) {

		var an = getNavigator();
		var left = 0;

		if(type == "window") {

			if(an == "IE")
				left = (screen.width/2) - (width/2);
			else
				left = (self.window.innerWidth/2) - (width/2);

		} else if(type == "layer") {

			if(an == "IE")
				left = (document.body.clientWidth/2) - (width/2);
			else
				left = (self.window.innerWidth/2) - (width/2);

		} else {

			left = 0;
		}


		if(left < 0)
			left = 0;

		return left;
	}



	function getCenterY(height, type) {

		var an = getNavigator();
		var top = 0;

		if(type == "window") {

			if(an == "IE")
				top = (screen.height/2) - (height/2);
			else
				top = (self.window.innerHeight/2) - (height/2);

		} else if(type == "layer") {

			if(an == "IE")
				top = (document.body.clientHeight/2) - (height/2);
			else
				top = (self.window.innerHeight/2) - (height/2);

		} else {

			top = 0;
		}


		if(top < 0)
			top = 0;

		return top;
	}

//-->
