<?php 
session_start();
foreach($_GET as $campo => $valor){${$campo}=trim($valor);} 
foreach($_POST as $campo => $valor){${$campo}=trim($valor);} 

$cong_codigo=$_SESSION['cong_codigo'];
if(!empty($cong)){$cong_codigo=$cong;}
$_SESSION['cong_codigo']=$cong_codigo;

include_once('lib_main.php');
if(!empty($empr)){$link_data=msql_connect('','','',$empr); $cfg_empr=$empr;}
$user_codigo=$_SESSION['user_codigo'];
$user0=data_maes('user',$user_codigo);

$xtitulo='Seleccionar';

$zobj=1;
$zbrt=1;
include('ele_break.php');

$zsize=2;
$ztitulo=$xtitulo;     
include('ele_title.php');

$zobj=1;
$zbrt=1;
include('ele_break.php');

// $zobj=4;
$zid='cong';
$ztabla='cong';
$zexact=1;
$zdefa=$cong_codigo;
$zvalue=$cong_codigo;
$zlabel='Num.Cong.';
$zclass='numeric-int';
$zmax=999999;
$zsize=1.8;
$zonblur='{sele_cong(event);}';
// $zonchange='{sele_cong(event);}';
// $zonchange='{sele_cong(event);}';
include('ele_input.php');

// $zobj=1;
// $zbrt=1;
// include('ele_break.php');

$zid='btn_selec'; 
$zlabel='OK';
// $zalign='right';
$zsize=1.8;
$zonclick='{sele_cong(event);}';
include('ele_button.php');


// $zid='xyzend';
// $zhide=1;
// include('ele_input.php');




// echo '*/*/*/'.$_SESSION['oscreen'];


{    
     

echo '<div id="main2">';     
echo '</div>';     
     
}


?>


<script>
function sele_cong(event)
{
//      if(event.type=='click' || event.keyCode==13)
     {
//           get_para();
          var xhref='';
          xhref=xhref+'?scri=sele_cong1';
          xhref=xhref+'&cong='+document.getElementById("cong").value.trim();
          document.getElementById("main1").innerHTML='Espere...';
          location.href=xhref;          
     }
}
</script>


<script>document.title="<?php echo $xtitulo;?>"</script>
