function obtVia($estO, $estD){ $consulta="SELECT CodVia FROM via WHERE CodEO = '$estO' AND CodED = '$estD' ";