<%@ page language="java"%> 
<%@ page import="java.util.*,javax.sql.*,java.sql.*,javax.naming.*,java.text.*,m05bClasses.*" %>
<%
	// _______________________________XLNETs______________________________________
	// Evaluar variable de session que indica si esta conectado a XLNets
	if ((session.getAttribute("objetoSeguridad")) == null)  { 
		// Verificar que no ha transcurrido el tiempo de sesion (web.xml) %>
			<%@ include file="/m05bControlAcceso.inc"%> <%
	} 
%>	
	<%@ include file="/m05bIdioma.inc"%>

<HTML>
<HEAD>
	<title><%= resTit.getString("titOTPDFPendientes")%></title>
	<link rel="stylesheet" href="<%=m05bConstantesPaginas.PATH_ESTILOS%>/m05bestilos.css" type="text/css">
	<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
</HEAD>	
<BODY style="cursor: wait" onload="document.body.style.cursor='default';document.all['general'].style.visibility='visible';document.all['general'].style.cursor='default';" onunload="document.body.style.cursor='wait';document.all['general'].style.cursor='wait';">
<div  id="general" style="POSITION: absolute;visibility:hidden;cursor: wait">	
			<form NAME="formOrdPtes" METHOD="POST">
				<%	String sOrden = request.getParameter("Orden");
					m05bComun miComun = new m05bComun();
					String srcPDF = miComun.leerPropiedad("PDF.OrdPtes")+sOrden; 
					m05bFileLog miLog = new m05bFileLog();
					miLog.addTraza("Bego","PDF.OrdPtes","PDF: " + srcPDF,3);
				%>
				<TABLE class="general">
				  <tr>
				    <td align="right">
				  		<input type="button" class="boton" name="<%= res.getString("etBOT_RETORNAR")%>" value="<%= res.getString("etBOT_RETORNAR")%>" ONCLICK="JavaScript:fncRetornar();" onMouseOver="top.status='<%= res.getString("etBOT_STATUSRETORNAR")%>'; return false" onMouseOut="top.status=''; return false" />
				  	</td>
				  </tr>
				  <tr>
				    <td>
						<embed name='pdfOrdPtes' src='<%=srcPDF%>' type="application/pdf" width='736' height='500'></embed>
				  	</td>
				  </tr>
				</TABLE>
			</form>
			<script type="text/javascript" src="<%=m05bConstantesPaginas.PATH_SCRIPTS%>/m05bMsControl.js"></script>
 
</div>						
</body>
<SCRIPT language=JavaScript>
		function fncRetornar() {
			var docu = document.formOrdPtes;
			docu.action="/m05bParqueMovilWar/m05bPenOrdenesJsp.jsp?Orden=<%=sOrden%>";
			docu.submit();
		}
</SCRIPT>
</html>