<?php
include("paginas/stilos/config.inc.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>.:LABORATORIO:.</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="stilos/Estilos.css" rel="stylesheet" type="text/css">
<SCRIPT LANGUAGE=javascript>
function fn(form,field)
{
		var next=0, found=false
		var f=form
		if(event.keyCode!=13) return;
		for(var i=0;i<f.length;i++) {
		if(field.name==f.item(i).name){
		next=i+1;
		found=true
		break;
		}
}
while(found){
		if( f.item(next).disabled==false && f.item(next).type!='hidden'){
		f.item(next).focus();
		break;
}
else{
		if(next<f.length-1)
		next=next+1;
		else
			break;
		}
}
}
</SCRIPT>
<script language="JavaScript"> 
<!--
//sURL,x,y
function Vincular_Ventana(sURL) { 
	if (!window.focus) return;
			window.location.href=sURL;
		}
//-->
</script>
<SCRIPT>
function enviar_url(form,url)
{
	if (document.form1.nom_area.value==""){alert('Debe Ingresar nombre del Area Administrativa'); document.form1.nom_area.focus(); return;}
	if (document.form1.des_area.value==""){alert('Debe Ingresar la descripcion del Area Administrativa'); document.form1.desc_area.focus(); return;}
	form.submit();
}
</SCRIPT>
<script> 
function centrar() { 
    iz=(screen.width-document.body.clientWidth) / 2; 
    de=(screen.height-document.body.clientHeight) / 2-50; 
    moveTo(iz,de); 
}     
</script>

<link href="stilos/Estilos.css" rel="stylesheet" type="text/css">
<link href="paginas/stilos/Estilos.css" rel="stylesheet" type="text/css">
<link href="Estilos.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.Estilo1 {color: #FFFFFF}
.Estilo2 {font-size: 10px}
-->
</style>
</head>
<?php 
if ($elim==1){
?>
<body onload="javascript:close();">
<?php }else{?>
<body background="../imagenes/fondo.jpg" onLoad="document.form1.nom_area.focus();">
<?php }?>
<table width="269" border="0" align="center" cellpadding="0" cellspacing="0" >
  <tr class="lblCampo" >
    <td colspan="4"><div align="center">
        <table width="400" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td>&nbsp;</td>
            <td valign="bottom">&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td valign="bottom">&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td valign="bottom">&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td valign="bottom">&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td width="25"><img src="../estilo_tabla/parte_sup_izq.gif" width="25" height="25"></td>
            <td width="409" background="../estilo_tabla/parte_sup_cen.gif" valign="bottom">
			<div align="left" class="lblTituloReporte Estilo1" >Crear Nueva Area Administrativa </div>			</td>
            <td width="25"><img src="../estilo_tabla/parte_sup_der.gif" width="25" height="25"></td>
          </tr>
          <tr>
            <td width="25" background="../estilo_tabla/parte_med_izq.gif">&nbsp;</td>
            <td width="409" height="86" background="../estilo_tabla/parte_med_cen.gif"><div align="center">
              
                <table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
				<form name="form1" method="post" action="procesos/cvp_valida_area.php">
                  <tr class="parrafo">
                    <td height="18" colspan="3" class="normal"><input type="hidden" name="fecha_doc_rec" value="<?=$fecha_doc_rec?>">
                      <input type="hidden" name="fecha_doc" value="<?=$fecha_doc?>">
                      <input type="hidden" name="valor1" value="<?=$valor1?>">
                      <input type="hidden" name="asunto" value="<?=$asunto?>">
                      <input type="hidden" name="valor2" value="<?=$valor2?>">
                      <input type="hidden" name="persona_re" value="<?=$persona_re?>">
                      <input type="hidden" name="persona_dir" value="<?=$persona_dir?>">
                      <input type="hidden" name="valor3" value="<?=$valor3?>">
                      <input type="hidden" name="valor4" value="<?=$valor4?>">
                      <input type="hidden" name="importancia" value="<?=$importancia?>">
                      <input type="hidden" name="n_doc" value="<?=$n_doc?>">
                      <input type="hidden" name="veri" value="<? echo $veri?>">
                      <input type="hidden" size="2" name="cod_recepcion" value="<? echo $cod_recepcion?>"></td>
                    </tr>
                  <tr class="parrafo">
                    <td width="47%" height="18" class="rdoBanners"><div align="left" class="lblCampo Estilo2">Nombre de &Aacute;rea </div></td>
                    <td colspan="2">
                      <div align="left">
                        <input name="nom_area" type="text" class="lblForm" id="login2" onkeyup=fn(this.form,this) size="33">
                    </div></td>
                  </tr>
                  <tr class="parrafo">
                    <td height="18" class="rdoBanners"><div align="left" class="lblCampo Estilo2">Descrpci&oacute;n de &Aacute;rea </div></td>
                    <td colspan="2">
                      <div align="left"><span class="normal">
                        <textarea name="des_area" cols="25" rows="2" id="des_area"></textarea>
                        </span></div></td>
                  </tr>
                  <tr class="parrafo">
                    <td height="18" class="normal">
                      
                        
                        <div align="center">
                          <input name="Button" type="button" value="Grabar" style="<?=$stylo['st2']?>" class="botira" onClick="enviar_url(form1,'procesos/cvp_valida_area.php?fecha_doc_rec=<?=$fecha_doc_rec?>&fecha_doc=<?=$fecha_doc?>&valor1=<?=$valor1?>&asunto=<?=$asunto?>&valor2=<?=$valor2?>&persona_re=<?=$persona_re?>&persona_dir=<?=$persona_dir?>&valor3=<?=$valor3?>&valor4=<?=$valor4?>&importancia=<?=$importancia?>&n_doc=<?=$n_doc?>&veri=<? echo $veri?>&cod_recepcion=<? echo $cod_recepcion?>')" >
                        </div></td>
                    <td width="10%" height="18" class="normal">&nbsp;</td>
                    <td width="43%" class="normal"><input name="Button2" type="button" value="Cancelar" style="<?=$stylo['st2']?>" class="botira" onClick="javascript:Vincular_Ventana('cvp_recepcion_de_documentos.php?fecha_doc_rec=<?=$fecha_doc_rec?>&fecha_doc=<?=$fecha_doc?>&valor1=<?=$valor1?>&asunto=<?=$asunto?>&valor2=<?=$valor2?>&persona_re=<?=$persona_re?>&persona_dir=<?=$persona_dir?>&valor3=<?=$valor3?>&valor4=<?=$valor4?>&importancia=<?=$importancia?>&n_doc=<?=$n_doc?>&veri=<? echo $veri?>&cod_recepcion=<? echo $cod_recepcion?>')"  >
                      <label></label></td>
                  </tr>
				  </form>
                </table>
              
            </div></td>
            <td background="../estilo_tabla/parte_med_der.gif">&nbsp;</td>
          </tr>
          <tr>
            <td><img src="../estilo_tabla/parte_inf_izq.gif" width="25" height="25"></td>
            <td background="../estilo_tabla/parte_inf_cen.gif">&nbsp;</td>
            <td><img src="../estilo_tabla/parte_inf_der.gif" width="25" height="25"></td>
          </tr>
        </table>
    </div></td>
  </tr>
  <tr valign="top" class="lblCampo" >
    <td colspan="4">
      <div align="center"> </div></td>
  </tr>
</table>
</body>

</html>

