var sWidth = (screen.width) ? screen.width : 0; var sHeight = (screen.height) ? screen.height : 0; var screenX; var screenY; function bypassLobby() { if (sWidth > 1000) { // if the screen res is higher than 800x600 then open the large auditorium aWidth = 710; aHeight = 394; screensize="large"; } else { aWidth = 710; aHeight = 394; screensize="small"; } } //**********************// 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 openWin() { if (sWidth > 1000) { // if the screen res is higher than 800x600 then open the large auditorium aWidth = 710; aHeight = 394; screensize="large"; } else { aWidth = 710; aHeight = 394; screensize="small"; } pLeft = (sWidth - aWidth) / 2; pTop = ((sHeight - aHeight) / 2 ) - 40; if (pTop < 0) { pTop = 0; } if (pLeft < 0) { pLeft = 0; } var aWindow=window.open("auditorium/index.asp?lang=english&screensize="+screensize+"&rndkey=","thewindow","width="+aWidth+",height="+aHeight+",top="+pTop+",left="+pLeft+",toolbar=0,location=0,statusbar=0,menubar=0,resizable=0,scrollbars=1"); if (aWindow) { aWindow.focus(); } } function openWinReg(sQuery) { if (sWidth > 1000) { // if the screen res is higher than 800x600 then open the large auditorium aWidth = 710; aHeight = 394; screensize="large"; } else { aWidth = 710; aHeight = 394; screensize="small"; } pLeft = (sWidth - aWidth) / 2; pTop = ((sHeight - aHeight) / 2 ) - 40; if (pTop < 0) { pTop = 0; } if (pLeft < 0) { pLeft = 0; } var aWindow=window.open("popup-reg.asp?lang=english&referral=&rndkey=&screensize="+screensize+"&"+sQuery, "thewindow", "width="+aWidth+", height="+aHeight+", top="+pTop+", left="+pLeft+", toolbar=0, location=0, statusbar=0, menubar=0, resizable=0, scrollbars=1"); if (aWindow) { aWindow.focus(); } } function openWinConf() { if (sWidth > 1000) { // if the screen res is higher than 800x600 then open the large auditorium aWidth = 710; aHeight = 394; screensize="large"; } else { aWidth = 710; aHeight = 394; screensize="small"; } pLeft = (sWidth - aWidth) / 2; pTop = ((sHeight - aHeight) / 2 ) - 40; if (pTop < 0) { pTop = 0; } if (pLeft < 0) { pLeft = 0; } var aWindow=window.open("auditorium/index.asp?lang=english&rndkey=&screensize="+screensize+"&selectedConferenceCall=1","thewindow","width="+aWidth+",height="+aHeight+",top="+pTop+",left="+pLeft+",toolbar=0,location=0,statusbar=0,menubar=0,resizable=0, scrollbars=1"); if (aWindow) { aWindow.focus(); } } function openSubReg(iSubEventID, sLang) { if (sWidth > 1000) { // if the screen res is higher than 800x600 then open the large auditorium aWidth = 710; aHeight = 394; screensize="large"; } else { aWidth = 710; aHeight = 394; screensize="small"; } pLeft = (sWidth - aWidth) / 2; pTop = ((sHeight - aHeight) / 2 ) - 40; if (pTop < 0) { pTop = 0; } if (pLeft < 0) { pLeft = 0; } var aWindow=window.open("./popup-reg.asp?lang=english&rndkey=&slaveregistration=slaveevent&screensize="+screensize+"&subeventid="+iSubEventID,"thewindow","width="+aWidth+",height="+aHeight+",top="+pTop+",left="+pLeft+",toolbar=0,location=0,statusbar=0,menubar=0,resizable=0, scrollbars=1"); if (aWindow) { aWindow.focus(); } } function openProceed() { if (sWidth > 1000) { // if the screen res is higher than 800x600 then open the large auditorium aWidth = 710; aHeight = 394; screensize="large"; } else { aWidth = 710; aHeight = 394; screensize="small"; } pLeft = (sWidth - aWidth) / 2; pTop = ((sHeight - aHeight) / 2 ) - 40; if (pTop < 0) { pTop = 0; } if (pLeft < 0) { pLeft = 0; } //document.cookie="screensize="+screensize+"; path=/"; var aWindow=window.open("./proceed.asp?lang=english&rndkey=&screensize="+screensize+"&referral=", "thewindow", "width="+aWidth+", height="+aHeight+", top="+pTop+", left="+pLeft+", toolbar=0, location=0, statusbar=0, menubar=0, resizable=0, scrollbars=1"); if (aWindow) { aWindow.focus(); } } //**********************// function Tell() { var Tellwindow=window.open("Forms/invite-a-friend.asp?rndkey=","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://events.streamlogics.net/standard_includes/english/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?lang=english&rndkey=","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 (top.window.opener && !top.window.opener.closed) { top.window.opener.top.location.href="./Player/exitsurvey.asp?lang=english&rndkey=&auditorium_slave_eventid="; } else { document.location.href="./Player/exitsurvey.asp?lang=english&rndkey=&auditorium_slave_eventid="; return "Please complete our SURVEY before you close this window.\n\r" + "Click CANCEL to view the survey in this page.  Click OK to close the page without viewing the survey."; } } catch(err) { window.open("./Player/exitsurvey.asp?lang=english&rndkey=&auditorium_slave_eventid="); } } function openSurveyWindow() { if(is_loaded) return; is_loaded=true; try { if (top.window.opener && !top.window.opener.closed) { top.window.opener.top.location.href="./Player/exitsurvey.asp?lang=english&rndkey=&auditorium_slave_eventid="; } else { window.open("./Player/exitsurvey.asp?lang=english&rndkey=&auditorium_slave_eventid="); } } catch(err) { window.open("./Player/exitsurvey.asp?lang=english&rndkey=&auditorium_slave_eventid="); } }