<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<link href="ucaestilos.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.Estilo1 {font-size: 14px}
-->
</style>
<script>
function foco()
{
document.getElementById("ticket").focus();
//alert("funciona de inicio");
}
</script>
<!--ARCHIVOS PARA LISTA EN TEXTEDIT -->
<script src="ajax.js" language="javascript"></script>
<script src="ajax-dynamic-list.js" type="text/javascript" ></script>
<link href="ajaxestilosautocomplete.css" rel="stylesheet" type="text/css">
</head>
<body >
  <table width="950" border="0" align="center">
    <tr>
      <td><p class="style4">DEVOLUCION DE MATERIAL :. <hr /></p>
	  </td>
    </tr>
  </table>
  <table width="950" border="0" align="center">
    <tr>
      <td ><div align="center">
        <p>
          <?php if (isset($_GET['error']))
      $error=$_GET['error'];
	  //@$prod=$_GET['prod'];
	  
 {

if (isset ($error))
 {
			  $error=$_GET['error'];
			  //$prod=$_GET['prod'];
			  
			  if($error==1)
			  {
			  echo "<p class='style3'>&iexcl;N&uacute;mero de ticket o producto no v&aacute;lido!.</p>";
			  }
			  if($error==2)
			  {
			  echo "<p class='style3'>&iexcl;La cantidad a devolver no puede ser mayor a la cantidad entregada!.</p>";
			  }
			  			  	  			  
}
else
{

}

}
  ?>
        </p>
      </div>
        <p>&nbsp; </p>
        <form id="form2" name="form2" method="post" action="svdevolucionmaterial.php">
          <table width="500" border="0" align="center" cellspacing="5">
            <tr>
              <td width="168"><div align="right"><span class="style4">No. de control del  ticket:</span></div></td>
              <td width="322"><input name="ticket" type="text" class="cuadrotexto" id="ticket" value="0" size="6" /></td>
            </tr>
            <tr>
              <td><div align="right"><span class="style4">Material:</span></div></td>
              <td><input type="text" class="cuadrotexto" id="material" name="material" onkeyup="ajax_showOptions(this,'getCountriesByLetters',event)" value="" size="40" autocomplete="off" />
              <input name="clave" type="hidden" class="cuadrotexto" id="clave" size="3" /></td>
            </tr>
            <tr>
              <td><div align="right"><span class="style4">Cantidad:</span></div></td>
              <td><input name="cantidad" type="text" class="cuadrotexto" id="cantidad" size="5" onkeypress="if (event.keyCode &lt; 45 || event.keyCode &gt; 57) event.returnValue = false;" /></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td><input name="Submit2" type="submit" class="boton2" value="Guardar devoluci&oacute;n" /></td>
            </tr>
          </table>
          <p>&nbsp;</p>
        </form>      </td>
    </tr>
</table>
<script>
	foco();
</script>
</body>
</html>
