<%@ Language=VBScript%>
<!--#INCLUDE file="ADOVBS.inc"-->
<%
	Response.Buffer=true
	DIM sqlQuery, int_folio, str_tiempo, dbl_hora, dbl_minutos, dbl_segundos, dbl_avance
	DIM int_w, int_h
	dim testId
	int_w="100%"
	int_h="100%"

	dsn= application("bd_sieps")

	str_valido= Request.Cookies("seiso")("4")
	int_folio= Request.Cookies("sieps")("folio")
	
	Session("solicitudeFolio") = int_folio
	testId = Session("testId")	
	
	SET rs = server.CreateObject("ADODB.Recordset")
	SET conn = SERVER.CreateObject("ADODB.CONNECTION")

	conn.Open dsn

	 'tiempo de prueba
	sqlQuery = "SELECT prue_tiempo FROM pruebas WHERE prue_clave='"&testId&"'"
	On Error Resume Next
	rs.Open sqlQuery, conn,adOpenForwardOnly,adLockReadOnly,1
	handleError(conn)
	str_tiempo="000000"		
	if rs.EOF= FALSE THEN
		str_tiempo_inicio = rs.Fields("prue_tiempo")
	end if	
	rs.Close
			  
	dbl_hora = Mid(str_tiempo_inicio, 1, 2)
	dbl_minutos = Mid(str_tiempo_inicio, 3, 2)
	dbl_Segundos = Mid(str_tiempo_inicio, 5, 2)

	rs.Close
	dbl_avance=0
	
sub handleError(connectionRef)
	dim objErr
	dim str_c
	dim strrr, flag
	flag = 0

	if connectionRef.Errors.Count <> 0 Then
		str_c = str_c & "Count: " 
		str_c = str_c & connectionRef.Errors.Count
		for each objErr in connectionRef.Errors
			if objErr.Number <> 0 then ' Number = 0 el error es meramente informativo
				str_c = str_c & " Number: "
				str_c = str_c & objErr.Number			
				
				str_c = str_c & " Description: "
				str_c = str_c & objErr.Description  
			  
				str_c=str_c&" Native error: "
				str_c=str_c&objErr.NativeError 
				  
				str_c=str_c&" SQL state: "
				str_c=str_c&objErr.SQLState
				flag = 1
			end if
		next		
		if flag <> 0 then
			' clean up		
			if conn.State = adStateOpen then
				conn.Close
			end if
			
			set rs = Nothing
			set conn = Nothing
			set connectionRef = nothing
			
			strrr = "uti_console.asp?mensaje=" & "Error: " & str_c 
			Response.Redirect(strrr)
		end if		
	end if	
end sub	
	
sub sendMensajeToConsole(mensaje)
	dim strrr
	strrr="uti_console.asp?mensaje=" & mensaje
	Response.Redirect(strrr)
end sub
%>
<HTML>
	<HEAD>
		<TITLE></TITLE>
		<!--#INCLUDE FILE="uti_utilerias_aplicacion.asp"-->
		<SCRIPT LANGUAGE=javascript>
		<!--
		//-->
		</SCRIPT>
		<link rel="stylesheet" type="text/css" href="stylesheet.css"/>
		<link rel="stylesheet" type="text/css" href="css/styleTests.css"/>
		<script type="text/javascript" src="js/lib/prototype-1.6.0.2.js"></script>
		<script type="text/javascript" src="js/funciones/functionsTests.js"></script>		
	</HEAD>

<body class="body"  topmargin="6" bottommargin="6" leftmargin="6" rightmargin="6" bgColor="slategray" onkeydown="evento()">
<!--#INCLUDE FILE="uti_fondo.asp"-->
	<table width="100%" Align="center" valign="top" border="0"  cellspacing="1" cellpadding="4" bordercolor="silver"  bordercolordark="white" bordercolorlight="black">
		<tr>
			<td valign="top">
				<br>
					<form name="form1" id="form1" method="post" action="TestSave.asp">
						<div id="testContent" style="width:650px; border:1px solid red; text-align:center; margin:0 auto;">
							<h2>En las siguientes oraciones, demuestre el uso de las letras seņaladas, llenando las l&iacute;neas correctamente.</h2>											
							
							<div id="wrapperTabbs" style="border:1px solid #165B9F; ">
								<div class="test">
									<h2>Uso de la b y v</h2>
									<div class="options">
										<div id="opt1" onclick="readLetter('b', this);">
											b
										</div>						
										<div id="opt2" onclick="readLetter('v', this);">
											v
										</div>
									</div>
									<div style="clear: both;"></div>
									<div class="contentSentences">
										<ol>
											<li>
												1. Es 
												<span class="palabra">
													proba<span id="incognita1" onclick="writeLetter(this);" class="incognita">_</span>le
												</span> que surjan 
												<span class="palabra">
													impre<span id="incognita2" onclick="writeLetter(this);" class="incognita">_</span>istos
												</span> durante su 
												<span class="palabra">
													am<span id="incognita3" onclick="writeLetter(this);" class="incognita">_</span>cioso
												</span>viaje; 
												<span class="palabra">
													pro<span id="incognita4" onclick="writeLetter(this);" class="incognita">_</span>&eacute;ase 
												</span>de lo necesario y 
												<span class="palabra">
													con<span id="incognita5" onclick="writeLetter(this);" class="incognita">_</span>eniente
												</span> a la ocaci&oacute;n y no tendr&aacute; que sufrir 
												<span class="palabra">
													pri<span id="incognita6" onclick="writeLetter(this);" class="incognita">_</span>aciones.
												</span>
											</li>
											<li>
												2. Lo 
												<span class="palabra">
													mantu<span id="incognita1" onclick="writeLetter(this);" class="incognita">_</span>ieron
												</span> preso, pues para 
												<span class="palabra">
													absol<span id="incognita2" onclick="writeLetter(this);" class="incognita">_</span>erlo
												</span> era necesario 
												<span class="palabra">
													pro<span id="incognita3" onclick="writeLetter(this);" class="incognita">_</span>ar
												</span> su 
												<span class="palabra">
													sol<span id="incognita4" onclick="writeLetter(this);" class="incognita">_</span>encia
												</span> moral y  
												<span class="palabra">
													disol<span id="incognita5" onclick="writeLetter(this);" class="incognita">_</span>er
												</span> las 
												<span class="palabra">
													a<span id="incognita6" onclick="writeLetter(this);" class="incognita">_</span>undantes
												</span> dudas que sobre su conducta la mayor&iacute;a 
												<span class="palabra">
													al<span id="incognita7" onclick="writeLetter(this);" class="incognita">_</span>ergaba.
												</span>
											</li>
											<li>
												3. Era  
												<span class="palabra">
													e<span id="incognita1" onclick="writeLetter(this);" class="incognita">_</span>idente
												</span> y en gran manera explicable que lo 
												<span class="palabra">
													inha<span id="incognita2" onclick="writeLetter(this);" class="incognita">_</span>itable
												</span> del lugar 
												<span class="palabra">
													tu<span id="incognita3" onclick="writeLetter(this);" class="incognita">_</span>iera
												</span> en el  
												<span class="palabra">
													<span id="incognita4" onclick="writeLetter(this);" class="incognita">_</span>isitante
												</span> impacto 
												<span class="palabra">
													e<span id="incognita5" onclick="writeLetter(this);" class="incognita">_</span>asivo
												</span> ; y no era para menos, hasta el m&aacute;s 
												<span class="palabra">
													comprensi<span id="incognita6" onclick="writeLetter(this);" class="incognita">_</span>o
												</span> 
												<span class="palabra">
													e<span id="incognita7" onclick="writeLetter(this);" class="incognita">_</span>itaba
												</span> acercarce.
											</li>
										</ol>										
									</div>
								</div>
							</div>							
							<br/>
							<div id="wrapperTabbs2" style="border:1px solid #165B9F; ">
								<div class="test">
									<h2>Uso de la h</h2>
									<div class="options">
										<div id="opt1" onclick="readLetter('h', this);">
											h
										</div>																
									</div>
									<div style="clear: both;"></div>
									<div class="contentSentences">
										<ol>
											<li>
												4. Cuando la 
												<span class="palabra">
													<span id="incognita21" onclick="writeLetter(this);" class="incognita">_</span>ermandad
												</span> lo visit&oacute;, el  
												<span class="palabra">
													<span id="incognita22" onclick="writeLetter(this);" class="incognita">_</span>ermitaņo
												</span> manifest&oacute; su 
												<span class="palabra">
													<span id="incognita23" onclick="writeLetter(this);" class="incognita">_</span>ostilidad
												</span> 
												<span class="palabra">
													<span id="incognita24" onclick="writeLetter(this);" class="incognita">_</span>acia
												</span> la gente.
											</li>
											<li style="margin-bottom:10px;">
												5. La  
												<span class="palabra">
													<span id="incognita25" onclick="writeLetter(this);" class="incognita">_</span>umildad
												</span> no es una actitud que lo caracterice, pues a menudo se muestra  
												<span class="palabra">
													<span id="incognita26" onclick="writeLetter(this);" class="incognita">_</span>ostentoso
												</span> y no vacila en 
												<span class="palabra">
													<span id="incognita27" onclick="writeLetter(this);" class="incognita">_</span>ostilizar
												</span> y 
												<span class="palabra">
													<span id="incognita28" onclick="writeLetter(this);" class="incognita">_</span>umillar
												</span> a todos de una manera 
												<span class="palabra">
													ex<span id="incognita29" onclick="writeLetter(this);" class="incognita">_</span>agerada.
												</span> las 
												<span class="palabra">
											</li>
											<li>
												6. Cuando se encontraron perdidos en la 
												<span class="palabra">
													ex<span id="incognita30" onclick="writeLetter(this);" class="incognita">_</span>uberante
												</span> selva, presintieron su destino 
												<span class="palabra">
													<span id="incognita31" onclick="writeLetter(this);" class="incognita">_</span>umbr&iacute;;
												</span> algunos manifestaron comportamientos  
												<span class="palabra">
													<span id="incognita32" onclick="writeLetter(this);" class="incognita">_</span>ist&eacute;ricos
												</span> mientras que otros se mostraron 
												<span class="palabra">
													<span id="incognita33" onclick="writeLetter(this);" class="incognita">_</span>imp&aacute;vidos.
												</span>
											</li>
										</ol>										
									</div>
								</div>
							</div>
						</div>
						<input id="mountIncognitas" type="hidden" value="6" />
						<input id="hidden_incognita1" type="hidden" value="" />
						<input id="hidden_incognita2" type="hidden" value="" />
						<input id="hidden_incognita3" type="hidden" value="" />
						<input id="hidden_incognita4" type="hidden" value="" />
						<input id="hidden_incognita5" type="hidden" value="" />
						<input id="hidden_incognita6" type="hidden" value="" />
						<input id="valueSelected" type="hidden" value="" />
					</form>				
	
<!--#INCLUDE FILE="uti_calce.asp"-->
</BODY>
</HTML>
