today = new Date();

var month = "02";
if(month.charAt(0) == "0") 
    month = parseInt(month.substring(1, month.length));
else 
    month = parseInt(month);
month--;

today.setMonth(month);
today.setDate(09);
today.setFullYear(2010);

start = new Date(2007, 7 - 1, 31, 00, 00, 0);

if (1970 == 1970) 
    end = new Date(3000, 0, 0, 0, 0);  // No expiration, set end year to 3000
else 
    end = new Date(1970, 1 - 1, 1, 00, 00, 0);

var smsg = "";

if (start.getTime() > today.getTime()) {
    smsg = smsg + '<table border="0" cellpadding="2" cellspacing="2">';
    smsg = smsg + '<tr><td>&nbsp;&nbsp;&nbsp;</td>';
    smsg = smsg + '	<td><p class="display">Sorry, this page is not yet active.	</p></td>';
    smsg = smsg + '</tr>';
    smsg = smsg + '</table>';
    document.write (smsg);
} else if (end.getTime() < today.getTime()) {
    smsg = smsg + '<table border="0" cellpadding="2" cellspacing="2">';
    smsg = smsg + '<tr><td>&nbsp;&nbsp;&nbsp;</td>';
    smsg = smsg + '	<td><p class="display">Sorry, this page has expired	</p></td>';
    smsg = smsg + '</tr>';
    smsg = smsg + '</table>';
    document.write (smsg);
} else {
var shuzaicode = "";







shuzaicode = shuzaicode + '<form action="http://shuzai.surfingthemag.com/" name="shz" method="post">';
shuzaicode = shuzaicode + '<input type="hidden" name="shuzai_id" value="30">';
shuzaicode = shuzaicode + '<input type="hidden" name="page_number" value="1">';
shuzaicode = shuzaicode + '<input type="hidden" name="row_id" value="">';
shuzaicode = shuzaicode + '<input type="hidden" name="env_report" value="REMOTE_ADDR">';
shuzaicode = shuzaicode + '<input type="hidden" name="server_name" value="shuzaioutput.sourceinterlinkmedia.com">';
shuzaicode = shuzaicode + '<input type="hidden" name="linkback" value="http://www.surfingmagazine.com/surfing-magazine-features/enter-to-win/win-free-surfboard-every-month/index.html">';
shuzaicode = shuzaicode + '<input type="hidden" name="next_page" value="http://www.surfingmagazine.com/surfing-magazine-features/enter-to-win/win-free-surfboard-every-month/index.html">';

shuzaicode = shuzaicode + '<table border="0" cellpadding="2" cellspacing="2">';
shuzaicode = shuzaicode + '<tr><td align="right"><span class="required">*&nbsp;</span><span class="display">First Name:</span></td>';
shuzaicode = shuzaicode + '	<td><input type="text" size="20" name="data_220_1" value="';
shuzaicode = shuzaicode + "";
shuzaicode = shuzaicode + '" maxlength="40"></td>';
shuzaicode = shuzaicode + '</tr>';
shuzaicode = shuzaicode + '<tr><td align="right"><span class="required">*&nbsp;</span><span class="display">Last Name:</span></td>';
shuzaicode = shuzaicode + '	<td><input type="text" size="20" name="data_220_2" value="';
shuzaicode = shuzaicode + "";
shuzaicode = shuzaicode + '" maxlength="40"></td>';
shuzaicode = shuzaicode + '</tr>';
shuzaicode = shuzaicode + '<tr><td align="right"><span class="display">Middle Initial:</span></td>';
shuzaicode = shuzaicode + '	<td><input type="text" size="1" name="data_220_3" value="';
shuzaicode = shuzaicode + "";
shuzaicode = shuzaicode + '" maxlength="1"></td>';
shuzaicode = shuzaicode + '</tr>';
shuzaicode = shuzaicode + '<tr><td align="right"><span class="required">*&nbsp;</span><span class="display">Age  </span></td>';
shuzaicode = shuzaicode + '	<td><input type="text" size="5" name="data_221" value="';
shuzaicode = shuzaicode + "";
shuzaicode = shuzaicode + '" maxlength="3"></td>';
shuzaicode = shuzaicode + '</tr>';
shuzaicode = shuzaicode + '<tr><td align="right"><span class="display">E-mail  </span></td>';
shuzaicode = shuzaicode + '	<td><input type="text" size="20" name="data_222" value="';
shuzaicode = shuzaicode + "";
shuzaicode = shuzaicode + '" maxlength="40"></td>';
shuzaicode = shuzaicode + '</tr>';
shuzaicode = shuzaicode + '<tr><td align="right"><span class="required">*&nbsp;</span><span class="display">State  </span></td>';
shuzaicode = shuzaicode + '	<td><select name="data_223">';
shuzaicode = shuzaicode + '    <option value=""></option><option value="AK" >AK</option><option value="AL" >AL</option><option value="AR" >AR</option>';
shuzaicode = shuzaicode + '    <option value="AZ" >AZ</option><option value="CA" >CA</option><option value="CO" >CO</option>';
shuzaicode = shuzaicode + '    <option value="CT" >CT</option><option value="DC" >DC</option><option value="DE" >DE</option>';
shuzaicode = shuzaicode + '    <option value="FL" >FL</option><option value="GA" >GA</option><option value="HI" >HI</option>';
shuzaicode = shuzaicode + '    <option value="IA" >IA</option><option value="ID" >ID</option><option value="IL" >IL</option>';
shuzaicode = shuzaicode + '    <option value="IN" >IN</option><option value="KS" >KS</option><option value="KY" >KY</option>';
shuzaicode = shuzaicode + '    <option value="LA" >LA</option><option value="MA" >MA</option><option value="MD" >MD</option>';
shuzaicode = shuzaicode + '    <option value="ME" >ME</option><option value="MI" >MI</option><option value="MN" >MN</option>';
shuzaicode = shuzaicode + '    <option value="MO" >MO</option><option value="MS" >MS</option><option value="MT" >MT</option>';
shuzaicode = shuzaicode + '    <option value="NC" >NC</option><option value="ND" >ND</option><option value="NE" >NE</option>';
shuzaicode = shuzaicode + '    <option value="NH" >NH</option><option value="NJ" >NJ</option><option value="NM" >NM</option>';
shuzaicode = shuzaicode + '    <option value="NV" >NV</option><option value="NY" >NY</option><option value="OH" >OH</option>';
shuzaicode = shuzaicode + '    <option value="OK" >OK</option><option value="OR" >OR</option><option value="PA" >PA</option>';
shuzaicode = shuzaicode + '    <option value="PR" >PR</option><option value="RI" >RI</option><option value="SC" >SC</option>';
shuzaicode = shuzaicode + '    <option value="SD" >SD</option><option value="TN">TN</option><option value="TX" >TX</option>';
shuzaicode = shuzaicode + '    <option value="UT" >UT</option><option value="VA" >VA</option><option value="VI" >VI</option>';
shuzaicode = shuzaicode + '    <option value="VT" >VT</option><option value="WA" >WA</option><option value="WI" >WI</option>';
shuzaicode = shuzaicode + '    <option value="WV" >WV</option><option value="WY" >WY</option>';
shuzaicode = shuzaicode + '    </select>';
shuzaicode = shuzaicode + '	</td>';
shuzaicode = shuzaicode + '</tr>';
shuzaicode = shuzaicode + '<tr><td align="right"><span class="required">*&nbsp;</span><span class="display">Zip  </span></td>';
shuzaicode = shuzaicode + '	<td><input type="text" size="5" name="data_224" value="';
shuzaicode = shuzaicode + "";
shuzaicode = shuzaicode + '" maxlength="5"></td>';
shuzaicode = shuzaicode + '</tr>';
shuzaicode = shuzaicode + '<tr><td align="right"><span class="required">*&nbsp;</span><span class="display">Mobile Number</span></td>';
shuzaicode = shuzaicode + '	<td><input type="text" size="32" name="data_228" value="';
shuzaicode = shuzaicode + "";
shuzaicode = shuzaicode + '" maxlength="32"></td>';
shuzaicode = shuzaicode + '</tr>';shuzaicode = shuzaicode + '<tr><td align="right" valign="top"><span class="required">*&nbsp;</span><span class="display">* Can you receive text messages on your mobile device?  </span></td>';
shuzaicode = shuzaicode + '	<td valign="top">';
shuzaicode = shuzaicode + '		<table border="0" cellpadding="0" cellspacing="0">';
		
		
shuzaicode = shuzaicode + '		<tr><td><input type="checkbox" name="data_225" value="option_id_279"  ></td>';
shuzaicode = shuzaicode + '			<td>YES  </td>';
shuzaicode = shuzaicode + '		</tr>';
		
shuzaicode = shuzaicode + '		<tr><td><input type="checkbox" name="data_225" value="option_id_280"  ></td>';
shuzaicode = shuzaicode + '			<td>NO  </td>';
shuzaicode = shuzaicode + '		</tr>';
		

shuzaicode = shuzaicode + '		</table>';
shuzaicode = shuzaicode + '	</td>';
shuzaicode = shuzaicode + '</tr>';
shuzaicode = shuzaicode + 'By entering, you are agreeing to recieve email and mobile phone updates from SURFING Magazine and its partners.';
shuzaicode = shuzaicode + '<tr><td align="right" valign="top"><span class="required">*&nbsp;</span><span class="display">I have read and agree to the terms and conditions below  </span></td>';
shuzaicode = shuzaicode + '     <td valign="top">';
shuzaicode = shuzaicode + '             <table border="0" cellpadding="0" cellspacing="0">';
                
shuzaicode = shuzaicode + '             <tr>';
shuzaicode = shuzaicode + '                     <td><input type="radio" name="data_230" value="option_id_281"  > </td>';
shuzaicode = shuzaicode + '                     <td>YES</td>';
shuzaicode = shuzaicode + '             </tr>';
                
shuzaicode = shuzaicode + '             <tr>';
shuzaicode = shuzaicode + '                     <td><input type="radio" name="data_230" value="option_id_282"  > </td>';
shuzaicode = shuzaicode + '                     <td>NO</td>';
shuzaicode = shuzaicode + '             </tr>';
                
shuzaicode = shuzaicode + '             </table>';
shuzaicode = shuzaicode + '     </td>';
shuzaicode = shuzaicode + '</tr>';
shuzaicode = shuzaicode + '<tr><td align="right" valign="top"><span class="required">*&nbsp;</span><span class="display">Which Creatures of Leisure team rider board do you want?  Check out www.creatures.com.au and let us know.  Maybe we&#39;ll give it away!  </span></td>';
shuzaicode = shuzaicode + '	<td><textarea name="data_231" rows="5" cols="32" maxlength="1024">';
shuzaicode = shuzaicode + "";
shuzaicode = shuzaicode + '</textarea></td>';
shuzaicode = shuzaicode + '</tr>';

    shuzaicode = shuzaicode + '<tr><td><img src="http://images.thepirtgroup.com/all/spacer.gif" width="100" height="1" border="0"></td><td>&nbsp;</td></tr>';
    shuzaicode = shuzaicode + '<tr><td colspan="2" align="center"><input type="submit" value="Submit"></td></tr>';
    shuzaicode = shuzaicode + '</table>';
    shuzaicode = shuzaicode + '</form>';











    document.write (shuzaicode);
}	
