	function QRQ1a() {
		
		var correct ="data inconsistency";
	var total = 0;

	if (document.QRQ1form.c1[0].checked==false)
		total++;
	if (document.QRQ1form.c1[1].checked==true)
		total++;
	if (document.QRQ1form.c1[2].checked==false)
		total++;
	if (document.QRQ1form.c1[3].checked==false)
		total++;
	if (document.QRQ1form.c1[4].checked==false)
		total++;
	
		
		if (total == 5){
			RightWindow = window.open('','RightWindow','toolbar=no,location=no,width=425,height=175');
			var congrats = "<html><head><title>Quick Review Question Answer</title></head><body bgcolor=\"#E1E5BE\"><font size=4>You are correct! <i> " + correct + " </i> is the correct answer. <br>"  + " </font>\n<br><br>\n<form name=\"form\"><input type=\"button\" name=\"button\" value=\"Close this window\" onClick=\"window.close();\"></form><script language=\"JavaScript\">document.form.button.focus();document.form.button.select();</script></body></html>";
			RightWindow.document.write(congrats);
		} else {
			WrongWindow = window.open('','WrongWindow','toolbar=no,location=no,width=425,height=175');
			var sorry = "<html><head><title>Quick Review Question Answer</title></head><body bgcolor=\"#E1E5BE\"><font size=4>You are incorrect - The correct answer is: <i>" + correct + "</i>. <br>" + " </font>\n<br><br>\n<form name=\"form\"><input type=\"button\" name=\"button\" value=\"Close this window\" onClick=\"window.close();\"></form><script language=\"JavaScript\">document.form.button.focus();document.form.button.select();</script></body></html>";
			WrongWindow.document.write(sorry);				
		}
	}
	
	
function QRQ1b() {
		
		var correct ="Programming necessary";
var total = 0;

	if (document.QRQ1form.c2[0].checked==true)
		total++;
	if (document.QRQ1form.c2[1].checked==false)
		total++;
	if (document.QRQ1form.c2[2].checked==false)
		total++;
	if (document.QRQ1form.c2[3].checked==false)
		total++;
	if (document.QRQ1form.c2[4].checked==false)
		total++;
		
		if (total ==5){
			RightWindow = window.open('','RightWindow','toolbar=no,location=no,width=425,height=175');
			var congrats = "<html><head><title>Quick Review Question Answer</title></head><body bgcolor=\"#E1E5BE\"><font size=4>You are correct! <i> " + correct + " </i> is the correct answer. <br>"  + " </font>\n<br><br>\n<form name=\"form\"><input type=\"button\" name=\"button\" value=\"Close this window\" onClick=\"window.close();\"></form><script language=\"JavaScript\">document.form.button.focus();document.form.button.select();</script></body></html>";
			RightWindow.document.write(congrats);
		} else {
			WrongWindow = window.open('','WrongWindow','toolbar=no,location=no,width=425,height=175');
			var sorry = "<html><head><title>Quick Review Question Answer</title></head><body bgcolor=\"#E1E5BE\"><font size=4>You are incorrect - The correct answer is: <i>" + correct + "</i>. <br>" + " </font>\n<br><br>\n<form name=\"form\"><input type=\"button\" name=\"button\" value=\"Close this window\" onClick=\"window.close();\"></form><script language=\"JavaScript\">document.form.button.focus();document.form.button.select();</script></body></html>";
			WrongWindow.document.write(sorry);				
		}
	}


function QRQ1c() {
		
		var correct ="Data dependence";
var total = 0;

	if (document.QRQ1form.c3[0].checked==false)
		total++;
	if (document.QRQ1form.c3[1].checked==false)
		total++;
	if (document.QRQ1form.c3[2].checked==false)
		total++;
	if (document.QRQ1form.c3[3].checked==false)
		total++;
	if (document.QRQ1form.c3[4].checked==true)
		total++;
		
		if (total==5){
			RightWindow = window.open('','RightWindow','toolbar=no,location=no,width=425,height=175');
			var congrats = "<html><head><title>Quick Review Question Answer</title></head><body bgcolor=\"#E1E5BE\"><font size=4>You are correct! <i> " + correct + " </i> is the correct answer. <br>"  + " </font>\n<br><br>\n<form name=\"form\"><input type=\"button\" name=\"button\" value=\"Close this window\" onClick=\"window.close();\"></form><script language=\"JavaScript\">document.form.button.focus();document.form.button.select();</script></body></html>";
			RightWindow.document.write(congrats);
		} else {
			WrongWindow = window.open('','WrongWindow','toolbar=no,location=no,width=425,height=175');
			var sorry = "<html><head><title>Quick Review Question Answer</title></head><body bgcolor=\"#E1E5BE\"><font size=4>You are incorrect - The correct answer is: <i>" + correct + "</i>. <br>" + " </font>\n<br><br>\n<form name=\"form\"><input type=\"button\" name=\"button\" value=\"Close this window\" onClick=\"window.close();\"></form><script language=\"JavaScript\">document.form.button.focus();document.form.button.select();</script></body></html>";
			WrongWindow.document.write(sorry);				
		}
	}

function QRQ1d() {
		
		var correct ="Data security";
var total = 0;

	if (document.QRQ1form.c4[0].checked==false)
		total++;
	if (document.QRQ1form.c4[1].checked==false)
		total++;
	if (document.QRQ1form.c4[2].checked==false)
		total++;
	if (document.QRQ1form.c4[3].checked==true)
		total++;
	if (document.QRQ1form.c4[4].checked==false)
		total++;
		
		if (total==5){
			RightWindow = window.open('','RightWindow','toolbar=no,location=no,width=425,height=175');
			var congrats = "<html><head><title>Quick Review Question Answer</title></head><body bgcolor=\"#E1E5BE\"><font size=4>You are correct! <i> " + correct + " </i> is the correct answer. <br>"  + " </font>\n<br><br>\n<form name=\"form\"><input type=\"button\" name=\"button\" value=\"Close this window\" onClick=\"window.close();\"></form><script language=\"JavaScript\">document.form.button.focus();document.form.button.select();</script></body></html>";
			RightWindow.document.write(congrats);
		} else {
			WrongWindow = window.open('','WrongWindow','toolbar=no,location=no,width=425,height=175');
			var sorry = "<html><head><title>Quick Review Question Answer</title></head><body bgcolor=\"#E1E5BE\"><font size=4>You are incorrect - The correct answer is: <i>" + correct + "</i>. <br>" + " </font>\n<br><br>\n<form name=\"form\"><input type=\"button\" name=\"button\" value=\"Close this window\" onClick=\"window.close();\"></form><script language=\"JavaScript\">document.form.button.focus();document.form.button.select();</script></body></html>";
			WrongWindow.document.write(sorry);				
		}
	}

function QRQ1e() {
		
		var correct ="Data integrity compromised";
var total = 0;

	if (document.QRQ1form.c5[0].checked==false)
		total++;
	if (document.QRQ1form.c5[1].checked==false)
		total++;
	if (document.QRQ1form.c5[2].checked==true)
		total++;
	if (document.QRQ1form.c5[3].checked==false)
		total++;
	if (document.QRQ1form.c5[4].checked==false)
		total++;
		
		if (total==5){
			RightWindow = window.open('','RightWindow','toolbar=no,location=no,width=425,height=175');
			var congrats = "<html><head><title>Quick Review Question Answer</title></head><body bgcolor=\"#E1E5BE\"><font size=4>You are correct! <i> " + correct + " </i> is the correct answer. <br>"  + " </font>\n<br><br>\n<form name=\"form\"><input type=\"button\" name=\"button\" value=\"Close this window\" onClick=\"window.close();\"></form><script language=\"JavaScript\">document.form.button.focus();document.form.button.select();</script></body></html>";
			RightWindow.document.write(congrats);
		} else {
			WrongWindow = window.open('','WrongWindow','toolbar=no,location=no,width=425,height=175');
			var sorry = "<html><head><title>Quick Review Question Answer</title></head><body bgcolor=\"#E1E5BE\"><font size=4>You are incorrect - The correct answer is: <i>" + correct + "</i>. <br>" + " </font>\n<br><br>\n<form name=\"form\"><input type=\"button\" name=\"button\" value=\"Close this window\" onClick=\"window.close();\"></form><script language=\"JavaScript\">document.form.button.focus();document.form.button.select();</script></body></html>";
			WrongWindow.document.write(sorry);				
		}
	}

function QRQ2a() {
		
		var correct ="relation";
		
		if (document.qrq2form.qrq1a[4].checked==true){
			RightWindow = window.open('','RightWindow','toolbar=no,location=no,width=425,height=175');
			var congrats = "<html><head><title>Quick Review Question Answer</title></head><body bgcolor=\"#E1E5BE\"><font size=4>You are correct! <i> " + correct + " </i> is the correct answer.<br>"  + " </font>\n<br><br>\n<form name=\"form\"><input type=\"button\" name=\"button\" value=\"Close this window\" onClick=\"window.close();\"></form><script language=\"JavaScript\">document.form.button.focus();document.form.button.select();</script></body></html>";
			RightWindow.document.write(congrats);
		} else {
			WrongWindow = window.open('','WrongWindow','toolbar=no,location=no,width=425,height=175');
			var sorry = "<html><head><title>Quick Review Question Answer</title></head><body bgcolor=\"#E1E5BE\"><font size=4>You are incorrect - The correct answer is: <i>" + correct + "</i>. <br>" + " </font>\n<br><br>\n<form name=\"form\"><input type=\"button\" name=\"button\" value=\"Close this window\" onClick=\"window.close();\"></form><script language=\"JavaScript\">document.form.button.focus();document.form.button.select();</script></body></html>";
			WrongWindow.document.write(sorry);				
		}
	}


function QRQ2b() {
		
		var correct ="3";
		
		if (document.qrq2form.qrq1b[3].checked==true){
			RightWindow = window.open('','RightWindow','toolbar=no,location=no,width=425,height=175');
			var congrats = "<html><head><title>Quick Review Question Answer</title></head><body bgcolor=\"#E1E5BE\"><font size=4>You are correct! <i> " + correct + " </i> is the correct answer. The attributes are <i>subject</i>, <i>RHfactor<i/>, and <i>BloodType</i>.<br>"  + " </font>\n<br><br>\n<form name=\"form\"><input type=\"button\" name=\"button\" value=\"Close this window\" onClick=\"window.close();\"></form><script language=\"JavaScript\">document.form.button.focus();document.form.button.select();</script></body></html>";
			RightWindow.document.write(congrats);
		} else {
			WrongWindow = window.open('','WrongWindow','toolbar=no,location=no,width=425,height=175');
			var sorry = "<html><head><title>Quick Review Question Answer</title></head><body bgcolor=\"#E1E5BE\"><font size=4>You are incorrect - The correct answer is: <i>" + correct + "</i>. The attributes are <i>subject</i>, <i>RHfactor</i>, and <i>BloodType</i><br>" + " </font>\n<br><br>\n<form name=\"form\"><input type=\"button\" name=\"button\" value=\"Close this window\" onClick=\"window.close();\"></form><script language=\"JavaScript\">document.form.button.focus();document.form.button.select();</script></body></html>";
			WrongWindow.document.write(sorry);				
		}
	}


function QRQ2c() {
		
		var correct ="3";
		
		if (document.qrq2form.qrq1c[3].checked==true){
			RightWindow = window.open('','RightWindow','toolbar=no,location=no,width=425,height=175');
			var congrats = "<html><head><title>Quick Review Question Answer</title></head><body bgcolor=\"#E1E5BE\"><font size=4>You are correct! <i> " + correct + " </i> is the correct answer. The domain is {'+','-', <i>null</i>}.<br>"  + " </font>\n<br><br>\n<form name=\"form\"><input type=\"button\" name=\"button\" value=\"Close this window\" onClick=\"window.close();\"></form><script language=\"JavaScript\">document.form.button.focus();document.form.button.select();</script></body></html>";
			RightWindow.document.write(congrats);
		} else {
			WrongWindow = window.open('','WrongWindow','toolbar=no,location=no,width=425,height=175');
			var sorry = "<html><head><title>Quick Review Question Answer</title></head><body bgcolor=\"#E1E5BE\"><font size=4>You are incorrect - The correct answer is: <i>" + correct + "</i>. The domain is {'+','-', <i>null</i>}.<br>" + " </font>\n<br><br>\n<form name=\"form\"><input type=\"button\" name=\"button\" value=\"Close this window\" onClick=\"window.close();\"></form><script language=\"JavaScript\">document.form.button.focus();document.form.button.select();</script></body></html>";
			WrongWindow.document.write(sorry);				
		}
	}

function QRQ2d() {
		
		var correct ="5";
		
		if (document.qrq2form.qrq1d[5].checked==true){
			RightWindow = window.open('','RightWindow','toolbar=no,location=no,width=425,height=175');
			var congrats = "<html><head><title>Quick Review Question Answer</title></head><body bgcolor=\"#E1E5BE\"><font size=4>You are correct! <i> " + correct + " </i> is the correct answer. The number of tuples is the number of rows of data.<br>"  + " </font>\n<br><br>\n<form name=\"form\"><input type=\"button\" name=\"button\" value=\"Close this window\" onClick=\"window.close();\"></form><script language=\"JavaScript\">document.form.button.focus();document.form.button.select();</script></body></html>";
			RightWindow.document.write(congrats);
		} else {
			WrongWindow = window.open('','WrongWindow','toolbar=no,location=no,width=425,height=175');
			var sorry = "<html><head><title>Quick Review Question Answer</title></head><body bgcolor=\"#E1E5BE\"><font size=4>You are incorrect - The correct answer is: <i>" + correct + "</i>. The number of tuples is the number of rows of data.<br>" + " </font>\n<br><br>\n<form name=\"form\"><input type=\"button\" name=\"button\" value=\"Close this window\" onClick=\"window.close();\"></form><script language=\"JavaScript\">document.form.button.focus();document.form.button.select();</script></body></html>";
			WrongWindow.document.write(sorry);				
		}
	}


function QRQ3a() {
		
		var correct ="join";
		
		if (document.qrq3form.qrq3a[0].checked==true){
			RightWindow = window.open('','RightWindow','toolbar=no,location=no,width=425,height=175');
			var congrats = "<html><head><title>Quick Review Question Answer</title></head><body bgcolor=\"#E1E5BE\"><font size=4>You are correct! <i> " + correct + " </i> is the correct answer.<br>"  + " </font>\n<br><br>\n<form name=\"form\"><input type=\"button\" name=\"button\" value=\"Close this window\" onClick=\"window.close();\"></form><script language=\"JavaScript\">document.form.button.focus();document.form.button.select();</script></body></html>";
			RightWindow.document.write(congrats);
		} else {
			WrongWindow = window.open('','WrongWindow','toolbar=no,location=no,width=425,height=175');
			var sorry = "<html><head><title>Quick Review Question Answer</title></head><body bgcolor=\"#E1E5BE\"><font size=4>You are incorrect - The correct answer is: <i>" + correct + "</i>.<br>" + " </font>\n<br><br>\n<form name=\"form\"><input type=\"button\" name=\"button\" value=\"Close this window\" onClick=\"window.close();\"></form><script language=\"JavaScript\">document.form.button.focus();document.form.button.select();</script></body></html>";
			WrongWindow.document.write(sorry);				
		}
	}

function QRQ3b() {
		
		var correct ="select";
		
		if (document.qrq3form.qrq3b[3].checked==true){
			RightWindow = window.open('','RightWindow','toolbar=no,location=no,width=425,height=175');
			var congrats = "<html><head><title>Quick Review Question Answer</title></head><body bgcolor=\"#E1E5BE\"><font size=4>You are correct! <i> " + correct + " </i> is the correct answer.<br>"  + " </font>\n<br><br>\n<form name=\"form\"><input type=\"button\" name=\"button\" value=\"Close this window\" onClick=\"window.close();\"></form><script language=\"JavaScript\">document.form.button.focus();document.form.button.select();</script></body></html>";
			RightWindow.document.write(congrats);
		} else {
			WrongWindow = window.open('','WrongWindow','toolbar=no,location=no,width=425,height=175');
			var sorry = "<html><head><title>Quick Review Question Answer</title></head><body bgcolor=\"#E1E5BE\"><font size=4>You are incorrect - The correct answer is: <i>" + correct + "</i>.<br>" + " </font>\n<br><br>\n<form name=\"form\"><input type=\"button\" name=\"button\" value=\"Close this window\" onClick=\"window.close();\"></form><script language=\"JavaScript\">document.form.button.focus();document.form.button.select();</script></body></html>";
			WrongWindow.document.write(sorry);				
		}
	}

function QRQ3c() {
		
		var correct ="project";
		
		if (document.qrq3form.qrq3c[1].checked==true){
			RightWindow = window.open('','RightWindow','toolbar=no,location=no,width=425,height=175');
			var congrats = "<html><head><title>Quick Review Question Answer</title></head><body bgcolor=\"#E1E5BE\"><font size=4>You are correct! <i> " + correct + " </i> is the correct answer.<br>"  + " </font>\n<br><br>\n<form name=\"form\"><input type=\"button\" name=\"button\" value=\"Close this window\" onClick=\"window.close();\"></form><script language=\"JavaScript\">document.form.button.focus();document.form.button.select();</script></body></html>";
			RightWindow.document.write(congrats);
		} else {
			WrongWindow = window.open('','WrongWindow','toolbar=no,location=no,width=425,height=175');
			var sorry = "<html><head><title>Quick Review Question Answer</title></head><body bgcolor=\"#E1E5BE\"><font size=4>You are incorrect - The correct answer is: <i>" + correct + "</i>.<br>" + " </font>\n<br><br>\n<form name=\"form\"><input type=\"button\" name=\"button\" value=\"Close this window\" onClick=\"window.close();\"></form><script language=\"JavaScript\">document.form.button.focus();document.form.button.select();</script></body></html>";
			WrongWindow.document.write(sorry);				
		}
	}

function QRQ3d() {
		
		var correct ="select, then project";
		
		if (document.qrq3form.qrq3d[4].checked==true){
			RightWindow = window.open('','RightWindow','toolbar=no,location=no,width=425,height=175');
			var congrats = "<html><head><title>Quick Review Question Answer</title></head><body bgcolor=\"#E1E5BE\"><font size=4>You are correct! <i> " + correct + " </i> is the correct answer.  We must select the rows containing '+' before we project.  If we project first, the resulting table would not contain Rh-factor information."  + " </font>\n<br><br>\n<form name=\"form\"><input type=\"button\" name=\"button\" value=\"Close this window\" onClick=\"window.close();\"></form><script language=\"JavaScript\">document.form.button.focus();document.form.button.select();</script></body></html>";
			RightWindow.document.write(congrats);
		} else {
			WrongWindow = window.open('','WrongWindow','toolbar=no,location=no,width=425,height=175');
			var sorry = "<html><head><title>Quick Review Question Answer</title></head><body bgcolor=\"#E1E5BE\"><font size=4>You are incorrect - The correct answer is: <i>" + correct + "</i>.  We must select the rows containing '+' before we project.  If we project first, the resulting table would not contain Rh-factor information."+" </font>\n<br><br>\n<form name=\"form\"><input type=\"button\" name=\"button\" value=\"Close this window\" onClick=\"window.close();\"></form><script language=\"JavaScript\">document.form.button.focus();document.form.button.select();</script></body></html>";
			WrongWindow.document.write(sorry);				
		}
	}














function QRQ22a() {
		var guess = prompt("Please enter your answer");
		var correct ="Content-type";
		
		if (guess == correct) {
			RightWindow = window.open('','RightWindow','toolbar=no,location=no,width=450,height=100');
			var congrats = "<html><head><title>Quick Review Question Answer</title></head><body bgcolor=\"#E1E5BE\"><font size=4>You are correct! <i> " + correct + " </i> is the correct answer. " + " </font>\n<br><br>\n<form name=\"form\"><input type=\"button\" name=\"button\" value=\"Close this window\" onClick=\"window.close();\"></form><script language=\"JavaScript\">document.form.button.focus();document.form.button.select();</script></body></html>";
			RightWindow.document.write(congrats);
		} else {
			WrongWindow = window.open('','WrongWindow','toolbar=no,location=no,width=450,height=100');
			var sorry = "<html><head><title>Quick Review Question Answer</title></head><body bgcolor=\"#E1E5BE\"><font size=4>You are incorrect - The correct answer is: <i>" + correct + "</i>." + " </font>\n<br><br>\n<form name=\"form\"><input type=\"button\" name=\"button\" value=\"Close this window\" onClick=\"window.close();\"></form><script language=\"JavaScript\">document.form.button.focus();document.form.button.select();</script></body></html>";
			WrongWindow.document.write(sorry);				
		}
	}
	
	

function QRQ42c() {
	var guessA = prompt("Please enter your answer for Part A");
	var guessB = prompt("Please enter your answer for Part B");
		var correctA ="0";
		var correctB ="7";
		
		if ((guessA == correctA) && (guessB==correctB)) {
			RightWindow = window.open('','RightWindow','toolbar=no,location=no,width=450,height=100');
			var congrats = "<html><head><title>Quick Review Question Answer</title></head><body bgcolor=\"#E1E5BE\"><font size=4>You are correct! <i> " + correctA + "</i> and <i>" + correctB + " </i> are the correct answers. " + " </font>\n<br><br>\n<form name=\"form\"><input type=\"button\" name=\"button\" value=\"Close this window\" onClick=\"window.close();\"></form><script language=\"JavaScript\">document.form.button.focus();document.form.button.select();</script></body></html>";
			RightWindow.document.write(congrats);	
		}
	}

