var sWidth = (screen.width) ? screen.width : 0; var sHeight = (screen.height) ? screen.height : 0; var screenX; var screenY; function centerWindow(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 Tell() { var Tellwindow=window.open("Forms/invite-a-friend.asp?eventid=11092775&lang=english&rndkey=&is_testing=0&is_survey=0","tell","width=350,height=260,toolbar=no,menubar=no,status=no,scrollbars=no,resizable=no"); if (Tellwindow) { centerWindow(Tellwindow) Tellwindow.focus(); } } function openCop() { aWindow=window.open("http://webcast.streamlogics.com/standard_includes/" + lang + "/copyright.htm","copwindow","width=300,height=450,toolbar=no,menubar=no,status=no,scrollbars=yes,resize=no"); if (aWindow) { if (aWindow.opener == null) aWindow.opener = window; } } function openqanda() { aWindow=window.open("Forms/question.asp?eventid=11092775&lang=english&rndkey=&is_testing=0&is_survey=0","qandawindow","width=400,height=70,toolbar=no,menubar=no,status=no,scrollbars=yes,resize=no"); if (aWindow) { if (aWindow.opener == null) aWindow.opener = window; } } function openQuote(stock_quote_symbol) { //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=","Quote","width=650,height=450,toolbar=no,menubar=no,status=no,scrollbars=yes, resizable=yes"); QuoteWindow=window.open("http://www.stockhouse.ca/comp_info.asp?symbol=" + stock_quote_symbol + "&table=list","Quote", "width=650, height=450, toolbar=no, menubar=no, status=no, scrollbars=yes, resizable=yes"); if (QuoteWindow) { centerWindow(QuoteWindow) QuoteWindow.focus(); } } var is_loaded = false; function openSurveyWindowB() { is_loaded=true; try { if (parent.window.opener && !parent.window.opener.closed) { parent.window.opener.parent.location.href="./Player/exitsurvey.asp?lang=english&rndkey=&eventid=11092775"; } else { document.location.href="./Player/exitsurvey.asp?lang=english&rndkey=&eventid=11092775"; return "THERE IS A SURVEY, PLEASE CLICK \"Cancel\" BUTTON!!!"; } } catch(err) { window.open("./Player/exitsurvey.asp?lang=english&rndkey=&eventid=11092775"); } } function openSurveyWindow(InOpenerWin) { if(is_loaded) return; is_loaded=true; try { if (parent.window.opener && !parent.window.opener.closed && InOpenerWin) { parent.window.opener.parent.location.href="./Player/exitsurvey.asp?lang=english&rndkey=&eventid=11092775"; parent.window.opener.focus(); } else { var popWin = window.open("./Player/exitsurvey.asp?lang=english&rndkey=&eventid=11092775","Test_Survey","width=800,height=600,toolbar=yes,menubar=yes,status=yes,scrollbars=yes,resize=yes"); if(popWin==null || typeof(popWin)=="undefined"){ document.location.href="./Player/exitsurvey.asp?lang=english&rndkey=&eventid=11092775"; return "THERE IS A SURVEY, PLEASE CLICK \"Cancel\" BUTTON!!!"; } else popWin.focus(); } } catch(err) { window.open("./Player/exitsurvey.asp?lang=english&rndkey=&eventid=11092775"); } }