<link href="../estilos/css_sistema.css" rel="stylesheet" type="text/css" />
<link href="../imagenes/logo.ico" type="image/x-icon" rel="shortcut icon">
</head>

<body onload="centrar_pagina()">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td align="center">
	

	<?php 
if ($_REQUEST['id'] === '1') {
    $rs = $paciente->provincia_nuevo($_REQUEST['departamento'], $_REQUEST['provincia'], '0');
    if ($rs) {
        if (!isset($_REQUEST['valor'])) {
            echo "<script  LANGUAGE='JavaScript'> window.opener.location.href = 'paciente_nuevo.php?departamento=" . $_REQUEST['departamento'] . "&provincia=" . $_SESSION['provincia_id'] . "&fecha=" . $_REQUEST['fecha'] . "&historia=" . $_REQUEST['historia'] . "&nombres=" . $_REQUEST['nombres'] . "&apellidos=" . $_REQUEST['apellidos'] . "&fecha2=" . $_REQUEST['fecha2'] . "&estadocivil=" . $_REQUEST['estadocivil'] . "&sexo=" . $_REQUEST['sexo'] . "&direccion=" . $_REQUEST['direccion'] . "&ocupacion=" . $_REQUEST['ocupacion'] . "&email=" . $_REQUEST['email'] . "&telefono=" . $_REQUEST['telefono'] . "&celular=" . $_REQUEST['celular'] . "';\r\nwindow.close();  </script>";
        } else {
            echo "<script  LANGUAGE='JavaScript'> window.opener.location.href = 'paciente_editar.php?departamento=" . $_REQUEST['departamento'] . "&provincia=" . $_SESSION['provincia_id'] . "';\r\nwindow.close();  </script>";
        }
    }
}
?>

	
	<form name="form1"  id="form1">
        <table width="469" border="0" align="center" cellpadding="0">
          <tr>
            <td width="74" align="left" class="enfasis">Departamento</td>