avatar
Script 20 câu hỏi trắc nghiệm

vodacquangdk 1,203 27th Jul, 2019

JAVASCRIPT 37.70 KB
                                           
                         <script id="clientEventHandlersJS" language="javascript">
	
	function button1_onclick() {
	
	var correct,Total;
	
	Total=0;
	
	correct= 0;
	
	oElement = document.getElementById("choice1A");
	if (oElement) { 
	Total=Total+1
	
	document.getElementById("choice1A").disabled=true;
	
	if ((document.getElementById("choice1A").value==document.getElementById("text1").value)&&(document.getElementById("choice1A").checked)) correct=correct+1;
	
	document.getElementById("choice1B").disabled=true;
	
	if ((document.getElementById("choice1B").value==document.getElementById("text1").value)&&(document.getElementById("choice1B").checked)) correct=correct+1;
	
	document.getElementById("choice1C").disabled=true;
	
	if ((document.getElementById("choice1C").value==document.getElementById("text1").value)&&(document.getElementById("choice1C").checked)) correct=correct+1;
	
	document.getElementById("choice1D").disabled=true;
	
	if ((document.getElementById("choice1D").value==document.getElementById("text1").value)&&(document.getElementById("choice1D").checked)) correct=correct+1;
	
	if ((document.getElementById("choice1A").value==document.getElementById("text1").value)) document.getElementById("C1A").style.color='red';
	
	if ((document.getElementById("choice1B").value==document.getElementById("text1").value)) document.getElementById("C1B").style.color='red';
	
	if ((document.getElementById("choice1C").value==document.getElementById("text1").value)) document.getElementById("C1C").style.color='red';
	
	if ((document.getElementById("choice1D").value==document.getElementById("text1").value)) document.getElementById("C1D").style.color='red';
	}
	
	oElement = document.getElementById("choice2A");
	if (oElement) {
	Total=Total+1
	document.getElementById("choice2A").disabled=true;
	
	if ((document.getElementById("choice2A").value==document.getElementById("text2").value)&&(document.getElementById("choice2A").checked)) correct=correct+1;
	
	document.getElementById("choice2B").disabled=true;
	
	if ((document.getElementById("choice2B").value==document.getElementById("text2").value)&&(document.getElementById("choice2B").checked)) correct=correct+1;
	
	document.getElementById("choice2C").disabled=true;
	
	if ((document.getElementById("choice2C").value==document.getElementById("text2").value)&&(document.getElementById("choice2C").checked)) correct=correct+1;
	
	document.getElementById("choice2D").disabled=true;
	
	if ((document.getElementById("choice2D").value==document.getElementById("text2").value)&&(document.getElementById("choice2D").checked)) correct=correct+1;
	
	if ((document.getElementById("choice2A").value==document.getElementById("text2").value)) document.getElementById("C2A").style.color='red';
	
	if ((document.getElementById("choice2B").value==document.getElementById("text2").value)) document.getElementById("C2B").style.color='red';
	
	if ((document.getElementById("choice2C").value==document.getElementById("text2").value)) document.getElementById("C2C").style.color='red';
	
	if ((document.getElementById("choice2D").value==document.getElementById("text2").value)) document.getElementById("C2D").style.color='red';
	}
	
	oElement = document.getElementById("choice3A");
	if (oElement) {
	Total=Total+1
	document.getElementById("choice3A").disabled=true;
	
	if ((document.getElementById("choice3A").value==document.getElementById("text3").value)&&(document.getElementById("choice3A").checked)) correct=correct+1;
	
	document.getElementById("choice3B").disabled=true;
	
	if ((document.getElementById("choice3B").value==document.getElementById("text3").value)&&(document.getElementById("choice3B").checked)) correct=correct+1;
	
	document.getElementById("choice3C").disabled=true;
	
	if ((document.getElementById("choice3C").value==document.getElementById("text3").value)&&(document.getElementById("choice3C").checked)) correct=correct+1;
	
	document.getElementById("choice3D").disabled=true;
	
	if ((document.getElementById("choice3D").value==document.getElementById("text3").value)&&(document.getElementById("choice3D").checked)) correct=correct+1;
	
	if ((document.getElementById("choice3A").value==document.getElementById("text3").value)) document.getElementById("C3A").style.color='red';
	
	if ((document.getElementById("choice3B").value==document.getElementById("text3").value)) document.getElementById("C3B").style.color='red';
	
	if ((document.getElementById("choice3C").value==document.getElementById("text3").value)) document.getElementById("C3C").style.color='red';
	
	if ((document.getElementById("choice3D").value==document.getElementById("text3").value)) document.getElementById("C3D").style.color='red';
	}
	
	oElement = document.getElementById("choice4A");
	if (oElement) {
	Total=Total+1
	document.getElementById("choice4A").disabled=true;
	
	if ((document.getElementById("choice4A").value==document.getElementById("text4").value)&&(document.getElementById("choice4A").checked)) correct=correct+1;
	
	document.getElementById("choice4B").disabled=true;
	
	if ((document.getElementById("choice4B").value==document.getElementById("text4").value)&&(document.getElementById("choice4B").checked)) correct=correct+1;
	
	document.getElementById("choice4C").disabled=true;
	
	if ((document.getElementById("choice4C").value==document.getElementById("text4").value)&&(document.getElementById("choice4C").checked)) correct=correct+1;
	
	document.getElementById("choice4D").disabled=true;
	
	if ((document.getElementById("choice4D").value==document.getElementById("text4").value)&&(document.getElementById("choice4D").checked)) correct=correct+1;
	
	if ((document.getElementById("choice4A").value==document.getElementById("text4").value)) document.getElementById("C4A").style.color='red';
	
	if ((document.getElementById("choice4B").value==document.getElementById("text4").value)) document.getElementById("C4B").style.color='red';
	
	if ((document.getElementById("choice4C").value==document.getElementById("text4").value)) document.getElementById("C4C").style.color='red';
	
	if ((document.getElementById("choice4D").value==document.getElementById("text4").value)) document.getElementById("C4D").style.color='red';
	}
	
	oElement = document.getElementById("choice5A");
	if (oElement) {
	
	Total=Total+1
	document.getElementById("choice5A").disabled=true;
	
	if ((document.getElementById("choice5A").value==document.getElementById("text5").value)&&(document.getElementById("choice5A").checked)) correct=correct+1;
	
	document.getElementById("choice5B").disabled=true;
	
	if ((document.getElementById("choice5B").value==document.getElementById("text5").value)&&(document.getElementById("choice5B").checked)) correct=correct+1;
	
	document.getElementById("choice5C").disabled=true;
	
	if ((document.getElementById("choice5C").value==document.getElementById("text5").value)&&(document.getElementById("choice5C").checked)) correct=correct+1;
	
	document.getElementById("choice5D").disabled=true;
	
	if ((document.getElementById("choice5D").value==document.getElementById("text5").value)&&(document.getElementById("choice5D").checked)) correct=correct+1;
	
	if ((document.getElementById("choice5A").value==document.getElementById("text5").value)) document.getElementById("C5A").style.color='red';
	
	if ((document.getElementById("choice5B").value==document.getElementById("text5").value)) document.getElementById("C5B").style.color='red';
	
	if ((document.getElementById("choice5C").value==document.getElementById("text5").value)) document.getElementById("C5C").style.color='red';
	
	if ((document.getElementById("choice5D").value==document.getElementById("text5").value)) document.getElementById("C5D").style.color='red';
	
	}
	
	oElement = document.getElementById("choice6A");
	if (oElement) {
	Total=Total+1
	document.getElementById("choice6A").disabled=true;
	
	if ((document.getElementById("choice6A").value==document.getElementById("text6").value)&&(document.getElementById("choice6A").checked)) correct=correct+1;
	
	document.getElementById("choice6B").disabled=true;
	
	if ((document.getElementById("choice6B").value==document.getElementById("text6").value)&&(document.getElementById("choice6B").checked)) correct=correct+1;
	
	document.getElementById("choice6C").disabled=true;
	
	if ((document.getElementById("choice6C").value==document.getElementById("text6").value)&&(document.getElementById("choice6C").checked)) correct=correct+1;
	
	document.getElementById("choice6D").disabled=true;
	
	if ((document.getElementById("choice6D").value==document.getElementById("text6").value)&&(document.getElementById("choice6D").checked)) correct=correct+1;
	
	if ((document.getElementById("choice6A").value==document.getElementById("text6").value)) document.getElementById("C6A").style.color='red';
	
	if ((document.getElementById("choice6B").value==document.getElementById("text6").value)) document.getElementById("C6B").style.color='red';
	
	if ((document.getElementById("choice6C").value==document.getElementById("text6").value)) document.getElementById("C6C").style.color='red';
	
	if ((document.getElementById("choice6D").value==document.getElementById("text6").value)) document.getElementById("C6D").style.color='red';
	}
	
	oElement = document.getElementById("choice7A");
	if (oElement) {
	Total=Total+1
	document.getElementById("choice7A").disabled=true;
	
	if ((document.getElementById("choice7A").value==document.getElementById("text7").value)&&(document.getElementById("choice7A").checked)) correct=correct+1;
	
	document.getElementById("choice7B").disabled=true;
	
	if ((document.getElementById("choice7B").value==document.getElementById("text7").value)&&(document.getElementById("choice7B").checked)) correct=correct+1;
	
	document.getElementById("choice7C").disabled=true;
	
	if ((document.getElementById("choice7C").value==document.getElementById("text7").value)&&(document.getElementById("choice7C").checked)) correct=correct+1;
	
	document.getElementById("choice7D").disabled=true;
	
	if ((document.getElementById("choice7D").value==document.getElementById("text7").value)&&(document.getElementById("choice7D").checked)) correct=correct+1;
	
	if ((document.getElementById("choice7A").value==document.getElementById("text7").value)) document.getElementById("C7A").style.color='red';
	
	if ((document.getElementById("choice7B").value==document.getElementById("text7").value)) document.getElementById("C7B").style.color='red';
	
	if ((document.getElementById("choice7C").value==document.getElementById("text7").value)) document.getElementById("C7C").style.color='red';
	
	if ((document.getElementById("choice7D").value==document.getElementById("text7").value)) document.getElementById("C7D").style.color='red';
	}
	
	oElement = document.getElementById("choice8A");
	if (oElement) {
	Total=Total+1
	document.getElementById("choice8A").disabled=true;
	
	if ((document.getElementById("choice8A").value==document.getElementById("text8").value)&&(document.getElementById("choice8A").checked)) correct=correct+1;
	
	document.getElementById("choice8B").disabled=true;
	
	if ((document.getElementById("choice8B").value==document.getElementById("text8").value)&&(document.getElementById("choice8B").checked)) correct=correct+1;
	
	document.getElementById("choice8C").disabled=true;
	
	if ((document.getElementById("choice8C").value==document.getElementById("text8").value)&&(document.getElementById("choice8C").checked)) correct=correct+1;
	
	document.getElementById("choice8D").disabled=true;
	
	if ((document.getElementById("choice8D").value==document.getElementById("text8").value)&&(document.getElementById("choice8D").checked)) correct=correct+1;
	
	if ((document.getElementById("choice8A").value==document.getElementById("text8").value)) document.getElementById("C8A").style.color='red';
	
	if ((document.getElementById("choice8B").value==document.getElementById("text8").value)) document.getElementById("C8B").style.color='red';
	
	if ((document.getElementById("choice8C").value==document.getElementById("text8").value)) document.getElementById("C8C").style.color='red';
	
	if ((document.getElementById("choice8D").value==document.getElementById("text8").value)) document.getElementById("C8D").style.color='red';
	}
	
	oElement = document.getElementById("choice9A");
	if (oElement) {
	Total=Total+1
	document.getElementById("choice9A").disabled=true;
	
	if ((document.getElementById("choice9A").value==document.getElementById("text9").value)&&(document.getElementById("choice9A").checked)) correct=correct+1;
	
	document.getElementById("choice9B").disabled=true;
	
	if ((document.getElementById("choice9B").value==document.getElementById("text9").value)&&(document.getElementById("choice9B").checked)) correct=correct+1;
	
	document.getElementById("choice9C").disabled=true;
	
	if ((document.getElementById("choice9C").value==document.getElementById("text9").value)&&(document.getElementById("choice9C").checked)) correct=correct+1;
	
	document.getElementById("choice9D").disabled=true;
	
	if ((document.getElementById("choice9D").value==document.getElementById("text9").value)&&(document.getElementById("choice9D").checked)) correct=correct+1;
	
	if ((document.getElementById("choice9A").value==document.getElementById("text9").value)) document.getElementById("C9A").style.color='red';
	
	if ((document.getElementById("choice9B").value==document.getElementById("text9").value)) document.getElementById("C9B").style.color='red';
	
	if ((document.getElementById("choice9C").value==document.getElementById("text9").value)) document.getElementById("C9C").style.color='red';
	
	if ((document.getElementById("choice9D").value==document.getElementById("text9").value)) document.getElementById("C9D").style.color='red';
	}
	
	oElement = document.getElementById("choice10A");
	if (oElement) {
	Total=Total+1
	document.getElementById("choice10A").disabled=true;
	
	if ((document.getElementById("choice10A").value==document.getElementById("text10").value)&&(document.getElementById("choice10A").checked)) correct=correct+1;
	
	document.getElementById("choice10B").disabled=true;
	
	if ((document.getElementById("choice10B").value==document.getElementById("text10").value)&&(document.getElementById("choice10B").checked)) correct=correct+1;
	
	document.getElementById("choice10C").disabled=true;
	
	if ((document.getElementById("choice10C").value==document.getElementById("text10").value)&&(document.getElementById("choice10C").checked)) correct=correct+1;
	
	document.getElementById("choice10D").disabled=true;
	
	if ((document.getElementById("choice10D").value==document.getElementById("text10").value)&&(document.getElementById("choice10D").checked)) correct=correct+1;
	
	if ((document.getElementById("choice10A").value==document.getElementById("text10").value)) document.getElementById("C10A").style.color='red';
	
	if ((document.getElementById("choice10B").value==document.getElementById("text10").value)) document.getElementById("C10B").style.color='red';
	
	if ((document.getElementById("choice10C").value==document.getElementById("text10").value)) document.getElementById("C10C").style.color='red';
	
	if ((document.getElementById("choice10D").value==document.getElementById("text10").value)) document.getElementById("C10D").style.color='red';
	}
	
	oElement = document.getElementById("choice11A");
	if (oElement) {
	Total=Total+1
	document.getElementById("choice11A").disabled=true;
	
	if ((document.getElementById("choice11A").value==document.getElementById("text11").value)&&(document.getElementById("choice11A").checked)) correct=correct+1;
	
	document.getElementById("choice11B").disabled=true;
	
	if ((document.getElementById("choice11B").value==document.getElementById("text11").value)&&(document.getElementById("choice11B").checked)) correct=correct+1;
	
	document.getElementById("choice11C").disabled=true;
	
	if ((document.getElementById("choice11C").value==document.getElementById("text11").value)&&(document.getElementById("choice11C").checked)) correct=correct+1;
	
	document.getElementById("choice11D").disabled=true;
	
	if ((document.getElementById("choice11D").value==document.getElementById("text11").value)&&(document.getElementById("choice11D").checked)) correct=correct+1;
	
	if ((document.getElementById("choice11A").value==document.getElementById("text11").value)) document.getElementById("C11A").style.color='red';
	
	if ((document.getElementById("choice11B").value==document.getElementById("text11").value)) document.getElementById("C11B").style.color='red';
	
	if ((document.getElementById("choice11C").value==document.getElementById("text11").value)) document.getElementById("C11C").style.color='red';
	
	if ((document.getElementById("choice11D").value==document.getElementById("text11").value)) document.getElementById("C11D").style.color='red';
	}
	
	oElement = document.getElementById("choice12A");
	if (oElement) {
	Total=Total+1
	document.getElementById("choice12A").disabled=true;
	
	if ((document.getElementById("choice12A").value==document.getElementById("text12").value)&&(document.getElementById("choice12A").checked)) correct=correct+1;
	
	document.getElementById("choice12B").disabled=true;
	
	if ((document.getElementById("choice12B").value==document.getElementById("text12").value)&&(document.getElementById("choice12B").checked)) correct=correct+1;
	
	document.getElementById("choice12C").disabled=true;
	
	if ((document.getElementById("choice12C").value==document.getElementById("text12").value)&&(document.getElementById("choice12C").checked)) correct=correct+1;
	
	document.getElementById("choice12D").disabled=true;
	
	if ((document.getElementById("choice12D").value==document.getElementById("text12").value)&&(document.getElementById("choice12D").checked)) correct=correct+1;
	
	if ((document.getElementById("choice12A").value==document.getElementById("text12").value)) document.getElementById("C12A").style.color='red';
	
	if ((document.getElementById("choice12B").value==document.getElementById("text12").value)) document.getElementById("C12B").style.color='red';
	
	if ((document.getElementById("choice12C").value==document.getElementById("text12").value)) document.getElementById("C12C").style.color='red';
	
	if ((document.getElementById("choice12D").value==document.getElementById("text12").value)) document.getElementById("C12D").style.color='red';
	}
	
	oElement = document.getElementById("choice13A");
	if (oElement) {
	Total=Total+1
	document.getElementById("choice13A").disabled=true;
	
	if ((document.getElementById("choice13A").value==document.getElementById("text13").value)&&(document.getElementById("choice13A").checked)) correct=correct+1;
	
	document.getElementById("choice13B").disabled=true;
	
	if ((document.getElementById("choice13B").value==document.getElementById("text13").value)&&(document.getElementById("choice13B").checked)) correct=correct+1;
	
	document.getElementById("choice13C").disabled=true;
	
	if ((document.getElementById("choice13C").value==document.getElementById("text13").value)&&(document.getElementById("choice13C").checked)) correct=correct+1;
	
	document.getElementById("choice13D").disabled=true;
	
	if ((document.getElementById("choice13D").value==document.getElementById("text13").value)&&(document.getElementById("choice13D").checked)) correct=correct+1;
	
	if ((document.getElementById("choice13A").value==document.getElementById("text13").value)) document.getElementById("C13A").style.color='red';
	
	if ((document.getElementById("choice13B").value==document.getElementById("text13").value)) document.getElementById("C13B").style.color='red';
	
	if ((document.getElementById("choice13C").value==document.getElementById("text13").value)) document.getElementById("C13C").style.color='red';
	
	if ((document.getElementById("choice13D").value==document.getElementById("text13").value)) document.getElementById("C13D").style.color='red';
	}
	
	oElement = document.getElementById("choice14A");
	if (oElement) {
	Total=Total+1
	document.getElementById("choice14A").disabled=true;
	
	if ((document.getElementById("choice14A").value==document.getElementById("text14").value)&&(document.getElementById("choice14A").checked)) correct=correct+1;
	
	document.getElementById("choice14B").disabled=true;
	
	if ((document.getElementById("choice14B").value==document.getElementById("text14").value)&&(document.getElementById("choice14B").checked)) correct=correct+1;
	
	document.getElementById("choice14C").disabled=true;
	
	if ((document.getElementById("choice14C").value==document.getElementById("text14").value)&&(document.getElementById("choice14C").checked)) correct=correct+1;
	
	document.getElementById("choice14D").disabled=true;
	
	if ((document.getElementById("choice14D").value==document.getElementById("text14").value)&&(document.getElementById("choice14D").checked)) correct=correct+1;
	
	if ((document.getElementById("choice14A").value==document.getElementById("text14").value)) document.getElementById("C14A").style.color='red';
	
	if ((document.getElementById("choice14B").value==document.getElementById("text14").value)) document.getElementById("C14B").style.color='red';
	
	if ((document.getElementById("choice14C").value==document.getElementById("text14").value)) document.getElementById("C14C").style.color='red';
	
	if ((document.getElementById("choice14D").value==document.getElementById("text14").value)) document.getElementById("C14D").style.color='red';
	}
	
	oElement = document.getElementById("choice15A");
	if (oElement) {
	Total=Total+1
	document.getElementById("choice15A").disabled=true;
	
	if ((document.getElementById("choice15A").value==document.getElementById("text15").value)&&(document.getElementById("choice15A").checked)) correct=correct+1;
	
	document.getElementById("choice15B").disabled=true;
	
	if ((document.getElementById("choice15B").value==document.getElementById("text15").value)&&(document.getElementById("choice15B").checked)) correct=correct+1;
	
	document.getElementById("choice15C").disabled=true;
	
	if ((document.getElementById("choice15C").value==document.getElementById("text15").value)&&(document.getElementById("choice15C").checked)) correct=correct+1;
	
	document.getElementById("choice15D").disabled=true;
	
	if ((document.getElementById("choice15D").value==document.getElementById("text15").value)&&(document.getElementById("choice15D").checked)) correct=correct+1;
	
	if ((document.getElementById("choice15A").value==document.getElementById("text15").value)) document.getElementById("C15A").style.color='red';
	
	if ((document.getElementById("choice15B").value==document.getElementById("text15").value)) document.getElementById("C15B").style.color='red';
	
	if ((document.getElementById("choice15C").value==document.getElementById("text15").value)) document.getElementById("C15C").style.color='red';
	
	if ((document.getElementById("choice15D").value==document.getElementById("text15").value)) document.getElementById("C15D").style.color='red';
	}
	
	oElement = document.getElementById("choice16A");
	if (oElement) {
	Total=Total+1
	document.getElementById("choice16A").disabled=true;
	
	if ((document.getElementById("choice16A").value==document.getElementById("text16").value)&&(document.getElementById("choice16A").checked)) correct=correct+1;
	
	document.getElementById("choice16B").disabled=true;
	
	if ((document.getElementById("choice16B").value==document.getElementById("text16").value)&&(document.getElementById("choice16B").checked)) correct=correct+1;
	
	document.getElementById("choice16C").disabled=true;
	
	if ((document.getElementById("choice16C").value==document.getElementById("text16").value)&&(document.getElementById("choice16C").checked)) correct=correct+1;
	
	document.getElementById("choice16D").disabled=true;
	
	if ((document.getElementById("choice16D").value==document.getElementById("text16").value)&&(document.getElementById("choice16D").checked)) correct=correct+1;
	
	if ((document.getElementById("choice16A").value==document.getElementById("text16").value)) document.getElementById("C16A").style.color='red';
	
	if ((document.getElementById("choice16B").value==document.getElementById("text16").value)) document.getElementById("C16B").style.color='red';
	
	if ((document.getElementById("choice16C").value==document.getElementById("text16").value)) document.getElementById("C16C").style.color='red';
	
	if ((document.getElementById("choice16D").value==document.getElementById("text16").value)) document.getElementById("C16D").style.color='red';
	}
	
	oElement = document.getElementById("choice17A");
	if (oElement) {
	Total=Total+1
	document.getElementById("choice17A").disabled=true;
	
	if ((document.getElementById("choice17A").value==document.getElementById("text17").value)&&(document.getElementById("choice17A").checked)) correct=correct+1;
	
	document.getElementById("choice17B").disabled=true;
	
	if ((document.getElementById("choice17B").value==document.getElementById("text17").value)&&(document.getElementById("choice17B").checked)) correct=correct+1;
	
	document.getElementById("choice17C").disabled=true;
	
	if ((document.getElementById("choice17C").value==document.getElementById("text17").value)&&(document.getElementById("choice17C").checked)) correct=correct+1;
	
	document.getElementById("choice17D").disabled=true;
	
	if ((document.getElementById("choice17D").value==document.getElementById("text17").value)&&(document.getElementById("choice17D").checked)) correct=correct+1;
	
	if ((document.getElementById("choice17A").value==document.getElementById("text17").value)) document.getElementById("C17A").style.color='red';
	
	if ((document.getElementById("choice17B").value==document.getElementById("text17").value)) document.getElementById("C17B").style.color='red';
	
	if ((document.getElementById("choice17C").value==document.getElementById("text17").value)) document.getElementById("C17C").style.color='red';
	
	if ((document.getElementById("choice17D").value==document.getElementById("text17").value)) document.getElementById("C17D").style.color='red';
	}
	
	oElement = document.getElementById("choice18A");
	if (oElement) {
	Total=Total+1
	document.getElementById("choice18A").disabled=true;
	
	if ((document.getElementById("choice18A").value==document.getElementById("text18").value)&&(document.getElementById("choice18A").checked)) correct=correct+1;
	
	document.getElementById("choice18B").disabled=true;
	
	if ((document.getElementById("choice18B").value==document.getElementById("text18").value)&&(document.getElementById("choice18B").checked)) correct=correct+1;
	
	document.getElementById("choice18C").disabled=true;
	
	if ((document.getElementById("choice18C").value==document.getElementById("text18").value)&&(document.getElementById("choice18C").checked)) correct=correct+1;
	
	document.getElementById("choice18D").disabled=true;
	
	if ((document.getElementById("choice18D").value==document.getElementById("text18").value)&&(document.getElementById("choice18D").checked)) correct=correct+1;
	
	if ((document.getElementById("choice18A").value==document.getElementById("text18").value)) document.getElementById("C18A").style.color='red';
	
	if ((document.getElementById("choice18B").value==document.getElementById("text18").value)) document.getElementById("C18B").style.color='red';
	
	if ((document.getElementById("choice18C").value==document.getElementById("text18").value)) document.getElementById("C18C").style.color='red';
	
	if ((document.getElementById("choice18D").value==document.getElementById("text18").value)) document.getElementById("C18D").style.color='red';
	}
	
	oElement = document.getElementById("choice19A");
	if (oElement) {
	Total=Total+1
	document.getElementById("choice19A").disabled=true;
	
	if ((document.getElementById("choice19A").value==document.getElementById("text19").value)&&(document.getElementById("choice19A").checked)) correct=correct+1;
	
	document.getElementById("choice19B").disabled=true;
	
	if ((document.getElementById("choice19B").value==document.getElementById("text19").value)&&(document.getElementById("choice19B").checked)) correct=correct+1;
	
	document.getElementById("choice19C").disabled=true;
	
	if ((document.getElementById("choice19C").value==document.getElementById("text19").value)&&(document.getElementById("choice19C").checked)) correct=correct+1;
	
	document.getElementById("choice19D").disabled=true;
	
	if ((document.getElementById("choice19D").value==document.getElementById("text19").value)&&(document.getElementById("choice19D").checked)) correct=correct+1;
	
	if ((document.getElementById("choice19A").value==document.getElementById("text19").value)) document.getElementById("C19A").style.color='red';
	
	if ((document.getElementById("choice19B").value==document.getElementById("text19").value)) document.getElementById("C19B").style.color='red';
	
	if ((document.getElementById("choice19C").value==document.getElementById("text19").value)) document.getElementById("C19C").style.color='red';
	
	if ((document.getElementById("choice19D").value==document.getElementById("text19").value)) document.getElementById("C19D").style.color='red';
	}
	
	oElement = document.getElementById("choice20A");
	if (oElement) {
	Total=Total+1
	document.getElementById("choice20A").disabled=true;
	
	if ((document.getElementById("choice20A").value==document.getElementById("text20").value)&&(document.getElementById("choice20A").checked)) correct=correct+1;
	
	document.getElementById("choice20B").disabled=true;
	
	if ((document.getElementById("choice20B").value==document.getElementById("text20").value)&&(document.getElementById("choice20B").checked)) correct=correct+1;
	
	document.getElementById("choice20C").disabled=true;
	
	if ((document.getElementById("choice20C").value==document.getElementById("text20").value)&&(document.getElementById("choice20C").checked)) correct=correct+1;
	
	document.getElementById("choice20D").disabled=true;
	
	if ((document.getElementById("choice20D").value==document.getElementById("text20").value)&&(document.getElementById("choice20D").checked)) correct=correct+1;
	
	if ((document.getElementById("choice20A").value==document.getElementById("text20").value)) document.getElementById("C20A").style.color='red';
	
	if ((document.getElementById("choice20B").value==document.getElementById("text20").value)) document.getElementById("C20B").style.color='red';
	
	if ((document.getElementById("choice20C").value==document.getElementById("text20").value)) document.getElementById("C20C").style.color='red';
	
	if ((document.getElementById("choice20D").value==document.getElementById("text20").value)) document.getElementById("C20D").style.color='red';
	}
	
	document.getElementById("button1").disabled=true;
	
	alert(" Tra loi dung " + correct + " cau trong tong so " + Total + " cau.");
	}
	
	</script>
                      
                                       
To share this paste please copy this url and send to your friends
RAW Paste Data

Comments

Authentication required

You must log in to post a comment.

Log in
    There are no comments yet.