<?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>
function enviar_url(form,url)
{
	if (document.form1.nom_recep.value==""){alert('Debe Ingresar el Personal a Grabar'); document.form1.nom_recep.focus(); return;}
	if (document.form1.apellpa_recep.value==""){alert('Debe Ingresar el Personal a Grabar'); document.form1.apellpa_recep.focus(); return;}
	if (document.form1.apellma_recep.value==""){alert('Debe Ingresar el Personal a Grabar'); document.form1.apellma_recep.focus(); return;}
	if (document.form1.doc_recep.value==""){alert('Debe Ingresar el Personal a Grabar'); document.form1.doc_recep.focus(); return;}
	if (document.form1.cargo_recep.value==""){alert('Debe Ingresar el Personal a Grabar'); document.form1.cargo_recep.focus(); return;}
	form.submit();
}
</SCRIPT>
<script language="JavaScript"> 
<!--
//sURL,x,y
function Vincular_Ventana(sURL) { 
	if (!window.focus) return;
			window.location.href=sURL;
		}
//-->
</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>
<script language="javascript" type="text/javascript">
  function mensajes(m){
			  if (m==1){alert('No se Pudo Grabar el Personal de Recepcion, Porque ya existe ese Documento de Identidad');
			            document.form1.doc_recep.select();
			            document.form1.doc_recep.focus();
			           }
  
  
  }

</script>
</head>
<?php 
  if (isset($men)){
	if ($men==1)
	{echo "<body onload='mensajes(1); document.form1.nom_recep.focus();' background='../imagenes/fondo.jpg'>";}
 
    }
    else
	{echo "<body background='../imagenes/fondo.jpg' onload='document.form1.nom_recep.focus();'>";}

?>
<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 Nuevo Recepcionista(o) </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="90%" border="0" align="center" cellpadding="0" cellspacing="0">
				<form name="form1" method="post" action="procesos/cvp_valida_recepcionista.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="48%" height="18" class="rdoBanners"><div align="left" class="lblCampo Estilo2">Nombre</div></td>
                    <td colspan="2">
                      <div align="left">
                        <input name="nom_recep" type="text" class="lblForm" id="login2" onkeyup=fn(this.form,this) value="<?=$nom_recep?>" size="30">
                    </div></td>
                  </tr>
                  <tr class="parrafo">
                    <td height="18" class="rdoBanners"><div align="left" class="lblCampo Estilo2">Apellido Paterno </div></td>
                    <td colspan="2">
                      <div align="left">
                        <input name="apellpa_recep" type="text" class="lblForm" id="apellpa_recep" onKeyUp=fn(this.form,this) value="<?=$apellpa_recep?>" size="30">
                    </div></td>
                  </tr>
                  <tr class="parrafo">
                    <td height="18" class="rdoBanners Estilo2">Apellido Materno </td>
                    <td colspan="2"><input name="apellma_recep" type="text" class="lblForm" id="apellma_recep" onKeyUp=fn(this.form,this) value="<?=$apellma_recep?>" size="30"></td>
                  </tr>
                  <tr class="parrafo">
                    <td height="18" class="rdoBanners Estilo2">Documento de Identidad </td>
                    <td colspan="2"><input name="doc_recep" type="text" class="lblForm" id="doc_recep" onKeyUp=fn(this.form,this) value="<?=$doc_recep?>" size="30"></td>
                  </tr>
                  <tr class="parrafo">
                    <td height="18" class="rdoBanners Estilo2">Cargo</td>
                    <td colspan="2"><input name="cargo_recep" type="text" class="lblForm" id="cargo_recep" onKeyUp=fn(this.form,this) value="<?=$cargo_recep?>" size="30"></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_recepcionista.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="15%" height="18" class="normal">&nbsp;</td>
                    <td width="37%" 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?>')" ></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>

