<?php
  include("stilos/config.inc.php");
  include("clases/BDConexion.php");
  include("clases/clsclinico.php");
  include("Funciones.php");
  session_start();
  $objclinico=new clsclinico;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Registro de Examenes Clinicos - BARRET RESOURCES(PERU) LLC</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="stilos/Estilos.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.Estilo1 {font-size: 10px}
.Estilo2 {color: #000000}
.Estilo4 {color: #FFFFFF}
.Estilo6 {color: #FFFFFF; font-weight: bold; }
-->
</style>
<SCRIPT language=JavaScript src="js/calendario.js"></SCRIPT>
<script>
function enviar_url(form,url){
	if(form1.grabar.value)
	{
		form1.submit();
	}
}
</script>
<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 Abrir_Ventanapopup1(sURL,x,y) { 
/*var especificaciones="top=0, left=0, toolbar=no,location=no, status=yes,menubar=no,scrollbars=no, resizable=no, width=1,height=1" 
var titulo="Titulo"
window.open(el_url,titulo,especificaciones);*/ 

if (!window.focus) return;
			var par;
			par = "width=" +x + ",height="+y+","
			par = par + "dependent=no,scrollbars=yes,resizable=no"
			par = par + "menubar=no,toolbar=no,status=yes"
			var ventana = window.open(sURL,"Ver",par)
			ventana.focus();
}
//--> 
</script>

<script language="JavaScript" type="text/JavaScript">
function MensajeEditar(m){
if (m==1){window.alert("Se Guardo el Exámen satisfactoriamente")}
}
</script>
<script>
var vent = null;
function foco() {
   if (vent != null)
       vent.focus();
}
function cerrar() {
   vent = null;
}


function volver(form){
  location.reload('fondo.php');
  
  }
</script>
</head>
<body  background="imagenes/fondo.jpg">
<form name="form1" method="post" action="dir_atenciones_print.php">
  <table width="733" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="25"><img src="estilo_tabla/parte_sup_izq.gif" width="25" height="25"></td>
      <td width="680" background="estilo_tabla/parte_sup_cen.gif" valign="bottom">
        <div align="left" class="lblTitulo" >Usuarios</div></td>
      <td width="25"><img src="estilo_tabla/parte_sup_der.gif" width="25" height="25" border="0" usemap="#Map"></td>
    </tr>
    <tr>
      <td width="25" background="estilo_tabla/parte_med_izq.gif">&nbsp;</td>
      <td width="680" height="86" background="estilo_tabla/parte_med_cen.gif"><div align="center">
        <table width="683" border="0" align="center" cellpadding="0" cellspacing="0" id="apell_nom">
          <tr bgcolor="#2F8523">
            <td class="trCabecera Estilo1">&nbsp;</td>
            <td width="293"><div align="left" class="Estilo4">Seleccione la Empresa</div></td>
            <td width="378"><div align="left"><?php echo $objclinico->ComboEmp("cod_emp",$val)?></div></td>
          </tr>
          <tr bgcolor="#2F8523">
            <td class="trCabecera Estilo1">&nbsp;</td>
            <td><div align="left" class="Estilo4"><strong>
                <input type="radio" name="opt" value="1" checked>
        TODAS LAS ATENCIONES ENTRE </strong></div></td>
            <td><div align="left">
                <input name="fecha1" type="text" class="lblForm" id="fecha1" value="<? if(!isset($fecha1)){echo date("d-m-Y");}else{echo $fecha1;}?>" size="13" readonly>
                <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha1');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a> <span class="Estilo6">Y &nbsp;&nbsp;&nbsp;</span>
                <input name="fecha2" type="text" class="lblForm" id="fecha_med22" value="<? if(!isset($fecha2)){echo date("d-m-Y");}else{echo $fecha2;}?>" size="13" readonly>
                <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha2');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a> </div></td>
          </tr>
          <tr bgcolor="#2F8523">
            <td width="9" class="trCabecera Estilo1"><div align="right" class="Estilo2"></div></td>
            <td><div align="left"><span class="Estilo4"><strong>
                <input type="radio" name="opt" value="2">
        ATENCIONES EN </strong></span></div></td>
            <td align="left"><?php echo $objclinico->CombolugarMed("lugaraten",$val)?> <span class="Estilo4">ENTRE
                  <input name="fecha3" type="text" class="lblForm" id="fecha3" value="<? if(!isset($fecha3)){echo date("d-m-Y");}else{echo $fecha3;}?>" size="13" readonly>
                  <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha3');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a> <span class="Estilo6">Y </span>
                  <input name="fecha4" type="text" class="lblForm" id="fecha_med23" value="<? if(!isset($fecha4)){echo date("d-m-Y");}else{echo $fecha4;}?>" size="13" readonly>
                  <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha4');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a> </span> </td>
          </tr>
          <tr bgcolor="#2F8523">
            <td class="trCabecera Estilo1">&nbsp;</td>
            <td><div align="left" class="Estilo4">
              <div align="left"></div>
            </div></td>
            <td><div align="left">			  </div></td>
          </tr>
          <tr bgcolor="#2F8523">
            <td class="trCabecera Estilo1">&nbsp;</td>
            <td><div align="center">
            </div></td>
            <td><div align="center">
            </div></td>
          </tr>
          <tr bgcolor="#2F8523">
            <td class="trCabecera Estilo1">&nbsp;</td>
            <td><div align="center">
              <input type="submit" name="Submit2" value="Mostrar Consulta" style="<?=$stylo['st2']?>" class="botira" >
            </div></td>
            <td><div align="center">
              <input name="salir" type="button" style="<?=$stylo['st2']?>" class="botira" id="salir2" value=".:   Salir  :." onClick="volver(this.form);">
            </div></td>
          </tr>
        </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>
</form>
</body>
</html>
