// -------------------------------------------------------------------------------// Code to Open Pop-Up Windows// Only needs to be included in the episode.js file once.// Opens a popup window at the default sizefunction openWin(inUrl) {    var theWin = window.open(inUrl,"popup","menubar,resizable,scrollbars,height=420,width=400");    if (theWin != null) {		theWin.focus();	}}// Opens a popup window at the specified size.function openWinWH(inUrl,inWidth,inHeight) {	var theFStr = "menubar,resizable,scrollbars,height=" + inHeight + ",width=" + inWidth;    var theWin = window.open(inUrl,"popup",theFStr);    if (theWin != null) {		theWin.focus();	}}// Opens a popup window at the specified size. Does not replace the contents of other// popup windows unless the same "inWinName" is provided.function openMultiWin(inUrl, inWinName) {	var theFStr = "menubar,resizable,scrollbars,height=420,width=400";    var theWin = window.open(inUrl,inWinName,theFStr);    if (theWin != null) {		theWin.focus();	}}// Opens a popup window at the specified size. Does not replace the contents of other// popup windows unless the same "inWinName" is provided.function openMultiWinWH(inUrl,inWidth,inHeight, inWinName) {	var theFStr = "menubar,resizable,scrollbars,height=" + inHeight + ",width=" + inWidth;    var theWin = window.open(inUrl,inWinName,theFStr);    if (theWin != null) {		theWin.focus();	}}var mnumq1 = 7;var canswers1 = new Array(mnumq1 + 1);var mnumchoices1 = new Array(mnumq1 + 1);var sanswers1 = new Array(mnumq1 + 1);mnumchoices1[1] = "4";canswers1[1] = "b";sanswers1[1] = "";mnumchoices1[2] = "4";canswers1[2] = "c";sanswers1[2] = "";mnumchoices1[3] = "7";canswers1[3] = "f";sanswers1[3] = "";mnumchoices1[4] = "4";canswers1[4] = "a";sanswers1[4] = "";mnumchoices1[5] = "4";canswers1[5] = "c";sanswers1[5] = "";mnumchoices1[6] = "4";canswers1[6] = "a";sanswers1[6] = "";mnumchoices1[7] = "4";canswers1[7] = "b";sanswers1[7] = "";function gatherAnswers1(form) {	for (i=0; i<=mnumq1; i++) {		sanswers1[i] = "";	}	var k = 0;	for (j = 1; j < (mnumq1+1); j++) {		for (i=0; i<mnumchoices1[j]; i++) {			if (form.elements[k].checked) {				if (i%mnumchoices1[j] == 0) {					sanswers1[j] = "a";				} else if (i%mnumchoices1[j] == 1) {					sanswers1[j] = "b";				} else if (i%mnumchoices1[j] == 2) {					sanswers1[j] = "c";				} else if (i%mnumchoices1[j] == 3) {					sanswers1[j] = "d";				} else if (i%mnumchoices1[j] == 4) {					sanswers1[j] = "e";				} else if (i%mnumchoices1[j] == 5) {					sanswers1[j] = "f";				} else if (i%mnumchoices1[j] == 6) {					sanswers1[j] = "g";				}			}			k++;		}	}}function getPic1(inNum) {	var theOut;	if (inNum > mnumq1) return "";	if (sanswers1[inNum] == canswers1[inNum]) {		theOut = "<img src='../images/darkGreenCheck.gif' WIDTH=22 HEIGHT=16>";	} else {		theOut = "<img src='../images/redCheck.gif' WIDTH=22 HEIGHT=16>";	}	return theOut;}function getAnswer1(inNum) {	if (inNum > mnumq1) return "";	var theOut = "" + sanswers1[inNum];	return theOut;}var mnumq2 = 2;var mnumq2a = 18;var sanswers2 = new Array(mnumq2 + 1);sanswers2[1] = "";sanswers2[2] = "";var sanswers2a = new Array(mnumq2a + 1);sanswers2a[1] = "";sanswers2a[2] = "";sanswers2a[3] = "";sanswers2a[4] = "";sanswers2a[5] = "";sanswers2a[6] = "";sanswers2a[7] = "";sanswers2a[8] = "";sanswers2a[9] = "";sanswers2a[10] = "";sanswers2a[11] = "";sanswers2a[12] = "";sanswers2a[13] = "";sanswers2a[14] = "";sanswers2a[15] = "";sanswers2a[16] = "";sanswers2a[17] = "";sanswers2a[18] = "";function gatherAnswers2(form) {	for (i=1; i <= mnumq2; i++) {		sanswers2[i] = eval("form.q" + i + ".value");		sanswers2[i] = sanswers2[i].replace(/</g,"&lt;");	}	for (i=1; i <= mnumq2a; i++) {		sanswers2a[i] = eval("form.qa" + i + ".value");		sanswers2a[i] = sanswers2a[i].replace(/</g,"&lt;");	}}function getAnswer2(inNum) {	if (inNum > mnumq2) return "";	var theOut = "" + sanswers2[inNum];	return theOut;}function getAnswer2a(inNum) {	if (inNum > mnumq2a) return "";	var theOut = "" + sanswers2a[inNum];	return theOut;}
