<?php
	include("stilos/config.inc.php");
	include("../clases/BDConexion.php");
  include("../clases/clsPer.php");
  include("Funciones.php");

  $objPer=new clsPer;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Documento sin t&iacute;tulo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="Estilos.css" rel="stylesheet" type="text/css">
<link href="style.css" rel="stylesheet" type="text/css">
<script>
function enviar_url(form,url)
{		
	form1.submit();		
}
function enviar_url11(form,url)
{		
	form1.submit();		
}
function enviar_url12(form,url)
{		
	form1.submit();		
}
</script>
<script>
function enviar_url2(form,url)
{		
	form2.submit();		
}
</script>

</head>

<body>
<table width="150" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><form name="form1" method="post" action="COMBOS.php?dato=<? echo $dato?>&cod_pais=<? echo $cod_pais?>&t=1&cam=<? echo $cam?>&cod_emp=<? echo $cod_emp?>">
      <table width="256" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><div align="left">
              <input name="dato" type="text" id="dato4" value="<? echo $dato?>">
          </div></td>
        </tr>
        <tr>
          <td>
            <select name="cod_pais" id="select3" onChange="enviar_url(form1,'COMBOS.php?dato=<? echo $dato?>&cod_pais=<? echo $cod_pais?>&t=1&cam=1')">
              <option value="0">ninguno</option>
			  <? 
		echo $objPer->getCboPaisA($cod_pais);
		?>
            </select>
            <input name="rrr" type="text" size="5" id="rrr" value="<? echo $cod_pais?>">
            <input name="xx" type="text" size="5" id="xx" value="<? echo $cod_emp?>">
          </td>
        </tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>
		  <? //if($cam==1){?>
            
		 <? //}else{?>
		 	<select name="cod_emp" id="cod_emp" onChange="enviar_url12(form1,'COMBOS.php?dato=<? echo $dato?>&t=1&cam=2&cod_pais=<? echo $cod_pais?>&cod_emp=<? echo $cod_emp?>')">
              <option value="0">ninguno</option>
			  <? 
	   			echo $objPer->getCboEmpp($cod_emp,$cod_pais);
	  		  ?>
            </select>
		 <? //}?>
          </td>
        </tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
      </table>
    </form></td>
  </tr>
  <tr>
    <td><form name="form2" method="post" action="fondo.php">
      <table width="242" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><input type="button" name="Submit" value="Bot&oacute;n" onClick="enviar_url2(form2,'fondo.php?t=2')">
            <input name="cod_pais" type="text" size="5" id="cod_pais" value="<? echo $cod_pais?>">
            <input name="cod_emp" type="text" size="5" id="cod_emp" value="<? echo $cod_emp?>">
            <input name="textfield" type="text" value="<? echo $dato?>" size="6"></td>
        </tr>
      </table>
    </form></td>
  </tr>
</table>
</body>
</html>
