var ns4 = (document.layers)? true:false var ie4 = (document.all)? true:false var iwp = null var helpp = null function OpenWindow(url,parms) { if (iwp != null){ if(ie4) iwp.close() iwp = null } iwp = window.open(url,"iwp",parms) iwp.focus(); } /* function PopCoupon(CPI) { var pmurl = "/SK/Pops/PopCoupon.asp?CPI="+CPI OpenWindow(pmurl,"scrollbars=no,width=610,height=255") } */ function PopAddServices() { var pmurl = "https://cp.SaverKey.com/SK/Pops/PopOrder.asp" OpenWindow(pmurl,"scrollbars=yes,width=670,height=600") } function PopSleepers() { var pmurl = "/SK/Pops/PopSleepers.asp" OpenWindow(pmurl,"scrollbars=no,width=500,height=500") } function PopReports(Which) { var pmurl = "/SK/Biz/Pops/PopReports.asp?Which="+Which OpenWindow(pmurl,"scrollbars=yes,width=600,height=600") } function PopRewards(Which) { var pmurl = "/SK/Pops/PopRewards.asp?Which="+Which OpenWindow(pmurl,"scrollbars=yes,width=800,height=600") } function PopBuyNowPoints(Which) { var pmurl = "/SK/Pops/PopBuyNowPoints.asp?Which="+Which OpenWindow(pmurl,"scrollbars=no,width=500,height=500") } function PopPocketScanPackage() { var pmurl = "/SK/Pops/PopPocketScanPackage.asp" OpenWindow(pmurl,"scrollbars=yes,width=500,height=500") } function PopLiveScanPackage() { var pmurl = "/SK/Pops/PopLiveScanPackage.asp" OpenWindow(pmurl,"scrollbars=yes,width=500,height=500") } function PopAboutPoints() { var pmurl = "/SK/Pops/PopAboutPoints.asp" OpenWindow(pmurl,"scrollbars=yes,width=500,height=500") } function PopAnalyzeAccount(AcctID,ACode,Phone) { var pmurl = "/SK/Biz/Pops/PopAnalyzeAccount.asp?AcctID=" + AcctID + "&ACode=" + ACode + "&Phone=" + Phone OpenWindow(pmurl,"scrollbars=yes,width=600,height=600") } function PopGetStartedSRS() { var pmurl = "/SK/Pops/PopGetStartedSRS.asp" helpp = window.open(pmurl,"helpp","resizable=yes,scrollbars=yes,width=300,height=600") helpp.focus(); } function PopLargeWindow(url) { var pmurl = url helpp = window.open(pmurl,"helpp","resizable=yes,scrollbars=yes,width=800,height=600") helpp.focus(); } function PopQrCode(BizAcctID,BizID,EventID,RBEGroup,ActionID) { var pmurl = "http://ypc.net/Tools/QRCode?BizAcctID="+BizAcctID+"&BizID="+BizID+"&EventID="+EventID+"&RBEGroup="+RBEGroup+"&ActionID="+ActionID iwp = window.open(pmurl,"QRCode","resizable=yes,scrollbars=yes,width=1050,height=800") iwp.focus(); } function PopExhibitorLetter(BizAcctID,BizID,EventID) { var pmurl = "/SK/SRS/ExhibitorLetter.asp?BizAcctID="+BizAcctID+"&BizID="+BizID+"&EventID="+EventID iwp = window.open(pmurl,"QRCode","resizable=yes,scrollbars=yes,width=1050,height=800") iwp.focus(); } function PopSalesFAQ() { var pmurl = "/SK/Pops/PopSalesFAQ.asp" helpp = window.open(pmurl,"helpp","resizable=yes,scrollbars=yes,width=400,height=600") helpp.focus(); } function PopSalesHistory() { var pmurl = "/SK/Pops/PopSalesHistory.asp" helpp = window.open(pmurl,"helpp","resizable=yes,scrollbars=yes,width=700,height=600") helpp.focus(); } function PopSalesSearch() { var pmurl = "/SK/Pops/PopSalesSearch.asp" helpp = window.open(pmurl,"helpp","resizable=yes,scrollbars=yes,width=400,height=600") helpp.focus(); } function PopMobilePage(MobileWebPage) { var pmurl = MobileWebPage helpp = window.open(pmurl,"helpp","resizable=yes,scrollbars=yes,width=525,height=700") helpp.focus(); } function PopHelp(which,tag) { var pmurl pmurl = "/SK/Pops/PopHelp.asp" if (helpp != null){ if(ie4) helpp.close() helpp = null } if( tag != "" ) { pmurl += "?Which="+which+"&Tag="+tag+"#" + tag } else { pmurl += "?Which="+which } helpp = window.open(pmurl,"helpp","resizable=yes,scrollbars=yes,width=300,height=600") helpp.focus(); }