
	function open_window(page, width, height) 
	{
		x = (640 - width)/2, y = (480 - height)/2;
	
		if (screen) 
		{
			y = (screen.availHeight - height)/2;
			x = (screen.availWidth - width)/2;
		}
	
		popup = window.open(page, 'CtrlWindow', 'toolbar={toolbar},top='+ y +',left='+ x +',screenY='+ y +',screenX='+ x +',scrollbars={scrollbars},menubar={menubar},location={location},resizable={resizable},width=' + width + ',height=' + height);
	}
	
	function openWin(sm) {
		var wdt = 800;
		var hgt = 700;
		var left = parseInt((screen.availWidth/2) - (wdt/2));
		var top = parseInt((screen.availHeight/2) - (hgt/2));
		aWindow = window.open("http://finance.yahoo.com/q?s=" + sm , "Yahoo Info", "width=" + wdt + ", height=" + hgt + ", scrollbars=yes, screenX=" + left + ", screenY=" + top);
	}

	function openWinUG() {
		var wdt = 800;
		var hgt = 700;
		var left = parseInt((screen.availWidth/2) - (wdt/2));
		var top = parseInt((screen.availHeight/2) - (hgt/2));
		aWindow = window.open("http://finance.yahoo.com/mru?u", "Yahoo Info", "width=" + wdt + ", height=" + hgt + ", scrollbars=yes, resize=yes, screenX=" + left + ", screenY=" + top);
	}

	function openWinDG() {
		var wdt = 800;
		var hgt = 700;
		var left = parseInt((screen.availWidth/2) - (wdt/2));
		var top = parseInt((screen.availHeight/2) - (hgt/2));
		aWindow = window.open("http://finance.yahoo.com/mrd", "Yahoo Info", "width=" + wdt + ", height=" + hgt + ", scrollbars=yes, screenX=" + left + ", screenY=" + top);
	}

	function openWinE() {
		var wdt = 1000;
		var hgt = 700;
		var left = parseInt((screen.availWidth/2) - (wdt/2));
		var top = parseInt((screen.availHeight/2) - (hgt/2));
		aWindow = window.open("http://biz.yahoo.com/research/earncal/today.html", "Yahoo Info", "width=" + wdt + ", height=" + hgt + ", scrollbars=yes, screenX=" + left + ", screenY=" + top);
	}

	function openWinEC() {
		var wdt = 1000;
		var hgt = 700;
		var left = parseInt((screen.availWidth/2) - (wdt/2));
		var top = parseInt((screen.availHeight/2) - (hgt/2));
		aWindow = window.open("http://biz.yahoo.com/c/e.html", "Yahoo Info", "width=" + wdt + ", height=" + hgt + ", scrollbars=yes, screenX=" + left + ", screenY=" + top);
	}

	function openWinF() {
		var wdt = 1000;
		var hgt = 700;
		var left = parseInt((screen.availWidth/2) - (wdt/2));
		var top = parseInt((screen.availHeight/2) - (hgt/2));
		aWindow = window.open("http://www2.barchart.com/mktcom.asp?section=indices", "Yahoo Info", "width=" + wdt + ", height=" + hgt + ", scrollbars=yes, screenX=" + left + ", screenY=" + top);
	}

	function openWinD() {
		var wdt = 650;
		var hgt = 550;
		var left = parseInt((screen.availWidth/2) - (wdt/2));
		var top = parseInt((screen.availHeight/2) - (hgt/2));
		aWindow = window.open("include/disclaimer.html", "Disclaimer", "width=" + wdt + ", height=" + hgt + ", scrollbars=yes, screenX=" + left + ", screenY=" + top);
	}

	function openWinC() {
		var wdt = 650;
		var hgt = 550;
		var left = parseInt((screen.availWidth/2) - (wdt/2));
		var top = parseInt((screen.availHeight/2) - (hgt/2));
		aWindow = window.open("include/contact.html", "Contacts", "width=" + wdt + ", height=" + hgt + ", scrollbars=yes, screenX=" + left + ", screenY=" + top);
	}

	function openWinInfo(sm) {
		var wdt = 280;
		var hgt = 500;
		var left = parseInt((screen.availWidth) - (wdt+20));
		var top = parseInt((screen.availHeight) - (wdt+20));
		aWindow = window.open("include/val_info.php?sym=" + sm , null, "width=" + wdt + ", height=" + hgt + ", scrollbars=auto, status=no, toolbar=no, menubar=no, location=no,  screenX=" + left + ", screenY=" + top);
	}

	function openWinI() {
		var wdt = 650;
		var hgt = 620;
		var left = parseInt((screen.availWidth/2) - (wdt/2));
		var top = parseInt((screen.availHeight/2) - (hgt/2));
		aWindow = window.open("intro.php", "", "width=" + wdt + ", height=" + hgt + ", scrollbars=yes, screenX=" + left + ", screenY=" + top);
	}

