/*
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("United States is a destination for over 50% of worldwide migrants annually.");
		oQ2.SetQuestionCssClass("question");
		oQ2.SetIncorrectGuessHTML("Incorrect: Only 1% of over 100 million migrants worldwide come to the U.S.");	
		oQ2.SetIncorrectGuessCssClass("incorrect");
		oQ2.SetCorrectGuessHTML("Correct: Only 1% of over 100 million migrants worldwide come to the U.S.");
		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("Immigration to Minnesota has slowed in the last decade.");
		oQ2.SetQuestionCssClass("question");
		
		oQ2.SetIncorrectGuessHTML("Incorrect: Since 1990, more than 250,000 minority residents, many of them immigrants, have settled in Minnesota. ");
		oQ2.SetIncorrectGuessCssClass("incorrect");
		oQ2.SetCorrectGuessHTML("Correct: Since 1990, more than 250,000 minority residents, many of them immigrants, have settled in Minnesota.  ");
		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("The largest wave of immigration to Minnesota is taking place now.");
		oQ2.SetQuestionCssClass("question");
		oQ2.SetIncorrectGuessHTML("Incorrect: At the turn of the 20th century, Minnesota became a significant immigration state, peaking in 1900. At that time, 28.9% of Minnesota's population was foreign born compared to 15% nationwide. More than 60% of the immigrants came from Sweden, Norway, and Germany.");	
		oQ2.SetIncorrectGuessCssClass("incorrect");
		oQ2.SetCorrectGuessHTML("Correct: At the turn of the 20th century, Minnesota became a significant immigration state, peaking in 1900. At that time, 28.9% of Minnesota's population was foreign born compared to 15% nationwide. More than 60% of the immigrants came from Sweden, Norway, and Germany.");
		oQ2.SetCorrectGuessCssClass("correct");

		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("Immigrants pay more in taxes than they receive in benefits.");
		oQ2.SetQuestionCssClass("question");
		oQ2.SetIncorrectGuessHTML("Correct: Immigrants as a whole pay more in taxes than they receive in benefits. According to the Urban Institute's study, legal and illegal immigrants combined pay approximately $70.3 billion per year in taxes and receive $42.9 billion in services such as education and public assistance. Findings in a 1998 study by Cato Institute and the National Immigration Forum show that over time most immigrant families will pay $80,000 more in taxes than they receive in benefits. The Study also demonstrated that the average immigrant pays $1800 more in taxes than s/he receives in benefits. ");	
		oQ2.SetIncorrectGuessCssClass("correct");
		oQ2.SetCorrectGuessHTML("Incorrect: Immigrants as a whole pay more in taxes than they receive in benefits. According to the Urban Institute's study ,legal and illegal immigrants combined pay approximately $70.3 billion per year in taxes and receive $42.9 billion in services such as education and public assistance. Findings in a 1998 study by Cato Institute and the National Immigration Forum show that over time most immigrant families will pay $80,000 more in taxes than they receive in benefits. The Study also demonstrated that the average immigrant pays $1800 more in taxes than s/he receives in benefits. ");
		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("More immigrants come to the U.S. legally than illegally.");
		oQ2.SetQuestionCssClass("question");
		oQ2.SetIncorrectGuessHTML("Correct: Each year, approximately 300,000 newcomers enter the U.S. illegally or overstay their visas. Total legal immigration to the U.S. in recent years has averaged about 900,000 per year. (U.S. General Accounting Office, 1993; Urban Institute, 1994). ");	
		oQ2.SetIncorrectGuessCssClass("correct");
		oQ2.SetCorrectGuessHTML("Incorrect: Each year, approximately 300,000 newcomers enter the U.S. illegally or overstay their visas. Total legal immigration to the U.S. in recent years has averaged about 900,000 per year. (U.S. General Accounting Office, 1993; Urban Institute, 1994). ");
		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("30% of the total U.S. population is undocumented immigrants.");
		oQ2.SetQuestionCssClass("question");
		oQ2.SetIncorrectGuessHTML("Incorrect: According to the Bureau of Immigration and Citizenship Services, approximately 2% of the total U.S. population are undocumented immigrants.Total U.S. population is approximately 290 million.");	
		oQ2.SetIncorrectGuessCssClass("incorrect");
		oQ2.SetCorrectGuessHTML("Correct: According to the Bureau of Immigration and Citizenship Services, approximately 2% of the total U.S. population are undocumented immigrants.Total U.S. population is approximately 290 million.");
		oQ2.SetCorrectGuessCssClass("correct");

		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);





oQ2 = new Question(); 
		oQ2.SetQuestionHTML("Only 50% of immigrants are able to support themselves or be supported by their families.");
		oQ2.SetQuestionCssClass("question");
		oQ2.SetIncorrectGuessHTML("Incorrect: More than 90% of immigrants (including refugees and elderly) support themselves or are supported by family members (American Immigration Lawyers Association, 1995; Urban Institute, 1994; Wall Street Journal, 1990).");	
		oQ2.SetIncorrectGuessCssClass("incorrect");
		oQ2.SetCorrectGuessHTML("Correct: More than 90% of immigrants (including refugees and elderly) support themselves or are supported by family members (American Immigration Lawyers Association, 1995; Urban Institute, 1994; Wall Street Journal, 1990).");
		oQ2.SetCorrectGuessCssClass("correct");

		oQ2.SetQuestionType("TF");
		oQ2.SetQuestionNumber(7);
		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("Immigrants currently constitute a bigger proportion of the total U.S. population than ever before in history.");
		oQ2.SetQuestionCssClass("question");
		oQ2.SetIncorrectGuessHTML("Incorrect: The percentage of the U.S. population that is foreign-born is approximately half of what it was throughout the peak immigration years of 1870-1920. (Census Bureau; Immigration and Naturalization Service, Urban Institute 1995).");	
		oQ2.SetIncorrectGuessCssClass("incorrect");
		oQ2.SetCorrectGuessHTML("Correct: The percentage of the U.S. population that is foreign-born is approximately half of what it was throughout the peak immigration years of 1870-1920. (Census Bureau; Immigration and Naturalization Service, Urban Institute 1995).");
		oQ2.SetCorrectGuessCssClass("correct");

		oQ2.SetQuestionType("TF");
		oQ2.SetQuestionNumber(8);
		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("Approximately half of all Minnesota's immigrants are refugees.");
		oQ2.SetQuestionCssClass("question");
		oQ2.SetIncorrectGuessHTML("Correct: In a given year, 25-50% of Minnesota's immigrants are refugees, while nationally 8% of all immigrants admitted legally are refugees. ");	
		oQ2.SetIncorrectGuessCssClass("correct");
		oQ2.SetCorrectGuessHTML("Incorrect: In a given year, 25-50% of Minnesota's immigrants are refugees, while nationally 8% of all immigrants admitted legally are refugees. ");
		oQ2.SetCorrectGuessCssClass("incorrect");

		oQ2.SetQuestionType("TF");
		oQ2.SetQuestionNumber(9);
		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("The official election instructions are now available in 5 languages in addition to English. This is a new development for Minnesota as newer immigrant groups settle here.");
		oQ2.SetQuestionCssClass("question");
		oQ2.SetIncorrectGuessHTML("Incorrect: In 1890 the official election instructions were issued in 9 languages: English, German, Norwegian, Swedish, Finnish, French, Czech, Italian and Polish. Today they are available in only six languages: English, Hmong, Spanish, Somali, Russian, and Vietnamese.");	
		oQ2.SetIncorrectGuessCssClass("incorrect");
		oQ2.SetCorrectGuessHTML("Correct: In 1890 the official election instructions were issued in 9 languages: English, German, Norwegian, Swedish, Finnish, French, Czech, Italian and Polish. Today they are available in only six languages: English, Hmong, Spanish, Somali, Russian and Vietnamese.");
		oQ2.SetCorrectGuessCssClass("correct");

		oQ2.SetQuestionType("TF");
		oQ2.SetQuestionNumber(10);
		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();		

