function checkarticles() { var x (x=0) if (document.forms[0].elements.txtDefSingMasc.value=="el") { } else { document.forms[0].elements.txtDefSingMasc.value="X"; x=x+1; } if (document.forms[0].elements.txtIndefSingMasc.value=="un") { } else { document.forms[0].elements.txtIndefSingMasc.value="X"; x=x+1; } if (document.forms[0].elements.txtDefSingFem.value=="la") { } else { document.forms[0].elements.txtDefSingFem.value="X"; x=x+1; } if (document.forms[0].elements.txtIndefSingFem.value=="una") { } else { document.forms[0].elements.txtIndefSingFem.value="X"; x=x+1; } if (document.forms[0].elements.txtDefPluralMasc.value=="los") { } else { document.forms[0].elements.txtDefPluralMasc.value="X"; x=x+1; } if (document.forms[0].elements.txtIndefPluralMasc.value=="unos") { } else { document.forms[0].elements.txtIndefPluralMasc.value="X"; x=x+1; } if (document.forms[0].elements.txtDefPluralFem.value=="las") { } else { document.forms[0].elements.txtDefPluralFem.value="X"; x=x+1; } if (document.forms[0].elements.txtIndefPluralFem.value=="unas") { } else { document.forms[0].elements.txtIndefPluralFem.value="X"; x=x+1; } document.forms[0].elements.counter.value=x; if (document.forms[0].elements.counter.value>0) { Merlin.speak("You have an incorrect answer. Please make corrections.") } else { Merlin.play("congratulate_2") Merlin.speak("Good job!") Merlin.play("restpose") } } function checkProfesor() { TTSModeSpanish(); if ((document.forms[0].elements.txtProfesoresDef.value.toLowerCase()=="el") && (document.forms[0].elements.txtProfesoresIndef.value.toLowerCase()=="un")) { Merlin.speak("Correcto.") } else { Merlin.speak("Incorrecto.") } } function TTSModeSpanish() { Merlin.TTSModeID="{2CE326E1-A935-11d1-B17B-0020AFED142E}"; } function TTSModeEnglish() { Merlin.TTSModeID="{CA141FD0-AC7F-11D1-97A3-006008273002}"; } function checkProfesor() { TTSModeSpanish(); if ((document.forms[0].elements.txtProfesoresDef.value.toLowerCase()=="el") && (document.forms[0].elements.txtProfesoresIndef.value.toLowerCase()=="un")) { Merlin.speak("Correcto.") } else { Merlin.speak("Incorrecto.") } }