<?php
$error=$_GET['error'];
?>

</head>

<?php include('../include/wait.php') ?>
<link href="../css/wait.css" rel="stylesheet" type="text/css">
<body onLoad="MM_showHideLayers('wait','','hide'; <?php if ($error==1) { ?>alertMessage(1, '', 'Call out charges cannot be 0 (zero). <br> Please enter a value higher than zero.');<?php } ?>)" onFocus="MM_showHideLayers('wait','','hide');"  onBlur="MM_showHideLayers('wait','','hide');">

<div class="wizard_page_middle_frame">
<form action="" method="get" name="form1" id="form1" >
         <div class="wizard_frame">
           <table width="630" id="table_display_wizard">
             <tr>
               <td width="123" valign="middle">Maintenance team: 
                </td>
               <td valign="middle"><?php echo $_SESSION['team'] ?>
               </td>
             </tr>
           </table>
            <br>
            <table width="667" id="table_display_wizard">
              <tr>
                <td colspan="4">Project costs:</td>
              </tr>
              <tr>
                <td width="226" height="38">Call out charges: 
                  <label class="star">*</label></td>
                <td width="429">
                  <input type="text" name="call_out_text" id="call_out_text" class="text100" onKeyPress="return isNumberKey(event)" onKeyUp=" this.value = this.value.replace (/(\...).*/, '$1')" style="text-align:right" value="<?php echo $_SESSION['call_out_charge'] ?>" autocomplete="off" onfocus = "this.select();">
                  <?php if ($error==1) { ?>
                  <div> <img src="../images/exclamation_mark_red_small.png" width="10" height="16">
                    <label class="label_warning">Call out charge cannot be 0 (zero) or empty.</label>
                  </div>
                <?php } ?>                </td>
              </tr>
              <tr>
                <td height="37">Additional charges (not spares):</td>
                <td><input type="text" name="additional_text" id="additional_text" class="text100" onKeyPress="return isNumberKey(event)" onKeyUp=" this.value = this.value.replace (/(\...).*/, '$1')" style="text-align:right"  value="<?php echo $_SESSION['additional_charge'] ?>" autocomplete="off" onfocus = "this.select();"></td>
              </tr>	
            </table>
        </div>
        
        <div class="wizard_spacer_frame" style="height:50px;"></div>
        <div class="wizard_frame">
      <table width="590" height="50" align="center" id="table_button_bar">
        <tr>
          <td width="117"><input type="button" name="lastprev_button" class="imagebutton" value="Prev"  onclick="needToConfirm = false;MM_showHideLayers('wait','','show');MM_goToURL('parent','maintenance_closeJobWizbase.php?s=&amp;p=1');return document.MM_returnValue" /></td>
          <td width="115">&nbsp;</td>
          <td width="99"><input name="p" type="hidden" id="p" value="2" />
            <input name="s" type="hidden" id="s" value="2" />
            </span>
            <input type="hidden" name="preset" id="preset">
            <input type="hidden" name="preset_list_name" id="preset_list_name"></td>
          <td width="125" align="right"><input name="cancelbutton" type="button" class="imagebutton" id="cancelbutton"  onClick="needToConfirm = false; cancel_confirmation(1, '../maintenance/maintenance_main.php');" value="Cancel" /></td>
          <td width="110" align="right"><input type="submit" name="next_button" id="next_button" class="imagebutton" value="Next"  onClick="needToConfirm = false; MM_showHideLayers('wait','','show'); " /></td>
        </tr>
      </table>
      </div>
</form>
</div>
<!--form validation-->
<script language="JavaScript" type="text/javascript" xml:space="preserve">

  var frmvalidator  = new Validator("form1");
  frmvalidator.EnableMsgsTogether();
  frmvalidator.addValidation("call_out_text","req","- call out charges");
 
  
</script>
</body>      