<%@ page language="java"%> 
<%@ page import="java.util.*,javax.sql.*,java.sql.*,javax.naming.*,java.text.*,m05bClasses.m05bConstantesPaginas,m05bClasses.m05bComun" %>

<%
	// _______________________________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("titAsigPDFEntDev")%></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="formPDFEntDev" METHOD="POST">
		<%	m05bComun miComun = new m05bComun();
			String entDev = miComun.leerPropiedad("PDF.EntregaDevolucion"); 
			String asignacion = request.getParameter("NSolicitud")==null?"":request.getParameter("NSolicitud");
			String matricula = request.getParameter("Matricula")==null?"":request.getParameter("Matricula");
			String srcPDF = entDev + matricula;
		%>
		<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('<%=asignacion%>');" onMouseOver="top.status='<%= res.getString("etBOT_STATUSRETORNAR")%>'; return false" onMouseOut="top.status=''; return false" />
		  	</td>
		  </tr>
		  <tr>
		    <td>
				<embed name='pdfEntDev' 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(asignacion) {
		var docu = document.formPDFEntDev;
		if (asignacion == "") {
			docu.action="/m05bParqueMovilWar/m05bMenu_c.jsp"
		} else {
			docu.action="/m05bParqueMovilWar/m05bGenerarAsignacionServlet?Codigo=" + asignacion +"&Mensaje=false"
		}
		docu.submit();
	}
</SCRIPT>
</html>