<?php 
   include ('../include/formValidations.php')
?>
<script type="text/javascript" src="../css/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="../css/wizard.css" />
<script language="JavaScript" src="gen_validatorv4.js"  type="text/javascript" xml:space="preserve"></script>
<!--form validation-->
<script language="javascript" type="text/javascript" >
<!--
function confirmRefresh() {
var okToRefresh = confirm("Do you really want to cancel this entry?");
var url='tocotexList.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)
}
</script>
<form id="feedbackform" method="get"  >
  <table width=595 border="0" align="center" cellpadding="10" cellspacing="0" bordercolor="#0066FF" border-collapse="collapse">
    <tr>
      <td width="525" ><p class="wizard">
          <label class="left">Contact person:</label>
          <input class="wizard1" id="contact name" name="ContactText" value="<?php echo $_SESSION['ContactText'] ?>" type="text" onblur="capitalize(this)" onkeyup="tolower(this)"/>
          <label class="star">*</label>
          <label class="right">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Cell number::&nbsp;&nbsp;&nbsp;</label>
          <input class="wizard1" Name="CellText" id="cell number" type="text" value="<?php echo $_SESSION['CellText'] ?>" onkeypress="return numbersonly(this, event)"/>
          <label class="star">*</label>
        </p>
        <p class="wizard">
          <label class="left">Phone number:</label>
          <input class="wizard1" id="phone number" name="PhoneText" value="<?php echo $_SESSION['PhoneText'] ?>" type="text" onkeypress="return numbersonly(this, event)" />
          <label class="star">*</label>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <label class="right">Fax number:</label>
          &nbsp;&nbsp;&nbsp;
          <input class="wizard1" id="fax number" name="FaxText" type="text" value="<?php echo $_SESSION['FaxText'] ?>" onkeypress="return numbersonly(this, event)" />
        </p>
        <p class="wizard">
          <label class="left">e-mail:</label>
          <input class="wizard0" id="e-mail" name="emailText" type="text" value="<?php echo $_SESSION['emailText'] ?>" onkeyup="ToLower(this)"/>
          <label class="right">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
        </p>
        <p class="wizard">
          <label class="left">VAT number::</label>
          <input class="wizard1" id="VAT number" name="VATText" type="text" value="<?php echo $_SESSION['VATText'] ?>" onkeyup="ToUpper(this)"/>
          <input name="s" type="hidden" id="s" value="3" />
          <input name="p" type="hidden" id="p" value="3" />
        </p></td>
    </tr>
    <tr>
      <td><table width="590" height="50" align="center" id="tableButtonBar">
          <tr>
            <td width="117"><input type="submit" name="prev_button" class="imagebutton" value="Prev" onclick="needToConfirm = false; " /></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; confirmRefresh();" value="Cancel" /></td>
            <td width="110" align="left"><input type="submit" name="next_button" class="imagebutton" value="Next" onclick="needToConfirm = false; " /></td>
          </tr>
        </table></td>
    </tr>
  </table>
  </table>
</form>
<script language="JavaScript" type="text/javascript" xml:space="preserve">
  var frmvalidator  = new Validator("feedbackform");
  frmvalidator.EnableMsgsTogether();
  frmvalidator.addValidation("ContactText","req","Please enter a contact name.");
  frmvalidator.addValidation("CellText","req","Please enter a cell number.");
  frmvalidator.addValidation("PhoneText","req","Please enter a phone number.");
</script>
