<script language="JavaScript" src="../jscript/upper_case.js"  type="text/javascript"></script>  
<script language="JavaScript" src="../jscript/no_spaces.js"  type="text/javascript"></script> 
   
</head>
<?php include('../include/wait.php') ?>

<body onLoad="MM_showHideLayers('wait','','hide')" onFocus="MM_showHideLayers('wait','','hide');">
<?php 
$page_name = "Transport-new vehicle";
include ("../navigation/access.php");


if ($permission_num==1) {
	 
	?>
<div class="wizard_page_middle_frame">
<form id="form1" name="form1" method="get" action="vehicleWizbase.php">
  <table width=595 border="0" align="center" cellpadding="10" cellspacing="0" bordercolor="#0066FF" border-collapse="collapse">
    <tr>
      <td width="525" ><?php if ($_SESSION['error']==1) { ?>
        <div class="wizard_warning_frame"><img src="../images/error.png" width="16" height="16">&nbsp;&nbsp;&nbsp;&nbsp;
          <label class="std">A vehicle with registration "<?php echo $_SESSION['reg_no'] ?>" allready exists, please use onother registration.</label>
        </div>
        <?php 
	 $_SESSION['make'] = "";
	 $_SESSION['model'] = "";
	 $_SESSION['fuel'] = "";
	 $_SESSION['department'] = "";
	 $_SESSION['purchase_date']  = date('1990-01-01');
	 $_SESSION['renewal_date']  = $today;
	 $_SESSION['purchase_cost'] = "";
	 $_SESSION['license'] = "";
	 $_SESSION['service_interval'] = "";
	 $_SESSION['clock_reading'] = "";
	 $_SESSION['chassis_no'] = "";
	 $_SESSION['engine_no'] = "";
	 $_SESSION['reg_no'] = "";
	 $_SESSION['license'] = "";
	 $_SESSION['insurance'] = "";
	 $_SESSION['notes'] ="";	
	 
	 } ?>
     
        <div class="wizard_frame">
          <label class="label_std">What is the registration number?</label><label class="star"> *</label>&nbsp;&nbsp;&nbsp;
          <input name="reg_no_text" type="text" id="reg_no_text" class="text200" value="<?php echo $_SESSION['reg_no'] ?>"  onKeyUp="ToUpper(this); nospaces(this)"/>
          &nbsp;&nbsp;
          <input name="p" type="hidden" id="p" value="1" />
          <input name="error" type="hidden" id="error" value="0" />
          <input name="s" type="hidden" id="s" value="1" />
        </div>
<div class="wizard_spacer_frame" style="height:200px;"></div> 
<div class="wizard_frame">     
      
      <table width="640" height="50" align="center" id="tableButtonBar">
          <tr>
            <td width="117">&nbsp;</td>
            <td width="115">&nbsp;</td>
            <td width="99">&nbsp;</td>
            <td width="125"><input name="cancelbutton" type="button" class="imagebutton" id="cancelbutton" onClick="needToConfirm = false; cancel_confirmation(1, '../transport/transport_main.php');" value="Cancel" /></td>
            <td width="110" align="right"><input type="submit" name="next_button" class="imagebutton" value="Next" onClick="needToConfirm = false; MM_showHideLayers('wait','','show');" /></td>
          </tr>
        </table></td>
    </tr>
  </table>
 </form>
<!--form validation-->
<script language="JavaScript" type="text/javascript" xml:space="preserve">
  var frmvalidator  = new Validator("form1");
  frmvalidator.EnableMsgsTogether();
  frmvalidator.addValidation("reg_no_text","req","- registration number.");
  
  </script>
  </div>
</body>  
<?php } else { 
    $_SESSION['denied_return'] = "transport/transport_main.php?edit=";	?>
	<body onLoad="accessdenied(); return false">
	</body>
<?php }
?>