
<script type="text/javascript" src="../css/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="../css/wizard.css" />
<script language="javascript" type="text/javascript" >
<!--
function confirmRefresh() {
var okToRefresh = confirm("Do you really want to cancel this entry?");
var url='vehicleList.php'
if (okToRefresh)
	{
			window.location=url;
	}
}
// -->
</script>
<script language="JavaScript">
var needToConfirm = true;
  window.onbeforeunload = confirmExit;
   function confirmExit()
  {
    if (needToConfirm)
      return "You did not finish the wizard./nIf you leave now your data will not be saved.";
  }
function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
</script>

<form id="feedbackform" method="get" action="vehicleWiz6.php" >
      <table width=595 border="0" align="center" cellpadding="10" cellspacing="0" bordercolor="#0066FF" border-collapse="collapse">
          <tr>
            <td width="525" ><table width="592" id="tableResume" >
              <tr>
                <td width="119" align="left" valign="top">Registration:</td>
                <td width="180" align="left" valign="top"><strong><?php echo $_SESSION['reg_no']?></td>
                <td width="109" align="left" valign="top">&nbsp;</td>
                <td width="164" align="left" valign="top">&nbsp;</td>
              </tr>
              <tr>
                <td align="left" valign="top">Make:</td>
                <td align="left" valign="top">
                  <?php echo $_SESSION['VehicleMake'] ?>
                </td>
                <td align="left" valign="top">Model:</td>
                <td align="left" valign="top"> <?php echo $_SESSION['VehicleModel'] ?></td>
              </tr>
              <tr>
                <td align="left" valign="top">Toxotex company:</td>
                <td align="left" valign="top"><?php echo $_SESSION['CompanyName'] ?></td>
                <td align="left" valign="top">Driver:</td>
                <td align="left" valign="top"><?php echo $_SESSION['DriverName'] ?></td>
              </tr>
  <tr>
    <td align="left" valign="top">Year of man.:</td>
    <td align="left" valign="top"><?php echo $_SESSION['year'] ?></td>
    <td align="left" valign="top">Purchase date:</td>
    <td align="left" valign="top"><?php echo date("d-m-Y", strtotime($_SESSION['PurchaseDate']))?></td>
  </tr>
  <tr>
    <td align="left" valign="top">Chassis no:</td>
    <td align="left" valign="top"><?php echo $_SESSION['chassis_no'] ?></td>
    <td align="left" valign="top">Fuel used:</td>
    <td align="left" valign="top"><?php echo $_SESSION['fuel'] ?></td>
  </tr>
  <tr>
    <td align="left" valign="top">License expiry::</td>
    <td colspan="2" align="left" valign="top"><?php echo $_SESSION['License'] ?></td>
    <td align="left" valign="top">&nbsp;</td>
  </tr>
  <tr>
    <td align="left" valign="top">Notes</td>
    <td colspan="2" align="left" valign="top"><?php echo $_SESSION['Notes'] ?></td>
    <td align="left" valign="top">&nbsp;</td>
  </tr>
            </table>
            <p class="wizard">
              <input name="s" type="hidden" id="s" value="4" />
              <input name="p" type="hidden" id="p" value="4" />
              <label class="std">If you want to make changes use the 'Prev' button to go back. <br />
              Click 'New' to make a new entry or to finish the wizard click 'Finish'.</label></p>
            </td>
            
          </tr>
          <tr>
            <td>
              <table width="590" height="50" align="center" id="tableButtonBar">
                <tr>
                  <td width="117"><input type="button" name="lastprev_button" class="imagebutton" value="Prev" onclick="needToConfirm = false;  MM_goToURL('parent','vehicleWizbase.php?s=6&p=3');return document.MM_returnValue" /></td>
                  <td width="115">&nbsp;</td>
                  <td width="99"><input name="cancelbutton" type="button" class="imagebutton" id="cancelbutton" onclick="needToConfirm = false; confirmRefresh();" value="Cancel" /></td>
                  <td width="125"><input type="submit" name="new_button" class="imagebutton" id="new_button" value="New" onclick="needToConfirm = false; " /></td>
                  <td width="110"><input  name="finish_button" type="submit" class="imagebutton" id="finish_button" value="Finish" onclick="needToConfirm = false; "  /></td>
                </tr>
              </table></td>
          </tr>
        </table>
  </table>
 
</form>

