<?php
include("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.cod_prov.value==""){alert('Debe Ingresar el Codigo del Proveedor'); document.form1.cod_prov.focus(); return;}
	if (document.form1.razon.value==""){alert('Debe Ingresar la Razon Social'); document.form1.razon.focus(); return;}
	if (document.form1.ruc.value==""){alert('Debe Ingresar el RUC'); document.form1.ruc.focus(); return;}
	if (document.form1.dir.value==""){alert('Debe Ingresar la direccion'); document.form1.dir.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/um_prov_grabar.php">
                  <tr class="parrafo">
                    <td height="18" colspan="3" class="normal">
					
					<input name="fecha" type="hidden" id="fecha" value="<?=$fecha?>">
                    <input name="proveedor" type="hidden" id="proveedor" value="<?=$proveedor?>">
                    <input name="obser" type="hidden" size="5" id="obser" value="<?=$obser?>"></td>
                  </tr>
                  <tr class="parrafo">
                    <td width="48%" height="18" class="rdoBanners"><div align="left" class="lblCampo Estilo2">Codigo</div></td>
                    <td colspan="2">
                      <div align="left">
                        <input name="cod_prov" type="text" class="lblForm" id="login2" onkeyup=fn(this.form,this) value="<?=$cod_prov?>" size="30">
                    </div></td>
                  </tr>
                  <tr class="parrafo">
                    <td height="18" class="rdoBanners"><div align="left" class="lblCampo Estilo2">Razon Social </div></td>
                    <td colspan="2">
                      <div align="left">
                        <input name="razon" type="text" class="lblForm" id="razon" onKeyUp=fn(this.form,this) value="<?=$razon?>" size="30">
                    </div></td>
                  </tr>
                  <tr class="parrafo">
                    <td height="18" class="rdoBanners Estilo2">RUC</td>
                    <td colspan="2"><input name="ruc" type="text" class="lblForm" id="ruc" onKeyUp=fn(this.form,this) value="<?=$razon?>" size="30"></td>
                  </tr>
                  <tr class="parrafo">
                    <td height="18" class="rdoBanners Estilo2">Direccion</td>
                    <td colspan="2"><input name="dir" type="text" class="lblForm" id="dir" onKeyUp=fn(this.form,this) value="<?=$dir?>" 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/um_prov_grabar.php?fecha=<?=$fecha?>&proveedor=<?=$proveedor?>&id_prov=<?=$id_prov?>&obser=<?=$obser?>')" >
                        </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('um_pedmed.php?fecha=<?=$fecha?>&proveedor=<?=$proveedor?>&id_prov=<?=$id_prov?>')" ></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>

