<?php
include ("conexion.php");
?>

<!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>Documento sin t&iacute;tulo</title>
<link href="ucaestilos.css" rel="stylesheet" type="text/css" />
<script src="ajax.js" language="javascript"></script>
<script src="ajax-dynamic-list_actividades.js" type="text/javascript" ></script>
<script src="prototype.js" language="javascript"></script>
<link href="ajaxestilosautocomplete.css" rel="stylesheet" type="text/css">
<script>
function valida(num)
{	
	//alert(num);
	if(num==1)
	{
		//alert(document.getElementById('nombre1_hidden').value);
		if(document.getElementById('nombre1_hidden').value=="")
		{alert("ĄDebe seleccionar la actividad!");
		return(false);}
		else
		{document.form1.submit();}
	}
	if(num==2)
	{
		//alert(document.getElementById('nombre2_hidden').value);
		if(document.getElementById('nombre2_hidden').value=="")
		{alert("ĄDebe seleccionar la actividad!");
		return(false);}
		else
		{document.form2.submit();}
	}
}
</script>
</head>
<body>
<table width="950" border="0" align="center">
  <tr>
    <td width="846"><span class="style10">DOTACI&Oacute;N DE MATERIAL A EVENTO O ACTIVIDAD</span></td>
  </tr>
    <tr>
    <td>
      <HR color="#CCCCCC" size="1" noshade="noshade"></td>
  <tr><td><table width="100%" border="0" cellspacing="2" cellpadding="0">
    <tr>
      <td width="10%"><form id="form3" name="form3" method="post" action="main.php?a=513">
        <input name="button3" type="submit" class="botonDefault" id="button3" value="Nuevo actividad" />
      </form></td>
      <td width="90%"><form id="form4" name="form4" method="post" action="main.php?a=514">
        <input name="button4" type="submit" class="botonDefault" id="button4" value="Ver listado de actividades" />
      </form></td>
    </tr>
  </table>    </td>
  </tr>
  <tr>
    <td><br />
      <table width="400" border="0" align="center" cellpadding="5" cellspacing="0" class="lineaTabla">
      <tr>
        <td bgcolor="#CCDDFF" class="style7">Nueva Dotaci&oacute;n a Actividad</td>
      </tr>
      <tr>
        <td><form id="form1" name="form1" method="post" action="main.php?a=51">
            <table width="600" border="0" align="center" cellspacing="5">
              <tr>
                <td width="24%"><div align="right" class="style4">Nombre Actividdad: </div></td>
                <td width="76%"><input type="text" class="cuadrotexto" id="nombre1" name="nombre1" onkeyup="ajax_showOptions(this,'getCountriesByLetters',event)" value="" size="30" autocomplete="off" />
                  <input name="nombre1_hidden" type="hidden" class="cuadrotexto" id="nombre1_hidden" size="5" />
                  <input name="button" type="button" class="botonDefault" id="button" value="Siguiente" onclick="valida(1)" /></td>
              </tr>
            </table>
        </form></td>
      </tr>
    </table>
      <p>&nbsp;</p>
      <table width="400" border="0" align="center" cellpadding="5" cellspacing="0" class="lineaTabla">
        <tr>
          <td bgcolor="#CCDDFF" class="style7">Agregar productos a dotaci&oacute;n existente</td>
        </tr>
        <tr>
          <td><form id="form2" name="form2" method="post" action="main.php?a=515">
              <table width="600" border="0" align="center" cellspacing="5">
                <tr>
                  <td width="22%"><div align="right" class="style4">Nombre Actividad: </div></td>
                  <td width="78%"><input type="text" class="cuadrotexto" id="nombre2" name="nombre2" onkeyup="ajax_showOptions(this,'getCountriesByLetters',event)" value="" size="30" autocomplete="off" />
                  <input name="nombre2_hidden" type="hidden" class="cuadrotexto" id="nombre2_hidden" size="5" />
                  <input name="button2" type="button" class="botonDefault" id="button2" value="Consultar" onclick="valida(2)"/></td>
                </tr>
              </table>
          </form></td>
        </tr>
      </table>
    <br /></td>
  </tr>
</table>
</body>
</html>

