// -------------------------------------------------------------------------------// Code to Open Pop-Up Windows// Only needs to be included in the episode.js file once.var mWin = null;// Opens a popup window at the default sizefunction openWin(inUrl) {    mWin = window.open(inUrl,"","menubar,resizable,scrollbars,height=420,width=400");    if (mWin != null) {		mWin.focus();	}}// Opens a popup window at the specified size.function openWinWH(inUrl,inWidth,inHeight) {	var theFStr = "menubar,resizable,scrollbars,height=" + inHeight + ",width=" + inWidth;    mWin = window.open(inUrl,"",theFStr);    if (mWin != null) {		mWin.focus();	}}// Opens a popup window at the specified size. Does not replace the contents of other// popup windows unless the same "inWinNum" is provided.function openMultiWinWH(inUrl,inWidth,inHeight, inWinNum) {	var theFStr = "menubar,resizable,scrollbars,height=" + inHeight + ",width=" + inWidth;    var theWin = window.open(inUrl,inWinNum,theFStr);    if (theWin != null) {		theWin.focus();	}}var mnumq1 = 6;var canswers1 = new Array(mnumq1 + 1);var mnumchoices1 = new Array(mnumq1 + 1);var sanswers1 = new Array(mnumq1 + 1);mnumchoices1[1] = "4";canswers1[1] = "Perishability";sanswers1[1] = "";mnumchoices1[2] = "4";canswers1[2] = "Intangibility";sanswers1[2] = "";mnumchoices1[3] = "4";canswers1[3] = "Variability";sanswers1[3] = "";mnumchoices1[4] = "4";canswers1[4] = "Perishability";sanswers1[4] = "";mnumchoices1[5] = "4";canswers1[5] = "Inseparability";sanswers1[5] = "";mnumchoices1[6] = "4";canswers1[6] = "Intangibility";sanswers1[6] = "";function gatherAnswers1(form) {var theList;var theListVal;for (i=0; i < mnumq1; i++) {		theList = form.elements[i];		theListVal = theList.options[theList.selectedIndex].value;		sanswers1[i+1] = theListVal;		if (sanswers1[i+1].toLowerCase() == "choose one") {			sanswers1[i+1] = "";		}	}}function getPic1(inNum) {	var theOut;	if (inNum > mnumq1) return "";	if (sanswers1[inNum].toLowerCase() == canswers1[inNum].toLowerCase()) {		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 = 5;var canswers2 = new Array(mnumq2 + 1);var sanswers2 = new Array(mnumq2 + 1);var qresp2 = new Object();canswers2[1] = "b";sanswers2[1] = "";canswers2[2] = "d";sanswers2[2] = "";canswers2[3] = "a";sanswers2[3] = "";canswers2[4] = "e";sanswers2[4] = "";canswers2[5] = "c";sanswers2[5] = "";qresp2["a"] = "Gap 1: Management perceptions do not reflect customer expectations.";qresp2["b"] = "Gap 2: Service specifications do not reflect management perceptions.";qresp2["c"] = "Gap 3: Service specifications are not executed.";qresp2["d"] = "Gap 4: Service provided is not communicated well.";qresp2["e"] = "Gap 5: Services provided are not accurately perceived.";function gatherAnswers2(form) {	for (i=0; i < mnumq2; i++) {		sanswers2[i+1] = form.elements[i].value.toLowerCase();	}}function getPic2(inNum) {	var theOut;	if (inNum > mnumq2) return "";	if (sanswers2[inNum].toLowerCase() == canswers2[inNum].toLowerCase()) {		theOut = "<img src='../images/darkGreenCheck.gif' WIDTH=22 HEIGHT=16>";	} else {		theOut = "<img src='../images/redCheck.gif' WIDTH=22 HEIGHT=16>";	}	return theOut;}function getAnswer2(inNum) {	if (inNum > mnumq2) return "";	var theResp = "";	var theOut = "";	if (qresp2[sanswers2[inNum]] != null) theResp = qresp2[sanswers2[inNum]];	if (theResp != "") theOut = "" + sanswers2[inNum] + ". " + theResp;	return theOut;}var mnumq3 = 3;var canswers3 = new Array(mnumq3 + 1);var mnumchoices3 = new Array(mnumq3 + 1);var sanswers3 = new Array(mnumq3 + 1);mnumchoices3[1] = "5";canswers3[1] = "Better execute specifications";sanswers3[1] = "";mnumchoices3[2] = "5";canswers3[2] = "Better specify service standards";sanswers3[2] = "";mnumchoices3[3] = "5";canswers3[3] = "Better communicate offerings";sanswers3[3] = "";function gatherAnswers3(form) {var theList;var theListVal;for (i=0; i < mnumq3; i++) {		theList = form.elements[i];		theListVal = theList.options[theList.selectedIndex].value;		sanswers3[i+1] = theListVal;		if (sanswers3[i+1].toLowerCase() == "choose one") {			sanswers3[i+1] = "";		}	}}function getPic3(inNum) {	var theOut;	if (inNum > mnumq3) return "";	if (sanswers3[inNum].toLowerCase() == canswers3[inNum].toLowerCase()) {		theOut = "<img src='../images/darkGreenCheck.gif' WIDTH=22 HEIGHT=16>";	} else {		theOut = "<img src='../images/redCheck.gif' WIDTH=22 HEIGHT=16>";	}	return theOut;}function getAnswer3(inNum) {	if (inNum > mnumq3) return "";	var theOut = "" + sanswers3[inNum];	return theOut;}
