
var declaracion='"';
var pregunta01= new String
var pregunta02= new String
var pregunta03= new String
var pregunta04= new String
var pregunta05= new String
var pregunta06= new String
var pregunta07= new String
var pregunta08= new String
var pregunta09= new String
var pregunta10= new String
function MarkAnswers()
{
var i=0
t=10
info="toolbarno,location=no,directories=no,directories=no,status=no,menubar=no,height=590,width=380,"
info+="scrollbars=yes,resizable=yes"
Answers=window.open("","msgWindow",info)
Answers.opener=window;
Answers.opener.name="opener";
Answers.document.clear;
Answers.document.write("<HEAD><TITLE>Resultado del Ejercicio</TITLE></HEAD>");
if (pregunta01.toLowerCase()=="b")
{
i=i+1;
}
if (pregunta02.toLowerCase()=="a")
{
i=i+1;
}
if (pregunta03.toLowerCase()=="b")
{
i=i+1;
}
if (pregunta04.toLowerCase()=="b")
{
i=i+1;
}
if (pregunta05.toLowerCase()=="c")
{
i=i+1;
}
if (pregunta06.toLowerCase()=="c")
{
i=i+1;
}
if (pregunta07.toLowerCase()=="b")
{
i=i+1;
}
if (pregunta08.toLowerCase()=="a")
{
i=i+1;
}
if (pregunta09.toLowerCase()=="c")
{
i=i+1;
}
if (pregunta10.toLowerCase()=="b")
{
i=i+1;
}
Answers.document.write("<BODY background=checo18.jpg  ALINK=#FF8000 LINK=#FF8000 VLINK=#FF8000>");
Answers.document.write("<p align=center><B><img src='images/orto3.gif'><p align=CENTER><FONT SIZE=3 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#0000ff>Resultado</B></FONT></p>");
Answers.document.write("<p align=Left><B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#FF0000>Las respuestas correctas son "+i.toString()+" de "+t.toString()+"</B></FONT></p>");
  
var calificacion=new String
var comentario=new String
calificacion=""
comentario=""
if (i>=0)
{
calificacion="Insuficiente";
comentario="Tienes que repasar de nuevo la Regla de Ortografía";
}
if (i>=5)
{
calificacion="Suficiente";
comentario="Sin embargo, sería conveniente que volvieras a repasar la Regla de Ortografía";
}
if (i>=6)
{
calificacion="Bien";
comentario="Sin embargo, podrías conseguir una mejor calificación repasadno esta Regla de Ortografía";
}
if (i>=7)
{
calificacion="Notable";
comentario="Todavía puedes alcanzar mejores resultados repasando esta Regla de Ortografía";
}
if (i>=8)
{
calificacion="Notable";
comentario="Todavía puedes alcanzar mejores resultados repasando esta Regla de Ortografía";
}
if (i>=9)
{
calificacion="Notable";
comentario="Estás a punto de superar con Sobresaliente esta Regla de Ortografía";
}
if (i>=10)
{
calificacion="Sobresaliente";
comentario="Felicidades por el aprovechamiento que estás haciendo de las Reglas de Ortografía";
}
Answers.document.write("<p align=Left><B><I><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#FF0000>Tu calificación es de  "+calificacion+". "+comentario+"</B></I></FONT></p>");
if (pregunta01.toLowerCase()=="b")
{
Answers.document.write("<p align=Left><B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#0000FF>Pregunta 1</B></FONT></B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#FF0000> - Respuesta correcta.</p>");
}
else
{
Answers.document.write("<p align=Left><B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#0000FF>Pregunta 1</B></FONT></B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#FF0000> - No es correcta. </p>");
}
if (pregunta02.toLowerCase()=="a")
{
Answers.document.write("<p align=Left><B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#0000FF>Pregunta 2</B></FONT></B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#FF0000> - Respuesta correcta.</p>");
}
else
{
Answers.document.write("<p align=Left><B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#0000FF>Pregunta 2</B></FONT></B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#FF0000> - No es correcta. </p>");
}
if (pregunta03.toLowerCase()=="b")
{
Answers.document.write("<p align=Left><B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#0000FF>Pregunta 3</B></FONT></B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#FF0000> - Respuesta correcta.</p>");
}
else
{
Answers.document.write("<p align=Left><B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#0000FF>Pregunta 3</B></FONT></B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#FF0000> - No es correcta. </p>");
}
if (pregunta04.toLowerCase()=="b")
{
Answers.document.write("<p align=Left><B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#0000FF>Pregunta 4</B></FONT></B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#FF0000> - Respuesta correcta.</p>");
}
else
{
Answers.document.write("<p align=Left><B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#0000FF>Pregunta 4</B></FONT></B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#FF0000> - No es correcta. </p>");
}
if (pregunta05.toLowerCase()=="c")
{
Answers.document.write("<p align=Left><B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#0000FF>Pregunta 5</B></FONT></B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#FF0000> - Respuesta correcta.</p>");
}
else
{
Answers.document.write("<p align=Left><B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#0000FF>Pregunta 5</B></FONT></B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#FF0000> - No es correcta</p>");
}
if (pregunta06.toLowerCase()=="c")
{
Answers.document.write("<p align=Left><B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#0000FF>Pregunta 6</B></FONT></B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#FF0000> - Respuesta correcta.</p>");
}
else
{
Answers.document.write("<p align=Left><B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#0000FF>Pregunta 6</B></FONT></B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#FF0000> - No es correcta. </p>");
}
if (pregunta07.toLowerCase()=="b")
{
Answers.document.write("<p align=Left><B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#0000FF>Pregunta 7</B></FONT></B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#FF0000> - Respuesta correcta.</p>");
}
else
{
Answers.document.write("<p align=Left><B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#0000FF>Pregunta 7</B></FONT></B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#FF0000> - No es correcta. </p>");
}
if (pregunta08.toLowerCase()=="a")
{
Answers.document.write("<p align=Left><B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#0000FF>Pregunta 8</B></FONT></B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#FF0000> - Respuesta correcta.</p>");
}
else
{
Answers.document.write("<p align=Left><B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#0000FF>Pregunta 8</B></FONT></B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#FF0000> - No es correcta. </p>");
}
if (pregunta09.toLowerCase()=="c")
{
Answers.document.write("<p align=Left><B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#0000FF>Pregunta 9</B></FONT></B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#FF0000> - Respuesta correcta.</p>");
}
else
{
Answers.document.write("<p align=Left><B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#0000FF>Pregunta 9</B></FONT></B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#FF0000> - No es correcta. </p>");
}
if (pregunta10.toLowerCase()=="b")
{
Answers.document.write("<p align=Left><B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#0000FF>Pregunta 10</B></FONT></B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#FF0000> - Respuesta correcta.</p>");
}
else
{
Answers.document.write("<p align=Left><B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#0000FF>Pregunta 10</B></FONT></B><FONT SIZE=2 FACE="+declaracion+"Times New Roman"+declaracion+" COLOR=#FF0000> - No es correcta. </p>");
}
Answers.document.write('<p align=center><form name="form2"><input type="button" value="Cerrar" name="Close1" ONCLICK="window.close()"></form></p>');
Answers.document.write('<p align=right><b><B><I><FONT SIZE=2 FACE="Times New Roman" COLOR=#333399><FONT SIZE=2><a href="http://www.reglasdeortografia.com/ortoindice.html" target="_blank">Consultar la página central</a></font></B></I></FONT></b></p>');}
