Source: site.view [edit]
Function name: gfLottery
Arguments: coins
Description:
Page type: html
Render function:  
Module: sandbox

Page source:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>GeneticFinance.com</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="WubHub_DoIt?cmdline=gfCSS" rel="stylesheet" type="text/css" media="screen" />

<script language="javascript">
<!--
function ClearForm() {
  document.testform.email.value= "";
}
//-->
</script>

</head>
<body oncontextmenu="return false">
<div id="bg3">
  <div id="bg4">
    <div id="bg5">
      <div id="page">
        <div id="content">
          <div class="post">
            <div class="title">
              <h2><a href="#">Free Lottery Tickets!</a></h2>
              
            </div>
            <div class="entry">
              <h3 align="center">You have 
<webl>if (ToInt(coins) > 0) then ToInt(coins) div 1000 else 0 end
</webl>
                 reward points to spend. </h3>
              </p>
              <p align="center">Use reward points to buy tickets for the New York Lottery: 1 ticket = 150 reward points</p>
<p align="center">Current NY Lotto Jackpot = 

<webl>
   var P = GetURL("http://www.nylottery.org/index.php");
   var Amount = Pat(P, `\$(\d+) million`);
   if Size(Amount) >= 0 then
      Amount[0][0];
   else
      "?? million";
   end;
</webl>
</p>
              <p align="center"><img src="http://www.acc-tv.com/images/wjla/blogs/money_money.jpg" /></p>
              <div align="center">

<webl>
  var c = ToInt(coins) div 1000;
  if (c >= 150) then
     "Enter picks (each pick 1-59): " + 
     `<form action="/webl/WubHub_DoIt" method=post name="testform">
       <input name=cmdline value="gfEnterLottery(coins,email,arg1,arg2,arg3,arg4,arg5,arg6)" type="hidden" />
       <input name="coins" value="%coins%" type="hidden"/>
       <input name="arg1" value="0" size="2" title="1"/>
       <input name="arg2" value="0" size="2" title="2"/>
       <input name="arg3" value="0" size="2" title="3"/>
       <input name="arg4" value="0" size="2" title="4"/>
       <input name="arg5" value="0" size="2" title="5"/>
       <input name="arg6" value="0" size="2" title="6"/><br>
       <input name="email" value="Email to notify you if you win" size="39"  onfocus="ClearForm();"><br><br>
         <input type="submit" value="Enter Lottery"><br>
        <font size=3>costs 150 reward points </font>
       </form>`

  else
     "You have not accumulated enough Reward Points yet for this prize"
  end;
</webl>

                  <p align="center"><a href="WubHub_DoIt?cmdline=gfRewards(%coins%,none)">Earn more Reward Points</a><br>
                  </p>

              </div>
            </div>
          </div>
        </div>
        <div style="clear: both; height: 40px;">&nbsp;</div>
      </div>
    </div>
  </div>
</div>
<div id="footer">
  <p>(c) 2009  geneticfinance.com</p>
</div>
</body>
</html>