// <!-- -------------------------------- -->
//    To be included in main HTML, e.g. in main layout table cell
// <script type='text/javascript' src='nb_tnmt1.js'></script>
// <script type='text/javascript'>
// var title1="Epson Under 18-3",
//     title2="ITFNZ Taekwon-Do Tournament",
//     date1="Sunday November 25, 2007",
//     location1="Tauranga Girls College, Cameron Rd, Tauranga",
//     final_entry_date="12th November 07";
// </script>
// <script type='text/javascript' src='nb_tnmt_u18_cont1.js'></script>
// <!-- -------------------------------- -->

//  only need this if non-international tnmts

if (entryfee_descr=="") entryfee_descr=str_event_costs(); 
if (goto_url=="") goto_url="http://www.itfnz.org.nz/events/tournaments ";

document.write("<form action='http://monstar.co.nz/f2mu18.php' name='form1' method='post' onSubmit='return checkform2(this)'> ");
document.write(" <input name='_idname' type='hidden' value='NB'  > ");
document.write(" <input name='_from' type='hidden' value='TournReg&#064Website'  > ");
document.write(" <input name='_subject' type='hidden' value='Entry " + title1 + "'  > ");
document.write(" <input name='_goto'  type='hidden' value='" + goto_url + "' >");
document.write(" <input name='_gotomsg'  type='hidden' value='Thank you for your entry. <br>Your name should appear in the entrants list within three days.<br>' >");
document.write(" <input name='_gotodly'  type='hidden' value='2' >");
document.write(" <input name='DataStart'  type='hidden' value='start' >");
document.write(" <input name='Title'  type='hidden' value='" + title1 + "' >");
document.write(" <input name='totals'  type='hidden' >");
document.write("");
document.write("<table width='100%' border='0' cellpadding='0' cellspacing='0' bgcolor='#3399CC'>");
document.write(" <tr>");
document.write("  <td><table width='100%' border='0'  cellpadding='5' cellspacing='1'>");
document.write(" <tr>");
document.write("   <td align='center' class='leftnav'><strong><FONT face='Arial' size='6'>");
document.write(       title1 + "<br>");
document.write(       title2 + "<br>");
document.write("      </font></strong><font face='Arial' size='5'>");
document.write(       date1 + "<br>");
document.write(       location1 + "<br>");
document.write("      </font><font face='Arial'>");
document.write(      start_time + "<br>");
document.write("      </font>");
document.write("      </font>");
document.write(" <tr bgcolor='#efefef'>");
document.write("   <td>");
document.write("   <table style='width: 100%;' border='0'>");
document.write("    <tbody>");
document.write("      <tr>");
document.write("       <td colspan=5 align=center>");
document.write("        <font face='Arial'><b>Entry Form - please <u>measure</u> height and weight before starting to fill this in.</b><br></font>");

document.write("      <tr>");
document.write("        <td align='right'>Last Name: ");
document.write("        <td> <input name='lastname' size='20'  type='text'>&nbsp;");
document.write("        <td colspan=3> Preferred First Name: ");
document.write("        <input name='firstname' size='20' type='text'>&nbsp;&nbsp;");
document.write("        <td style='vertical-align: top;'> ");
document.write("        ");
document.write("");
document.write("      <tr>");
document.write("        <td align='right'>Age:&nbsp;");
document.write("        <td  colspan=2> <input name='age' size='2' type='text'> &nbsp; &nbsp; ");
document.write("        Date of Birth: ");
document.write("         <input name='DateOfBirth' size='9' type='text'>&nbsp;");

document.write("        <td colspan=3>");
document.write("        <select name='rank' size='1'>");
document.write("        <option value='0'>-Rank- </option>");
document.write("        <option value='10'>10th Gup </option>");
document.write("        <option value='9'>9th Gup </option>");
document.write("        <option value='8'>8th Gup </option>");
document.write("        <option value='7'>7th Gup </option>");
document.write("        <option value='6'>6th Gup </option>");
document.write("        <option value='5'>5th Gup </option>");
document.write("        <option value='4'>4th Gup </option>");
document.write("        <option value='3'>3rd Gup </option>");
document.write("        <option value='2'>2nd Gup </option>");
document.write("        <option value='1'>1st Gup </option>");
document.write("        <option value='-1'>1st Dan </option>");
document.write("        <option value='-2'>2nd Dan </option>");
document.write("        <option value='-3'>3rd Dan </option>");
document.write("        <option value='-4'>4th Dan </option>");
document.write("        <option value='-5'>5th Dan </option>");
document.write("        </select>");
document.write("&nbsp;");
document.write("        <span id='ranktype'> </span>");
document.write("        Male-<input value='M' name='mf'  checked='' type='radio'>");
document.write("        Female-<input value='F' name='mf' type='radio'>");

document.write("     <tr>");
document.write("        <td align='right'>Phone#");
document.write("        ");
document.write("        <td> <input name='phone' size='15' type='text'> ");
document.write("        <td style='text-align: right;'>email: ");
document.write("        <td> <input name='email' size='30' type='text'> ");
document.write("        <td><br>");
document.write("        ");
document.write("      <tr>");
document.write("        <td align='right'>#+Street&nbsp;");
document.write("        <td> <input name='street' size='20' type='text'> &nbsp; ");
document.write("        <td style='text-align: right;'>Suburb: ");
document.write("        <td colspan=2> <input name='suburb' size='15' type='text'> &nbsp; ");
document.write("  Town:  <input name='town' size='15' type='text'> ");
document.write("      </tr>");
document.write("      <tr>");
document.write("        <td align='right'>Weight: <br>");
document.write("        ");
document.write("        <td> <input name='weight' size='5' type='text'> kg<font");
document.write(" face='Arial' size='1'>");
document.write("( weigh yourself ! )</font> ");
document.write("        <td style='text-align: right;'> Height: ");
document.write("        ");
document.write("        <td> <input name='height' size='5' type='text'>");
document.write("cm <font face='Arial' size='1'>(please");
document.write("measure yourself) </font> ");
document.write("        <td>");

if (countryorg)
{
document.write("      <tr>");
document.write("        <td align='right'>Country:&nbsp; ");
document.write("        <td><input name='country' size='20' type='text'>");
document.write("        <td style='text-align: right;'>Organisation:");
document.write("        <td><input name='organisation' size='20'  type='text'>");
document.write("         or <input type='checkbox' name='ITFNZ' value='1'> ITFNZ "  );
}
else
{
document.write("      <tr>");
document.write("        <td align='right'>Club:&nbsp; ");
document.write("        <td><input name='club' size='20' type='text'>");
document.write("        <td style='text-align: right;'>Instructor:");
document.write("        <td><input name='instructor' size='20'  type='text'>");
document.write("        <td>");
}

if (selectagediv)
{
document.write("      <tr><td colspan=5><hr>");
document.write("      <tr>");
document.write("        <td colspan=5>");
document.write("         <center>Select &nbsp; &nbsp; Under18 <input type='radio' name='ageDiv' value='U18'> &nbsp; &nbsp; &nbsp; &nbsp; ");
document.write("        OR Senior <input type='radio' name='ageDiv' value='Senior'>  &nbsp; &nbsp; &nbsp; &nbsp; ");
document.write("        OR Veteran <input type='radio' name='ageDiv' value='Veteran'> </center><br>");
document.write("        ( for any points to count in the U18 division, must be under 18 for the <b>LAST</b> tournament of the series.<br>");
document.write("        &nbsp; &nbsp; If 15 or over at start, can opt to compete in the Senior division instead for <b>all</b> of the year series.<br>");
document.write("        &nbsp; &nbsp; Veterans 35 or over, all events if numbers allow.)");
document.write("        </td>");
}

document.write("      <tr><td colspan=5><hr>");
document.write("      <tr>");
document.write("        <td colspan=5 align=center>Select events to enter: &nbsp; &nbsp; &nbsp; &nbsp;");
if (familydiscount)
{
document.write("        More than 1 family member entering: <input type='checkbox' name='family' value='1'>");
}

document.write("      <tr>");
document.write("        <td colspan=2 align=right>Patterns: &nbsp; &nbsp;");
document.write("        <input type='checkbox' name='patterns' value='1'> ");
document.write("        Sparring:&nbsp; <input type='checkbox' name='sparring' value='1'>");

if (prearranged)
{
    document.write("        <td colspan=2> &nbsp; Pre-arranged Sparring: &nbsp; <input type='checkbox' name='prearranged' value='1'> (one pair per country)");
}
else
if (begnr_avg_adv)
{
    document.write("        <td colspan=2>( Beginner <input value='3' name='exp' type='radio'> ");
    document.write("        or Average <input value='2' name='exp' type='radio'>");
    document.write("        or Experienced <input value='1' name='exp' type='radio'> )");
}

if (special)
{
    document.write("      <tr>");
    document.write("        <td colspan=2 align=right> Special technique: <input type='checkbox' name='special' value='1'> ");
    document.write("        <td colspan=2> &nbsp; High, turning, overhead kicks ");
    if (spclBBonly) document.write(" (Black Belts only)");
    document.write("        <td>");
}

if (power_descr)
{     document.write("      <tr><td><td><td colspan=4>" + power_descr);
}

if (power)
{
    document.write("      <tr>");
    document.write("        <td colspan=2 align=right> Power technique: <input type='checkbox' name='power' value='1'> ");
    document.write("        <td colspan=2> &nbsp; Knifehand, side kick, turning kick ");
    if (pwrBBonly) document.write(" (Black Belts only)");
    document.write("        <td>");
}

if (team_descr)
{
    document.write("      <tr>");
    document.write("        <td colspan=2 align=right>Team Patterns: &nbsp; &nbsp; <input type='checkbox' name='teampatterns' value='1'> ");
    document.write("        <td colspan=2 > &nbsp; Team Sparring:&nbsp; <input type='checkbox' name='teamsparring' value='1'>");
    document.write("      <tr>");
    document.write("        <td colspan=4 align=center>" + team_descr );
}

document.write("    </tbody>");
document.write("  </table>");
if (sparring_descr1)
    { document.write("  <font face='Arial'>" + sparring_descr1 + "</font><br> "); }
if (sparring_descr1)
    { document.write("  <font size='2'>" + sparring_descr2 + "<br></font>"); }
document.write("  <br> ");
document.write("  <center>" + entryfee_descr + " <br>");
//document.write("  Entry AND fee must be <b>received by 29th Feb</b>, else a $20 late fee applies, to a total of $85<br>");
document.write("  Final entry date <b>" + final_entry_date + "</b> to make it into the draw, <b>with fees</b>.");
document.write("  <br>");
document.write("  <input value='click to Check the Form' onClick='checkform(document.form1,1)'  type='button'> <br>");
document.write("  </center><br>");
document.write(" <div id=dbgdiv></div> <div id=totalsdiv></div> ");
document.write("");
document.write("  <br> ");
document.write(" Notes: <input name='notes1' size='80' type='text'>  ");
if (organiser)
{
document.write("<br><br>" +  organiser  );
}
document.write("  <hr> ");
document.write("    <br>");
if (u18)
  { document.write("  NOTA BENE: Do not send the form unless all details have been checked.<br>"); }
document.write("  Competitors with understated height or weight could be disqualified before the start of their bout.<br>");
if (u18)
  { document.write("  You must have your Instructor's permission to enter any tournament.<br>"); }
document.write("     <br>");
document.write(" Disclaimer<br>");
document.write("  I will not hold the ITFNZ or the organisers responsible for any injury sustained during the tournament.<br>");
document.write("  (Mouth guards and groin guards are compulsory");
if (u18)
  { document.write(". Some gloves and boots may be borrowed on the day.)<br><br>"); 
    document.write("  Enter Parent / Guardian's name here : ");
  }
else  
  { document.write(", as are helmets, which will be provided by ITFNZ )<br><br>"); 
    if (international) { document.write("  Overseas team members, put Team Manager's name here. "); }
  }
if (!u18)
  { document.write("  ITFNZ members, if under 18, Enter Parent / Guardian's name. "); }
document.write("  <input name='DisclaimerName' size='20' type='text'> <br>");

//document.write("  (Note: This will be required for any participation)<br>");
document.write("  The organisers reserve the right to decline any entry without having to state a reason.<br>");
document.write("  <br>");
document.write("If you are going to pay by <b> Internet Banking</b>, please confirm by putting amount here <input type='text' size='8' name='internetpay' > <br>");
document.write("(see payment notes below) <br>");
document.write("  <br>");
document.write("  <input value='end' name='DataEnd'  type='hidden'>");
document.write("  <b><input value='SendEntry'  type='submit'> <br>");
document.write("  <br>");
document.write("  </b>Entries will be listed on the " + title1 + " web page.&nbsp;<br>");
document.write(" If your entry does not show within three days, or for other queries,  please email the organiser:<br>");
document.write("  Mrs Sue Breen at <a href='mailto:sbreen&#064itfnz.org.nz'>sbreen&#064itfnz.org.nz</a> <br>");
document.write("  <br>");
document.write("   <br>");
document.write(" Fees to Mrs Breen, or by bank payment as below <br>");
document.write("  26 Merton Rd, St Johns, Auckland <br>");
document.write(" <b>Make cheques out to ITFNZ (Please do NOT send <u> cash</u> through the mail!)</b>");
document.write(" <hr>");

document.write(" <b><big>Electronic Payment</big></b>");
document.write(" <p>If you have Internet banking you can pay the entry fee online.<br>");
document.write(" Account ASB - 12 3011 0426916 050  <br>");
document.write(" In the part where you enter Details to appear on THEIR statement:<br>");
document.write(" put the reference &quot;" + bankref + "&quot; and the name of the COMPETITOR as per the entry form! <br>");
document.write(" (if paying for more than one competitor, just put one name in the payment details,&nbsp;<br>");
document.write(" and put the others in the Notes section above, or email: <a href='mailto:sbreen&#064itfnz.org.nz'>sbreen&#064itfnz.org.nz</a> )");
document.write(" </tr></table>");
document.write(" </tr></table>"); 
document.write("</form>");
document.write("</center>");


