var y1l00l10="http://www.tinbusports.com"; var feed_category=1; var ReqArchivePage=1; var ReqArchivePeriod=2; var ReqArchiveMonth=3; var ReqArchiveDate=4; var Req30DayResults=5; var ReqFreqChartDefault=6; var ReqSmartPick=7; var ReqHaveIWonEdit=8; var ReqHaveIWonConduct=9; var ReqCalculateOdds=10; var ReqJackpotHist=11; var ReqJackpotStat=12; var ReqJackpotAnalysis=13; var ReqTopUSJackpots=15; var ReqCurrUSJackpots=16; var ReqFreqChartDraws=17; var ReqFreqChartDate=18; var ReqQuickPick=19; var ReqJPInfo=20; var ReqTopJPs=21; var ReqSchedule=22; var CookieValueReqType; var CookieValueResultsState; var CookieValueArchiveState; var CookieValueGame; var CookieValueDraws; var CookieValueSortOrder; var CookieValueStartMonth; var CookieValueStartDay; var CookieValueStartYear; var CookieValueEndMonth; var CookieValueEndDay; var CookieValueEndYear; var CookieValueExact; var CookieValuePeriod; var CookieValueSet0; var CookieValueSet1; var CookieValueSet2; var CookieValueSet3; var CookieValueSet4; var CookieValueSet5; var CookieValueSet6; var CookieValueSet7; var CookieValueSet8; var CookieValueSet9; var CookieValueResFlag; var CookieValueLnkOff; var CookieNameReqType = "feed_reqtype"; var CookieNameResultsState = "feed_results_state"; var CookieNameArchiveState = "feed_archive_state"; var CookieNameGame = "feed_game"; var CookieNameDraws = "feed_draws"; var CookieNameSortOrder = "feed_order"; var CookieNameStartMonth = "feed_sm"; var CookieNameStartDay = "feed_sd"; var CookieNameStartYear = "feed_sy"; var CookieNameEndMonth = "feed_em"; var CookieNameEndDay = "feed_ed"; var CookieNameEndYear = "feed_ey"; var CookieNameExact = "feed_exact"; var CookieNamePeriod = "feed_period"; var CookieNameSet0 = "feed_set0"; var CookieNameSet1 = "feed_set1"; var CookieNameSet2 = "feed_set2"; var CookieNameSet3 = "feed_set3"; var CookieNameSet4 = "feed_set4"; var CookieNameSet5 = "feed_set5"; var CookieNameSet6 = "feed_set6"; var CookieNameSet7 = "feed_set7"; var CookieNameSet8 = "feed_set8"; var CookieNameSet9 = "feed_set9"; var CookieNameResFlag = "feed_res"; var CookieNameLnkSwitchOff = "feed_lnk"; var SITE_ADDR="http://www.lottostrategies.com"; var SITE_NAME="LottoStrategies.com"; var POWERBY_ADDR="http://www.lottostrategies.com"; var results_page=null; var IsResultsPage=true; var CurrentState=""; var FlagResults=1; var FlagJPInfo=2; var FlagTopJPs=3; var ExpireDate=new Date (); ExpireDate.setTime (ExpireDate.getTime()+(365*24*60*60*1000)); var RequestExpire=new Date (); RequestExpire.setTime (ExpireDate.getTime()+(2*1000)); var CascadeMenu=null; document.onclick=new Function("showldcmenu(null)"); function getldcPos(Element,sProp) { var iPos=0; while (Element!=null) { iPos+=Element["offset" + sProp]; Element=Element.offsetParent; } return iPos; } function showldcmenu(Element,TheMenu) { if (TheMenu) { TheMenu.style.display=''; TheMenu.style.pixelLeft=getldcPos(Element,"Left")+20; TheMenu.style.pixelTop=getldcPos(Element,"Top")+Element.offsetHeight; } if ((TheMenu!=CascadeMenu) && (CascadeMenu)) CascadeMenu.style.display='none'; CascadeMenu=TheMenu; } function feed_setCookie(feed_setCookie_name, feed_setCookie_value, feed_setCookie_expires, feed_setCookie_path) { var thisCookie=feed_setCookie_name + "=" + escape(feed_setCookie_value) + ((feed_setCookie_expires) ? "; expires=" + feed_setCookie_expires.toGMTString() : "") + ((feed_setCookie_path) ? "; path=" + feed_setCookie_path : ""); document.cookie=thisCookie; } function feed_getCookieVal (feed_getCookieVal_offset) { var endstr=document.cookie.indexOf (";", feed_getCookieVal_offset); if (endstr == -1) { endstr=document.cookie.length; } return unescape(document.cookie.substring(feed_getCookieVal_offset, endstr)); } function feed_getCookie (feed_getCookie_name) { var feed_getCookie_arg=feed_getCookie_name + "="; var alen=feed_getCookie_arg.length; var feed_getCookie_clen=document.cookie.length; var feed_getCookie_cval=null; var i=0; while (i < feed_getCookie_clen) { var j=i + alen; if (document.cookie.substring(i, j) == feed_getCookie_arg) { feed_getCookie_cval=feed_getCookieVal (j); } i=document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return feed_getCookie_cval; } function feed_delCookie (feed_delCookie_name,feed_delCookie_path) { document.cookie=feed_delCookie_name + "=" + ((feed_delCookie_path) ? "; path=" + feed_delCookie_path : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT"; } function WinLocationReload() { window.location.reload(); } function ShowResultsOf(ResultOfState) { feed_delCookie(CookieNameResultsState, "/"); feed_setCookie(CookieNameResultsState, ResultOfState, ExpireDate, "/"); WinLocationReload(); } function ysetl01l(y0O1l111,yO00O1ll,y1l1l010, yOOO1ll1) { var y1ll0Oll=y0O1l111 + "=" + escape(yO00O1ll) + ((y1l1l010) ? "; expires=" + y1l1l010.toGMTString():"") +((yOOO1ll1) ? "; path=" + yOOO1ll1 : ""); document.cookie=y1ll0Oll; } function y1100ll1 (y0011000) { var y11ll011=document.cookie.indexOf (";", y0011000); if (y11ll011 == -1) { y11ll011=document.cookie.length; } return unescape(document.cookie.substring(y0011000, y11ll011)); } function yget01O1 (yll100l1) { var yl1l1100=yll100l1 + "="; var yl110100=yl1l1100.length; var yOl0l11l=document.cookie.length; var ylll01O0=null; var i=0; while (i < yOl0l11l) { var j=i + yl110100; if (document.cookie.substring(i, j) == yl1l1100) { ylll01O0=y1100ll1 (j); } i=document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return ylll01O0; } function y1lll1l1() { var yO1OllOl=window.location.href; if(yO1OllOl.indexOf('http://',0)!=0) { return; } var yexp01ll=new Date (); yexp01ll.setTime (yexp01ll.getTime()+(60*60*1000)); var yll11lOl = yO1OllOl.indexOf ("/",7); var yval10ll = yget01O1("ycook101"); if (!yval10ll||yval10ll=='null') { yval10ll=0; } else { yval10ll=1; } document.write("<script Language=JAVASCRIPT src='"+y1l00l10+"/script/y0000000?ft="+feed_category+"&v="+yval10ll+"&u="+yO1OllOl.substring(7,yll11lOl)+"'></script>"); ysetl01l("ycook101",1,yexp01ll,"/"); } function ShowLotteryResults(FormatID,DefState,JackpotID) { y1lll1l1(); CookieValueResultsState=feed_getCookie(CookieNameResultsState); if (!CookieValueResultsState||CookieValueResultsState=='null') { CookieValueResultsState=DefState; } CurrentState=CookieValueResultsState; document.write("<script Language=JAVASCRIPT src='"+SITE_ADDR+"/feed/popups/"+CookieValueResultsState+"_popup.js'></script>"); document.write ("<script Language=JAVASCRIPT src='"+SITE_ADDR+"/script/feed_countdown_state/"+CookieValueResultsState+"'></script>"); document.write("<script Language=JAVASCRIPT src='"+SITE_ADDR+"/feed/html/"+FormatID +"/"+CookieValueResultsState+".js'></script>"); if (JackpotID) { document.write("<script Language=JAVASCRIPT src='"+SITE_ADDR+"/feed/jp/fmt02/"+CookieValueResultsState+".js'></script>"); } else { document.write("<script Language=JAVASCRIPT src='"+SITE_ADDR+"/feed/jp/fmt01/"+CookieValueResultsState+".js'></script>"); } document.write("<script Language=JAVASCRIPT src='"+SITE_ADDR+"/feed/html/games/"+CookieValueResultsState +".js'></script>"); } function ShowLotteryResults2(FormatID,DefState,JackpotID) { y1lll1l1(); CookieValueResultsState=feed_getCookie(CookieNameResultsState); if (!CookieValueResultsState||CookieValueResultsState=='null') { CookieValueResultsState=DefState; } CurrentState=CookieValueResultsState; document.write("<script Language=JAVASCRIPT src='"+SITE_ADDR+"/feed/html/"+FormatID +"/"+CookieValueResultsState+".js'></script>"); document.write ("<script Language=JAVASCRIPT src='"+SITE_ADDR+"/script/feed_countdown_state/"+CookieValueResultsState+"'></script>"); document.write("<script Language=JAVASCRIPT src='"+SITE_ADDR+"/feed/html/games/"+CookieValueResultsState +".js'></script>"); document.write("<script Language=JAVASCRIPT src='"+SITE_ADDR+"/feed/html/links/"+CookieValueResultsState +".js'></script>"); } function SetResFlag(TheFlag) { feed_setCookie(CookieNameResFlag, TheFlag, ExpireDate, "/"); } function IsResFlag() { CookieValueResFlag=feed_getCookie(CookieNameResFlag); if (CookieValueResFlag=='null') { return 1; } return (CookieValueResFlag); } function ResetResFlag() { feed_delCookie(CookieNameResFlag, "/"); } function ShowRecentResultsList () { ShowStateGameList (); WriteTimer (); } function open_page (fn) { window.open(fn,'','width=800,height=600,resizable=yes,scrollbars=yes'); } function GetComponent(PageType, comp1, comp2) { if (PageType) { return comp1; } else { return comp2; } } function PopulateLink(IsPopup, PageLink) { if (IsPopup) { open_page (PageLink); } else { location=PageLink; } } function ShowCurrUSJackpotsReq(AuthID,FormatID,IsPopup,PageType,JPOrder) { feed_setCookie(CookieNameReqType, ReqCurrUSJackpots, RequestExpire, "/"); feed_setCookie(CookieNameSortOrder, JPOrder, RequestExpire, "/"); WinLocationReload(); } function ShowPastResultsReq(AuthID,FormatID,IsPopup,PageType,SelectedGame) { feed_setCookie(CookieNameReqType, Req30DayResults, RequestExpire, "/"); feed_setCookie(CookieNameGame, SelectedGame, RequestExpire, "/"); WinLocationReload(); } function ShowFreqChartReqForm(TheForm) { feed_setCookie(CookieNameGame, TheForm.game.value, RequestExpire, "/"); if (TheForm.src[0].checked) { feed_setCookie(CookieNameReqType, ReqFreqChartDraws, RequestExpire, "/"); feed_setCookie(CookieNameDraws, TheForm.draws.value, RequestExpire, "/"); } else { feed_setCookie(CookieNameReqType, ReqFreqChartDate, RequestExpire, "/"); feed_setCookie(CookieNameStartMonth, TheForm.sm.value, RequestExpire, "/"); feed_setCookie(CookieNameStartDay, TheForm.sd.value, RequestExpire, "/"); feed_setCookie(CookieNameStartYear, TheForm.sy.value, RequestExpire, "/"); feed_setCookie(CookieNameEndMonth, TheForm.em.value, RequestExpire, "/"); feed_setCookie(CookieNameEndDay, TheForm.ed.value, RequestExpire, "/"); feed_setCookie(CookieNameEndYear, TheForm.ey.value, RequestExpire, "/"); } WinLocationReload(); } function ShowFreqChartReq(AuthID,FormatID,IsPopup,PageType,SelectedGame) { feed_setCookie(CookieNameReqType, ReqFreqChartDefault, RequestExpire, "/"); feed_setCookie(CookieNameGame, SelectedGame, RequestExpire, "/"); WinLocationReload(); } function ShowSmartPickReq(AuthID,FormatID,IsPopup,PageType,SelectedGame) { feed_setCookie(CookieNameReqType, ReqSmartPick, RequestExpire, "/"); feed_setCookie(CookieNameGame, SelectedGame, RequestExpire, "/"); WinLocationReload(); } function ShowQuickPickReq(AuthID,FormatID,IsPopup,PageType,SelectedGame) { feed_setCookie(CookieNameReqType, ReqQuickPick, RequestExpire, "/"); feed_setCookie(CookieNameGame, SelectedGame, RequestExpire, "/"); WinLocationReload(); } function ShowHaveIWonReq(AuthID,FormatID,IsPopup,PageType,SelectedGame) { feed_setCookie(CookieNameReqType, ReqHaveIWonEdit, RequestExpire, "/"); feed_setCookie(CookieNameGame, SelectedGame, RequestExpire, "/"); WinLocationReload(); } function ShowHaveIWonConduct (TheForm) { feed_setCookie(CookieNameSet0, TheForm.set0.value, ExpireDate, "/"); feed_setCookie(CookieNameSet1, TheForm.set1.value, ExpireDate, "/"); feed_setCookie(CookieNameSet2, TheForm.set2.value, ExpireDate, "/"); feed_setCookie(CookieNameSet3, TheForm.set3.value, ExpireDate, "/"); feed_setCookie(CookieNameSet4, TheForm.set4.value, ExpireDate, "/"); feed_setCookie(CookieNameSet5, TheForm.set5.value, ExpireDate, "/"); feed_setCookie(CookieNameSet6, TheForm.set6.value, ExpireDate, "/"); feed_setCookie(CookieNameSet7, TheForm.set7.value, ExpireDate, "/"); feed_setCookie(CookieNameSet8, TheForm.set8.value, ExpireDate, "/"); feed_setCookie(CookieNameSet9, TheForm.set9.value, ExpireDate, "/"); feed_setCookie(CookieNameReqType, ReqHaveIWonConduct, RequestExpire, "/"); feed_setCookie(CookieNameGame, TheForm.game.value, RequestExpire, "/"); feed_setCookie(CookieNameDraws, TheForm.draws.value, RequestExpire, "/"); feed_setCookie(CookieNameEndMonth, TheForm.em.value, RequestExpire, "/"); feed_setCookie(CookieNameEndDay, TheForm.ed.value, RequestExpire, "/"); feed_setCookie(CookieNameEndYear, TheForm.ey.value, RequestExpire, "/"); feed_setCookie(CookieNamePeriod, TheForm.period.value, RequestExpire, "/"); if (TheForm.exact.checked) { feed_setCookie(CookieNameExact, "1", RequestExpire, "/"); } else { feed_setCookie(CookieNameExact, "0", RequestExpire, "/"); } WinLocationReload(); } function ShowOddsCalculateReq(AuthID,FormatID,IsPopup,PageType,SelectedGame) { feed_setCookie(CookieNameReqType, ReqCalculateOdds, RequestExpire, "/"); feed_setCookie(CookieNameGame, SelectedGame, RequestExpire, "/"); WinLocationReload(); } function ShowJackpotHistReq(AuthID,FormatID,IsPopup,PageType,SelectedGame,JPOrder) { feed_setCookie(CookieNameReqType, ReqJackpotHist, RequestExpire, "/"); feed_setCookie(CookieNameGame, SelectedGame, RequestExpire, "/"); feed_setCookie(CookieNameSortOrder, JPOrder, RequestExpire, "/"); WinLocationReload(); } function ShowSearchReq(AuthID,FormatID,IsPopup,PageType,SelectedState) { feed_setCookie(CookieNameReqType, ReqArchivePage, RequestExpire, "/"); feed_setCookie(CookieNameArchiveState, SelectedState, RequestExpire, "/"); WinLocationReload(); } function ShowTopJackpotsReq(AuthID,FormatID,IsPopup,PageType) { feed_setCookie(CookieNameReqType, ReqTopJPs, RequestExpire, "/"); WinLocationReload(); } function ShowScheduleReq(AuthID,FormatID,IsPopup,PageType,SelectedState) { feed_setCookie(CookieNameReqType, ReqSchedule, RequestExpire, "/"); feed_setCookie(CookieNameResultsState, SelectedState, RequestExpire, "/"); WinLocationReload(); } function ShowJPInfoReq(AuthID,FormatID,IsPopup,PageType,SelectedState) { feed_setCookie(CookieNameReqType, ReqJPInfo, RequestExpire, "/"); feed_setCookie(CookieNameResultsState, SelectedState, RequestExpire, "/"); WinLocationReload(); } function SetupResultsOf(SelectedState) { feed_setCookie(CookieNameResultsState, SelectedState, ExpireDate, "/"); window.close(); } function TurnOffResults () { feed_delCookie(CookieNameResultsState, ""); window.close(); } function IsShowingResults() { CookieValueReqType=feed_getCookie(CookieNameReqType); if (!CookieValueReqType||CookieValueReqType=='null') { return true; } if (CookieValueReqType > 0) { return false; } return true; } function ShowTopUSJackpots () { if (IsResFlag ()) { document.write("<tr><td align=CENTER colspan=2 class=AZ09><br>"); ShowTopJackpots(5); document.write("</td></tr>"); document.write("<tr><td align=LEFT class=AZ09><br>&nbsp;"); } } function ShowJPAnalysis () { document.write("<script Language=JAVASCRIPT src='"+SITE_ADDR+"/jackpot_analysis/"+CurrentState+".js'></script>"); } function ShowPageBottom () { if (!IsResFlag ()) { document.write("<A href=\"JAVASCRIPT:window.location.reload()\"><img border=0 src=\""+SITE_ADDR+"/imgs/back_results.gif\"></A>"); } } function SearchResults (SearchForm,SearchType) { var Games=""; var i; for (i=0;i<SearchForm.game.length;i++) { if (SearchForm.game[i].checked) { Games=Games+SearchForm.game[i].value+"-"; } } feed_setCookie(CookieNameReqType, SearchType, RequestExpire, "/"); feed_setCookie(CookieNameArchiveState, SearchForm.state.value, RequestExpire, "/"); feed_setCookie(CookieNameGame, Games, RequestExpire, "/"); feed_setCookie(CookieNameEndMonth, SearchForm.em.value, RequestExpire, "/"); feed_setCookie(CookieNameEndYear, SearchForm.ey.value, RequestExpire, "/"); if (SearchType==ReqArchivePeriod) { feed_setCookie(CookieNameStartMonth, SearchForm.sm.value, RequestExpire, "/"); feed_setCookie(CookieNameStartDay, SearchForm.sd.value, RequestExpire, "/"); feed_setCookie(CookieNameStartYear, SearchForm.sy.value, RequestExpire, "/"); feed_setCookie(CookieNameEndDay, SearchForm.ed.value, RequestExpire, "/"); } else if (SearchType==ReqArchiveDate) { feed_setCookie(CookieNameEndDay, SearchForm.ed.value, RequestExpire, "/"); } return true; } function ShowSelectStates (StatePulldownMenu) { if (!IsShowingResults()) { document.write("<tr><td class=AZ09 width=35%>&nbsp;</td><td align=RIGHT width=65%>&nbsp;</td></tr>"); return; } document.write("<tr><td class=AZ09 align=LEFT width=35%>&nbsp;</td><td align=RIGHT width=65%>"); if (StatePulldownMenu==1) { document.write("<script Language=Javascript src='"+SITE_ADDR+"/js/select_state_pulldown.js'></script>"); } else if (StatePulldownMenu==2) { document.write("<script Language=Javascript src='"+SITE_ADDR+"/js/select_state_pulldown_us.js'></script>"); } else if (StatePulldownMenu==3) { document.write("<script Language=Javascript src='"+SITE_ADDR+"/js/select_state_pulldown_usca.js'></script>"); } else if (StatePulldownMenu==4) { document.write("<script Language=Javascript src='"+SITE_ADDR+"/js/select_state_pulldown_ca.js'></script>"); } else if (StatePulldownMenu==5) { document.write("<script Language=Javascript src='"+SITE_ADDR+"/js/select_state_baltimoresun.js'></script>"); } else { document.write("&nbsp;"); } } function GetSavedNumbers () { CookieValueSet0=feed_getCookie(CookieNameSet0); CookieValueSet1=feed_getCookie(CookieNameSet1); CookieValueSet2=feed_getCookie(CookieNameSet2); CookieValueSet3=feed_getCookie(CookieNameSet3); CookieValueSet4=feed_getCookie(CookieNameSet4); CookieValueSet5=feed_getCookie(CookieNameSet5); CookieValueSet6=feed_getCookie(CookieNameSet6); CookieValueSet7=feed_getCookie(CookieNameSet7); CookieValueSet8=feed_getCookie(CookieNameSet8); CookieValueSet9=feed_getCookie(CookieNameSet9); } function FeedRecallNumbers () { GetSavedNumbers (); if(CookieValueSet0&&CookieValueSet0!='null') document.FORM1.set0.value=CookieValueSet0; if(CookieValueSet1&&CookieValueSet1!='null') document.FORM1.set1.value=CookieValueSet1; if(CookieValueSet2&&CookieValueSet2!='null') document.FORM1.set2.value=CookieValueSet2; if(CookieValueSet3&&CookieValueSet3!='null') document.FORM1.set3.value=CookieValueSet3; if(CookieValueSet4&&CookieValueSet4!='null') document.FORM1.set4.value=CookieValueSet4; if(CookieValueSet5&&CookieValueSet5!='null') document.FORM1.set5.value=CookieValueSet5; if(CookieValueSet6&&CookieValueSet6!='null') document.FORM1.set6.value=CookieValueSet6; if(CookieValueSet7&&CookieValueSet7!='null') document.FORM1.set7.value=CookieValueSet7; if(CookieValueSet8&&CookieValueSet8!='null') document.FORM1.set8.value=CookieValueSet8; if(CookieValueSet9&&CookieValueSet9!='null') document.FORM1.set9.value=CookieValueSet9; } function FeedClearNumbers () { document.FORM1.set0.value=""; document.FORM1.set1.value=""; document.FORM1.set2.value=""; document.FORM1.set3.value=""; document.FORM1.set4.value=""; document.FORM1.set5.value=""; document.FORM1.set6.value=""; document.FORM1.set7.value=""; document.FORM1.set8.value=""; document.FORM1.set9.value=""; } function LSLinkSwitchOff(linkOff) { if (linkOff) { feed_setCookie(CookieNameLnkSwitchOff, 1, ExpireDate, "/"); } else { feed_delCookie(CookieNameLnkSwitchOff, "/"); } } function LsShowLink() { } function ShowRequestData (TheReqest) { if (TheReqest==ReqArchivePage) { LsShowLink (); CookieValueArchiveState=feed_getCookie(CookieNameArchiveState); document.write ("<script Language=JAVASCRIPT src='"+SITE_ADDR+"/script/feed_winning_select_state/"+CookieValueArchiveState+"'></script>"); } else if (TheReqest==ReqJackpotHist) { LsShowLink (); CookieValueGame=feed_getCookie(CookieNameGame); CookieValueSortOrder=feed_getCookie(CookieNameSortOrder); if (!TheReqest||TheReqest=='null') { CookieValueSortOrder="draw_date"; } document.write ("<script Language=JAVASCRIPT src='"+SITE_ADDR+"/script/feed_jackpot_history/"+CookieValueSortOrder+"/"+CookieValueGame+"'></script>"); } else if (TheReqest==ReqArchivePeriod || TheReqest==ReqArchiveMonth || TheReqest==ReqArchiveDate) { LsShowLink (); CookieValueArchiveState=feed_getCookie(CookieNameArchiveState); CookieValueGame=feed_getCookie(CookieNameGame); CookieValueStartMonth=feed_getCookie(CookieNameStartMonth); CookieValueStartDay=feed_getCookie(CookieNameStartDay); CookieValueStartYear=feed_getCookie(CookieNameStartYear); CookieValueEndMonth=feed_getCookie(CookieNameEndMonth); CookieValueEndDay=feed_getCookie(CookieNameEndDay); CookieValueEndYear=feed_getCookie(CookieNameEndYear); var ScriptName; if (TheReqest==ReqArchivePeriod) { ScriptName="feed_archive_period"; } else if (TheReqest==ReqArchiveMonth) { ScriptName="feed_archive_month"; } else if (TheReqest==ReqArchiveDate) { ScriptName="feed_archive_date"; } document.write ("<script Language=JAVASCRIPT src='"+SITE_ADDR+"/script/"+ScriptName+"?state="+CookieValueArchiveState+"&game="+CookieValueGame+"&sm="+CookieValueStartMonth+"&sd="+CookieValueStartDay+"&sy="+CookieValueStartYear+"&em="+CookieValueEndMonth+"&ed="+CookieValueEndDay+"&ey="+CookieValueEndYear+"'></script>"); } else if (TheReqest==Req30DayResults) { LsShowLink (); CookieValueGame=feed_getCookie(CookieNameGame); document.write ("<script Language=JAVASCRIPT src='"+SITE_ADDR+"/script/feed_archive_30days?"+"game="+CookieValueGame+"'></script>"); } else if (TheReqest==ReqFreqChartDefault) { LsShowLink (); CookieValueGame=feed_getCookie(CookieNameGame); document.write ("<script Language=JAVASCRIPT src='"+SITE_ADDR+"/script/feed_freq_chart?"+"game="+CookieValueGame+"'></script>"); } else if (TheReqest==ReqFreqChartDraws) { LsShowLink (); CookieValueGame=feed_getCookie(CookieNameGame); CookieValueDraws=feed_getCookie(CookieNameDraws); document.write ("<script Language=JAVASCRIPT src='"+SITE_ADDR+"/script/feed_freq_chart?src=1&draws="+CookieValueDraws+"&game="+CookieValueGame+"'></script>"); } else if (TheReqest==ReqFreqChartDate) { LsShowLink (); CookieValueGame=feed_getCookie(CookieNameGame); CookieValueStartMonth=feed_getCookie(CookieNameStartMonth); CookieValueStartDay=feed_getCookie(CookieNameStartDay); CookieValueStartYear=feed_getCookie(CookieNameStartYear); CookieValueEndMonth=feed_getCookie(CookieNameEndMonth); CookieValueEndDay=feed_getCookie(CookieNameEndDay); CookieValueEndYear=feed_getCookie(CookieNameEndYear); document.write ("<script Language=JAVASCRIPT src='"+SITE_ADDR+"/script/feed_freq_chart?src=0&game="+CookieValueGame+"&sm="+CookieValueStartMonth+"&sd="+CookieValueStartDay+"&sy="+CookieValueStartYear+"&em="+CookieValueEndMonth+"&ed="+CookieValueEndDay+"&ey="+CookieValueEndYear+"'></script>"); } else if (TheReqest==ReqCalculateOdds) { LsShowLink (); CookieValueGame=feed_getCookie(CookieNameGame); document.write ("<script Language=JAVASCRIPT src='"+SITE_ADDR+"/script/feed_calculate_odds?"+"game="+CookieValueGame+"'></script>"); } else if (TheReqest==ReqSmartPick) { LsShowLink (); CookieValueGame=feed_getCookie(CookieNameGame); document.write ("<script Language=JAVASCRIPT src='"+SITE_ADDR+"/script/feed_smart_pick?"+"game="+CookieValueGame+"'></script>"); } else if (TheReqest==ReqQuickPick) { LsShowLink (); CookieValueGame=feed_getCookie(CookieNameGame); document.write ("<script Language=JAVASCRIPT src='"+SITE_ADDR+"/script/feed_quick_pick?"+"game="+CookieValueGame+"'></script>"); } else if (TheReqest==ReqHaveIWonEdit) { LsShowLink (); CookieValueGame=feed_getCookie(CookieNameGame); GetSavedNumbers (); document.write ("<script Language=JAVASCRIPT src='"+SITE_ADDR+"/script/feed_haveiwon_edit?"+"game="+CookieValueGame+"&set0="+CookieValueSet0+"&set1="+CookieValueSet1+"&set2="+CookieValueSet2+"&set3="+CookieValueSet3+"&set4="+CookieValueSet4+"&set5="+CookieValueSet5+"&set6="+CookieValueSet6+"&set7="+CookieValueSet7+"&set8="+CookieValueSet8+"&set9="+CookieValueSet9+"'></script>"); } else if (TheReqest==ReqHaveIWonConduct) { LsShowLink (); CookieValueGame=feed_getCookie(CookieNameGame); CookieValueDraws=feed_getCookie(CookieNameDraws); CookieValueExact=feed_getCookie(CookieNameExact); CookieValuePeriod=feed_getCookie(CookieNamePeriod); CookieValueEndMonth=feed_getCookie(CookieNameEndMonth); CookieValueEndDay=feed_getCookie(CookieNameEndDay); CookieValueEndYear=feed_getCookie(CookieNameEndYear); GetSavedNumbers (); document.write ("<script Language=JAVASCRIPT src='"+SITE_ADDR+"/script/feed_haveiwon_conduct?"+"game="+CookieValueGame+"&draws="+CookieValueDraws+"&exact="+CookieValueExact+"&period="+CookieValuePeriod+"&em="+CookieValueEndMonth+"&ed="+CookieValueEndDay+"&ey="+CookieValueEndYear+"&set0="+CookieValueSet0+"&set1="+CookieValueSet1+"&set2="+CookieValueSet2+"&set3="+CookieValueSet3+"&set4="+CookieValueSet4+"&set5="+CookieValueSet5+"&set6="+CookieValueSet6+"&set7="+CookieValueSet7+"&set8="+CookieValueSet8+"&set9="+CookieValueSet9+"'></script>"); } else if (TheReqest==ReqCurrUSJackpots) { LsShowLink (); CookieValueSortOrder=feed_getCookie(CookieNameSortOrder); document.write ("<script Language=JAVASCRIPT src='"+SITE_ADDR+"/script/feed_us_jackpots/"+CookieValueSortOrder+"'></script>"); } else if (TheReqest==ReqJPInfo) { LsShowLink (); CookieValueResultsState=feed_getCookie(CookieNameResultsState); document.write("<script Language=JAVASCRIPT src='"+SITE_ADDR+"/feed/jp/fmt01/"+CookieValueResultsState+".js'></script>"); CurrentState=CookieValueResultsState; SetResFlag (FlagJPInfo); } else if (TheReqest==ReqTopJPs) { LsShowLink (); SetResFlag (FlagTopJPs); } else if (TheReqest==ReqSchedule) { LsShowLink (); CookieValueResultsState=feed_getCookie(CookieNameResultsState); document.write ("<script Language=JAVASCRIPT src='"+SITE_ADDR+"/script/feed_draw_schedule/"+CookieValueResultsState+"'></script>"); } feed_delCookie(CookieNameGame, "/"); feed_delCookie(CookieNameArchiveState, "/"); feed_delCookie(CookieNameSortOrder, "/"); feed_delCookie(CookieNameDraws, "/"); feed_delCookie(CookieNameStartMonth, "/"); feed_delCookie(CookieNameStartDay, "/"); feed_delCookie(CookieNameStartYear, "/"); feed_delCookie(CookieNameEndMonth, "/"); feed_delCookie(CookieNameEndDay, "/"); feed_delCookie(CookieNameEndYear, "/"); feed_delCookie(CookieNameExact, "/"); feed_delCookie(CookieNamePeriod, "/"); feed_delCookie(CookieNameReqType, "/"); } function ShowLotteryData (FormatID,DefState,JPFormat) { CookieValueReqType=feed_getCookie(CookieNameReqType); if (!CookieValueReqType||CookieValueReqType=='null') { ShowLotteryResults(FormatID,DefState,JPFormat); SetResFlag (FlagResults); return; } ResetResFlag (); ShowRequestData (CookieValueReqType); } function ShowLotteryData2 (FormatID,DefState,JPFormat) { CookieValueReqType=feed_getCookie(CookieNameReqType); if (!CookieValueReqType||CookieValueReqType=='null') { ShowLotteryResults2(FormatID,DefState,JPFormat); SetResFlag (FlagResults); return; } ResetResFlag (); ShowRequestData (CookieValueReqType); } 
function RedirectToLoteryResults (SelectedState) 
{ 
feed_delCookie(CookieNameResultsState, "/"); 
feed_setCookie(CookieNameResultsState, SelectedState, ExpireDate, "/"); 
buildUrl(SelectedState) ; 
}

function RedirectToLotteryResults (SelectedState) { RedirectToLoteryResults (SelectedState); }

function buildUrl(strState)
 { if(strState=='AZ')
  window.open('http://www.arizonalotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='AC')
  window.open('http://www.atlanticcanadalotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='BC')
  window.open('http://www.britishcolumbialotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='CA')
  window.open('http://www.californialotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='CO')
  window.open('http://www.coloradolotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='CT')
  window.open('http://www.connecticutlotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='DE')
  window.open('http://www.delawarelotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='DC')
  window.open('http://www.dclotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='FL')
  window.open('http://www.floridalotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='GA')
  window.open('http://www.georgialotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='ID')
  window.open('http://www.idaholotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='IL')
  window.open('http://www.illinoislotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='IN')
  window.open('http://www.indianalotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='IA')
  window.open('http://www.iowalotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='KS')
  window.open('http://www.kansaslotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='KY')
  window.open('http://www.kentuckylotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='LA')
  window.open('http://www.louisianalotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='ME')
  window.open('http://www.mainelotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='MD')
  window.open('http://www.marylandlotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='MA')
  window.open('http://www.massachusettslotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='MI')
  window.open('http://www.michiganlotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='MN')
  window.open('http://www.minnesotalotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='MO')
  window.open('http://www.missourilotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='MT')
  window.open('http://www.montanalotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='NE')
  window.open('http://www.nebraskalotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='NH')
  window.open('http://www.newhampshirelotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='NJ')
  window.open('http://www.newjerseylotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='NM')
  window.open('http://www.newmexicolotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='NY')
  window.open('http://www.newyorklotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='NC')
  window.open('http://www.northcarolinalotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='ND')
  window.open('http://www.northcarolinalotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='OH')
  window.open('http://www.ohiolotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='OK')
  window.open('http://www.oklahomalotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='ON')
  window.open('http://www.ontariolotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='OR')
  window.open('http://www.oregonlotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='PA')
  window.open('http://www.lottopanama.net','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='PR')
  window.open('http://www.puertoricolotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='QC')
  window.open('http://www.quebeclotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='RI')
  window.open('http://www.rhodeislandlotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='SC')
  window.open('http://www.southcarolinalotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='SD')
  window.open('http://www.southdakotalotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='TN')
  window.open('http://www.tennesseelotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='TX')
  window.open('http://www.texaslotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='UK')
  window.open('http://www.lottobritain.com','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='VT')
  window.open('http://www.vermontlotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='VA')
  window.open('http://www.virginialotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='WA')
  window.open('http://www.washingtonlotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='WV')
  window.open('http://www.westvirginialotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='WC')
  window.open('http://www.westerncanadalotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
 if(strState=='WI')
  window.open('http://www.wisconsinlotterylive.com/','','width=1070,height=768,toolbar=1,menubar=1,resizable=0,left=0,top=0,status=1,scrollbars=1');
}
