var sWidth = (screen.width) ? screen.width : 0;
var sHeight = (screen.height) ? screen.height : 0;
var screenX;
var screenY;
//**********************//

//**********************//
function centerStopWindow(myWin) {
	myDoc = myWin.document.body;
	if (sWidth > 800 || sHeight > 600) {
		screenX = (screen.availWidth / 2) - ((myDoc != null && myDoc.clientWidth > 0) ? (myDoc.clientWidth / 2) : 250);
		screenY = (screen.availHeight / 2) - ((myDoc != null && myDoc.clientHeight > 0) ? (myDoc.clientHeight / 2) : 120);
		myWin.window.moveTo(screenX, screenY);
	}
}
//***************************//
function openWin() {

		if (sWidth >800 && sHeight > 600) {
			pLeft = (sWidth - 710) / 2;
			pTop = ((sHeight - 370) / 2 ) - 30;
			if (pTop < 0)
			{
				pTop = 0;
			}
		}
		else {
			pLeft = 0;
			pTop = 0;
		}
		var aWindow=window.open("auditorium/index.asp","thewindow","width=710,height=394,top="+pTop+",left="+pLeft+",toolbar=0,location=0,statusbar=0,menubar=0,resizable=0");
		aWindow.focus();

}

function openFromProceed() {

		if (sWidth >800 && sHeight > 600) {
			pLeft = (sWidth - 710) / 2;
			pTop = ((sHeight - 370) / 2 ) - 30;
			if (pTop < 0)
			{
				pTop = 0;
			}
		}
		else {
			pLeft = 0;
			pTop = 0;
		}
		var aWindow=window.open("../../auditorium/index.asp","thewindow","width=710,height=394,top="+pTop+",left="+pLeft+",toolbar=0,location=0,statusbar=0,menubar=0,resizable=0");
		aWindow.focus();

}
//**********************//
function stopWindow(){
  var mutewindow=window.open("stop.htm","plain","width=450,height=150,toolbar=no,menubar=no,status=no,scrollbars=no,resize=no");
	centerStopWindow(mutewindow)
	mutewindow.focus();
}
//**********************//
function Tell(){
  var Tellwindow=window.open("../include/forms/invite-a-friend.asp","tell","width=300,height=230,toolbar=no,menubar=no,status=no,scrollbars=no,resizable=no");
	centerStopWindow(Tellwindow)
	Tellwindow.focus();
}
//**********************//
function openCop(){
aWindow=window.open("include/copyright.htm","copwindow","width=300,height=450,toolbar=no,menubar=no,status=no,scrollbars=yes,resize=no");
  if (aWindow.opener == null) aWindow.opener = window;
}
//**********************//
function openQuote(){
//For the Quote Ticker enter the symbol after 'pi_symbol=' in this exp: CMGI-Q//
QuoteWindow=window.open("http://investdb.theglobeandmail.com/invest/investSQL/gx.stock_today?pi_symbol=CMGI-Q","Quote","width=650,height=450,toolbar=no,menubar=no,status=no,scrollbars=yes, resizable=yes");
  centerStopWindow(QuoteWindow)
  QuoteWindow.focus();
}