<?php
 
session_start();
$com = "A";
include("DMMYSQLG.php");
include("DSA3000.php");
include("DMMYSQLG.php");
require_once("DFJQUERY.inc");
include("DF30000.inc");
?>
<html>
<link rel="stylesheet" href="css/estilo1.css" type="text/css"/>
<script type="text/javascript" language="JavaScript1.2" src="DSSCRIPT.js"></script>
<script language="javascript">
$(document).ready(function(){
	function formatItem(row) {
		return " (<strong>" + row[1] + "</strong>)"+row[0];
	}
	$("#tap2").autocomplete('cat_grupos_AU.php',{
		minChars: 1,                 //Caracteres Minimos antes de autocompletar
		//max:3                        //maximo de resultados mostrados, se manda como limit en autosugestion
		delay: 200,                  //Retardo de autocompletar 
		width: 500,                  //ancho del cuadro de despliegue
		highlight: false,            //Resalta letras coincidentes
		autoFill: false,             //autocompleta en texto la posible palabra
		scroll: true,				 //si cuadro tiene barra scroll
		scrollHeight: 300,           //alto del cuadro para el scroll
		formatItem:formatItem,	     //formato de presentacion de las posibles busquedas
		extraParams:{tipBus:'d'}     //Parametros Extra a Mandar en autosugestion
	});
});
</script>

<script language="javascript">
function ocultaMuestra(divVent){
	if(divVent.style.display=='none'){
		divVent.style.display='';

	}else{
		divVent.style.display='none';

	}
}	
	</script>
<body onLoad = "self.focus (); document.frm1.tap2.focus ()">

<form name="frm1" method="post" action="" enctype="multipart/form-data">
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <table width="431"  align="center">
    <tr>
      <th colspan="2"><div align="center">AGREGAR GRUPO Y PLAN.</div> </th>
    </tr>
    <tr>
      <td width="106"><strong>DESCRIPCION.</strong></td>
      <td width="309"><label>
      <input name="tap2" id="tap2" type="text" tabindex="1"
		  onBlur="may(this)" size="50"
		<?php

			if(isset($_REQUEST['tap2'])){ 
				echo 'value="' . $_REQUEST['tap2'] .  '"';
			}
		?>>
      </label></td>
    </tr>
  </table>
  <div id="divVent" style="display:">
    <table width="431"  align="center"  >
      <tr>
        <td><strong>CONTACTO.</strong></td>
        <td><label>
          <input name="gcontacto" type="text" id="gcontacto" size="40" tabindex="2">
        </label></td>
      </tr>
      <tr>
        <td><strong>GUIA.</strong></td>
        <td><label>
          <input name="gguia" type="text" id="gguia" size="40" tabindex="3">
        </label></td>
      </tr>
      <tr>
        <td><strong>FECHA DE LLEGADA</strong></td>
        <td><input name="gfechallegada" type="text" class="emplea" id="gfechallegada" tabindex="4" size="15" maxlength="15"
		  <?php

			  	echo 'value="'.date("d/m/Y").'"'; 
			  
			  ?>
		  />
            <input name="reset" id="bot" type="image" value"Cal" src="logos/cal4.jpg" tabindex="5"/>
            <script type="text/javascript">
				  	Calendar.setup(
    					{
      						inputField  : "gfechallegada",        // ID of the input field
      						ifFormat    : "%d/%m/%Y",    // the date format
      						button      : "bot"      // ID of the button
    					}
  					);
				                </script> </td>
      </tr>
      <tr>
        <td width="106"><strong>FECHA DE SALIDA.</strong> </td>
        <td width="309"><input name="gfechasalida" type="text" class="emplea" id="gfechasalida" tabindex="6" size="15" maxlength="20"
		  <?php

			  	echo 'value="'.date("d/m/Y").'"'; 
			  
			  ?>
		  />
            <input name="reset" id="bot2" type="image" value="Cal" src="logos/cal4.jpg" tabindex="7" />
        <script type="text/javascript">
				  	Calendar.setup(
    					{
      						inputField  : "gfechasalida",        // ID of the input field
      						ifFormat    : "%d/%m/%Y",    // the date format
      						button      : "bot2"      // ID of the button
    					}
  					);
				                </script></td>
      </tr>
      <tr>
        <td colspan="2"><div align="center">
          <input name="Submit22" type="Button" onClick="openpage('valeryus40000_GC.php','_self')" tabindex="8" value="Guardar">
          <input type="Button" name="Submit2" value="Regresar" tabindex="9" onClick="envia1('valeryus40000_AG.php','_self')">
        </div></td>
      </tr>
    </table>
  </div>
</form>
</body>
</html>
<?php
 mysqli_close($con);?>
