/*
Use the following code as a template for creating a quiz with questions, answers, and scores 

var oQ; 
var oA; 
var oS; 

var oQuiz = new Quiz(); 

	oQuiz.SetQuestionNumberStyle();			// "1" or "A" or "a" or "." or ""
	oQuiz.SetQuestionNumberCssClass();			// CSS class name
	oQuiz.SetRequireAllGuesses();				// true or false 
	oQuiz.SetNeedAllGuessesCssClass();			// CSS class name
	oQuiz.SetNeedAllGuessesHTML();				// ex: "You must answer all questions." 
	oQuiz.SetScoreByPercentage();				// true or false (defaults to false)
	oQuiz.SetScoreCssClass("score");			// CSS class name
	
	// Repeat this indented block for each question 
	oQ = new Question(); 
		oQ.SetQuestionHTML();					// ex: "What is 2 + 2 ?" 
		oQ.SetQuestionCssClass();				// CSS class name 
		oQ.SetCorrectGuessHTML();				// ex: "Correct. Unless you are in Room 101 in the Ministry of Truth (with apologies to George Orwell)." 
		oQ.SetCorrectGuessCssClass();			// CSS class name 
		oQ.SetIncorrectGuessHTML();				// ex: "Incorrect. Practice your addition." 
		oQ.SetIncorrectGuessCssClass();			// CSS class name 
		oQ.SetQuestionType();					// "TF" or "MC" or "MS" :: TF = True/False; MC = Multiple Choice; MS = Multiple Selection 
		oQ.SetQuestionNumber();					// ex: 1 
		oQ.SetRequireAllOrNothing();			// true or false; determines whether Multiple Selection allows partial points for some but not all correct.
		oQ.SetAnswerNumberStyle();				// "1" or "A" or "a" or "." or ""
		oQ.SetAnswerNumberCssClass();			// CSS class name
		oQ.SetPossiblePoints();					// ex: 1
		
		// Repeat this indented block for each answer 
		oA = new Answer(); 
			oA.SetAnswerHTML();					// ex: "4" 
			oA.SetAnswerCssClass();				// CSS class name 
			oA.SetAnswerNumber();				// ex: 1 

			oA.SetPointsForCorrectGuess();		// defaults to 1; ex: 1 
			oA.SetCorrect();					// true or false (defaults to false)
			
			oQ.AddAnswer(oA);
			
		// Optional 
		oQ.RandomizeAnswers(); 
		
		oQuiz.AddQuestion(oQ); 
		
	//Repeat this indented block for each score range 
	oS = new Score(); 
		oS.SetScoreHTML();						// ex: "<b>Expert</b>: You really know your math!" 
		oS.SetMinScore();						// ex: 9 (for points) or 90 (for percent)
		
		oQuiz.AddScore(oS); 
		
	// Optional 
	oQuiz.RandomizeQuestions(); 
	
	// This line actually writes the functioning quiz to the document 
	oQuiz.Render();
*/

var oQ2; 
var oA2; 
var oS2; 

var oQuiz2 = new Quiz(); 
	oQuiz2.SetQuestionNumberStyle("1");
	oQuiz2.SetQuestionNumberCssClass("qnumber");
	oQuiz2.SetRequireAllGuesses(true);
	oQuiz2.SetNeedAllGuessesHTML("Please answer all questions first.");
	oQuiz2.SetNeedAllGuessesCssClass("requireall");
	oQuiz2.SetScoreByPercentage(true);
	oQuiz2.SetScoreCssClass("score");

	// Repeat this indented block for each question 
		
	oQ2 = new Question(); 
		oQ2.SetQuestionHTML("Hmong people came to America in pursuit of economic opportunities not available to them at home.");
		oQ2.SetQuestionCssClass("question");
		oQ2.SetIncorrectGuessHTML("Incorrect: Hmong people came to the U.S. fleeing persecution from the Vietnamese Communists for their involvement in the U.S. Secret War in Laos. Hmong soldiers put their lives at risk fighting for the United States and rescuing downed American pilots. Over 40,000 Hmong soldiers were killed, many were tortured and injured. Even today Hmong people face persecution and have to hide in the jungle of Laos without food and water.");	
		oQ2.SetIncorrectGuessCssClass("incorrect");
		oQ2.SetCorrectGuessHTML("Correct: Hmong people came to the U.S. fleeing persecution from the Vietnamese Communists for their involvement in the U.S. Secret War in Laos. Hmong soldiers put their lives at risk fighting for the United States and rescuing downed American pilots. Over 40,000 Hmong soldiers were killed, many were tortured and injured. Even today Hmong people face persecution and have to hide in the jungle of Laos without food and water.");
		oQ2.SetCorrectGuessCssClass("correct");

		oQ2.SetQuestionType("TF");
		oQ2.SetQuestionNumber(1);
		oQ2.SetAnswerNumberStyle("");
		oQ2.SetAnswerNumberCssClass("anumber");
		
		// Repeat this indented block for each answer 
		oA2 = new Answer(); 
			oA2.SetAnswerHTML("True");
			oA2.SetAnswerCssClass("answer");
			oA2.SetPointsForCorrectGuess(1);
			
			oQ2.AddAnswer(oA2);					
			
		oA2 = new Answer(); 
			oA2.SetAnswerHTML("False");
			oA2.SetAnswerCssClass("answer");
			oA2.SetPointsForCorrectGuess(1);
			oA2.SetCorrect(true);
			
			oQ2.AddAnswer(oA2);					
			// Optional 
		//oQ2.RandomizeAnswers(); 
		
		oQuiz2.AddQuestion(oQ2);


	oQ2 = new Question(); 
		oQ2.SetQuestionHTML("More Hmong Americans live in Minnesota than in any other state.");
		oQ2.SetQuestionCssClass("question");
		
		oQ2.SetIncorrectGuessHTML("Incorrect: California has more Hmong Americans than Minnesota does. The top 10 states for Hmong Americans according to the 2006 ACS were California (71,244), Minnesota (49,200), Wisconsin (38,949), Michigan (8,686), North Carolina (8,451), Colorado (3,875), Georgia (3,407), Washington (3,050), Oregon (2,729), and Florida (1,856).");
		oQ2.SetIncorrectGuessCssClass("incorrect");
		oQ2.SetCorrectGuessHTML("Correct: California has more Hmong Americans than Minnesota does. The top 10 states for Hmong Americans according to the 2006 ACS were California (71,244), Minnesota (49,200), Wisconsin (38,949), Michigan (8,686), North Carolina (8,451), Colorado (3,875), Georgia (3,407), Washington (3,050), Oregon (2,729), and Florida (1,856). ");
		oQ2.SetCorrectGuessCssClass("correct");
		oQ2.SetQuestionType("TF");
		oQ2.SetQuestionNumber(2);
		oQ2.SetAnswerNumberStyle("");
		oQ2.SetAnswerNumberCssClass("anumber");
		
		// Repeat this indented block for each answer 
		oA2 = new Answer(); 
			oA2.SetAnswerHTML("True");
			oA2.SetAnswerCssClass("answer");
			oA2.SetPointsForCorrectGuess(1);
			
			oQ2.AddAnswer(oA2);					
			
		oA2 = new Answer(); 
			oA2.SetAnswerHTML("False");
			oA2.SetAnswerCssClass("answer");
			oA2.SetPointsForCorrectGuess(1);
			oA2.SetCorrect(true);
			
			oQ2.AddAnswer(oA2);					




		// Optional 
		//oQ2.RandomizeAnswers(); 
		
		oQuiz2.AddQuestion(oQ2); 


oQ2 = new Question(); 
		oQ2.SetQuestionHTML("There are only about 200,000 Hmong living in the U.S.");
		oQ2.SetQuestionCssClass("question");
		oQ2.SetIncorrectGuessHTML("Correct: The total estimated Hmong population in the U.S. in 2006 was 209,866.");	
		oQ2.SetIncorrectGuessCssClass("correct");
		oQ2.SetCorrectGuessHTML("Incorrect: The total estimated Hmong population in the U.S. in 2006 was 209,866.");
		oQ2.SetCorrectGuessCssClass("incorrect");

		oQ2.SetQuestionType("TF");
		oQ2.SetQuestionNumber(3);
		oQ2.SetAnswerNumberStyle("");
		oQ2.SetAnswerNumberCssClass("anumber");
		
		// Repeat this indented block for each answer 
		oA2 = new Answer(); 
			oA2.SetAnswerHTML("True");
			oA2.SetAnswerCssClass("answer");
			oA2.SetPointsForCorrectGuess(1);
			
			oQ2.AddAnswer(oA2);					
			
		oA2 = new Answer(); 
			oA2.SetAnswerHTML("False");
			oA2.SetAnswerCssClass("answer");
			oA2.SetPointsForCorrectGuess(1);
			oA2.SetCorrect(true);
			
			oQ2.AddAnswer(oA2);					
			// Optional 
		//oQ2.RandomizeAnswers(); 
		
		oQuiz2.AddQuestion(oQ2);



oQ2 = new Question(); 
		oQ2.SetQuestionHTML("Most Hmong people living in the U.S. are young.");
		oQ2.SetQuestionCssClass("question");
		oQ2.SetIncorrectGuessHTML("Correct: According to the 2006 ACS, the median age of Hmong Americans is slightly older than 19. ");	
		oQ2.SetIncorrectGuessCssClass("correct");
		oQ2.SetCorrectGuessHTML("Incorrect: According to the 2006 ACS, the median age of Hmong Americans is slightly older than 19. ");
		oQ2.SetCorrectGuessCssClass("incorrect");

		oQ2.SetQuestionType("TF");
		oQ2.SetQuestionNumber(4);
		oQ2.SetAnswerNumberStyle("");
		oQ2.SetAnswerNumberCssClass("anumber");
		
		// Repeat this indented block for each answer 
		oA2 = new Answer(); 
			oA2.SetAnswerHTML("True");
			oA2.SetAnswerCssClass("answer");
			oA2.SetPointsForCorrectGuess(1);
			
			oQ2.AddAnswer(oA2);					
			
		oA2 = new Answer(); 
			oA2.SetAnswerHTML("False");
			oA2.SetAnswerCssClass("answer");
			oA2.SetPointsForCorrectGuess(1);
			oA2.SetCorrect(true);
			
			oQ2.AddAnswer(oA2);					
			// Optional 
		//oQ2.RandomizeAnswers(); 
		
		oQuiz2.AddQuestion(oQ2);






oQ2 = new Question(); 
		oQ2.SetQuestionHTML("Many Hmong families frequently maintain their language.");
		oQ2.SetQuestionCssClass("question");
		oQ2.SetIncorrectGuessHTML("Correct: More than 94% of Hmong Americans reported speaking a language other than English at home. ");	
		oQ2.SetIncorrectGuessCssClass("correct");
		oQ2.SetCorrectGuessHTML("Incorrect: More than 94% of Hmong Americans reported speaking a language other than English at home. ");
		oQ2.SetCorrectGuessCssClass("incorrect");

		oQ2.SetQuestionType("TF");
		oQ2.SetQuestionNumber(5);
		oQ2.SetAnswerNumberStyle("");
		oQ2.SetAnswerNumberCssClass("anumber");
		
		// Repeat this indented block for each answer 
		oA2 = new Answer(); 
			oA2.SetAnswerHTML("True");
			oA2.SetAnswerCssClass("answer");
			oA2.SetPointsForCorrectGuess(1);
			
			oQ2.AddAnswer(oA2);					
			
		oA2 = new Answer(); 
			oA2.SetAnswerHTML("False");
			oA2.SetAnswerCssClass("answer");
			oA2.SetPointsForCorrectGuess(1);
			oA2.SetCorrect(true);
			
			oQ2.AddAnswer(oA2);					
			// Optional 
		//oQ2.RandomizeAnswers(); 
		
		oQuiz2.AddQuestion(oQ2);



oQ2 = new Question(); 
		oQ2.SetQuestionHTML("On average Hmong Americans are poorer than other Americans.");
		oQ2.SetQuestionCssClass("question");
		oQ2.SetIncorrectGuessHTML("Correct: The poverty rate among Hmong-American families is 26%, compared to the U.S. average of 9.8%. ");	
		oQ2.SetIncorrectGuessCssClass("correct");
		oQ2.SetCorrectGuessHTML("Incorrect: The poverty rate among Hmong-American families is 26%, compared to the U.S. average of 9.8%. ");
		oQ2.SetCorrectGuessCssClass("incorrect");

		oQ2.SetQuestionType("TF");
		oQ2.SetQuestionNumber(6);
		oQ2.SetAnswerNumberStyle("");
		oQ2.SetAnswerNumberCssClass("anumber");
		
		// Repeat this indented block for each answer 
		oA2 = new Answer(); 
			oA2.SetAnswerHTML("True");
			oA2.SetAnswerCssClass("answer");
			oA2.SetPointsForCorrectGuess(1);
			
			oQ2.AddAnswer(oA2);					
			
		oA2 = new Answer(); 
			oA2.SetAnswerHTML("False");
			oA2.SetAnswerCssClass("answer");
			oA2.SetPointsForCorrectGuess(1);
			oA2.SetCorrect(true);
			
			oQ2.AddAnswer(oA2);					
			// Optional 
		//oQ2.RandomizeAnswers(); 
		
		oQuiz2.AddQuestion(oQ2);







// This is optional 
oQuiz2.RandomizeQuestions();		

