rem: + 	'<th align=right nowrap>' + MSG[4] + ' :</th>' 
add: + 	'<th align="right" nowrap scope="row">' + MSG[4] + ' :</th>' 
context: function QuizLogin(LoginPrompt) {	if (!is_LMS() && (Login[0] || Login[1] || Login[2] || Login[3])) {		var html = ''			+ '<html>'			+ '<head></head>'			+ '<body bgColor="#cccccc" onLoad="opener.setFocus(self)">'			+ '<form onSubmit="'			+ 	'self.ok=true;'			+ 	'self.expiry=null;'		;		if (Login[4]) { // cookie expiry			html += "opener.checkOK(self,'CookieExpiry');";		}		if (Login[0]) { // user name			html += "opener.checkOK(self,'UserName');";		}		if (Login[1]) { // user ID			html += "opener.checkOK(self,'UserID');";		}		if (Login[2]) { // user email			html += "opener.checkOK(self,'UserEmail');";		}		if (Login[3]) { // quiz password			html += "opener.checkOK(self,'Password');";		}		html += 	 'if(ok){'			+	 	'opener.StartQuiz();'			+	 	'self.close();'			+	  '}else{'			+	 	'if(isNaN(self.tries))self.tries=0;'			+	 	'self.tries++;'			+	 	'if(self.tries<3){'			+			'opener.setFocus(self);'			+	 	'}else{'			+	 		"alert(opener.MSG[11]);"			+	 		'opener.goBack();'			+	 		'self.close();'			+	 	'}'			+	  '}'			+	  'return false;'			+ '">'		;		html += '<table>'			+ 	'<caption>' + LoginPrompt + '</caption>';		;		if (Login[0]) { // user name			var v = getCookie(self, 'UserName');			html += '<tr>'				+	'<th align=right nowrap>' + MSG[0] + ' :</th>'				+	'<td>'			;			if (typeof(Login[0])=='boolean') { // text box				html += '<input type=text name=UserName value="' + v + '">';			} else { // drop down menu of names				// pattern to match commas and white space				var comma = (window.RegExp) ? new RegExp('\\s*,\\s*') : ',';				// convert list of names to array, if necessary				if (typeof(Login[0])=='string') {					Login[0] = Login[0].split(comma);				}				html += '<select name=UserName size=1>'					+ '<option value=""></option>'				;				for(var i=0; i<Login[0].length; i++) {					// convert name details to array if nececount_cary					if (typeof(Login[0][i])=='string') {						Login[0][i] = Login[0][i].split(comma);					}					html += makeOption(Login[0][i][0], v, Login[0][i][1]);				}				html += '</select>';			}			html += 	'</td>'				+ '</tr>'			;		}		if (Login[1]) { // user ID			var v = getCookie(self, 'UserID');			html += '<tr><th align=right nowrap>' + MSG[1] + ' :</th><td><input type=text name=UserID value="' + v + '"></td></tr>';		}		if (Login[2]) { // user email			var v = getCookie(self, 'UserEmail');			html += '<tr><th align=right nowrap>' + MSG[2] +' :</th><td><input type=text name=UserEmail value="' + v + '"></td></tr>';		}		if (Login[3]) { // quiz password			var v = getCookie(self, 'Password');			html += '<tr><th align=right nowrap>' + MSG[3] + ' :</th><td><input type=password name=Password value="' + v + '"></td></tr>';		}		if (Login[4]) { // cookie lifespan			var v = getCookie(self, 'CookieExpiry');			html += '<tr>'				+ 	'<th align=right nowrap>' + MSG[4] + ' :</th>'				+ 	'<td>'				+		'<select name="CookieExpiry" size=1>'				+ 			makeOption('session', v, MSG[7])				+ 			makeOption('day', v, MSG[8])				+ 			makeOption('month', v, MSG[9])				+ 			makeOption('never', v, MSG[10])				+ 		'</select>'				+ 	'</td>'				+ '</tr>'			;		}		html += 	'<tr>'			+		'<th>&nbsp;</th>'			+		'<td nowrap>'			+			'<input type=submit value="' + MSG[5] + '"> '			+ 			'<input type=button value="' + MSG[6] + '" onClick="opener.goBack();self.close();">'			+		'</td>'			+	'</tr>'			+ '</table></form></body></html>'		;		// set height of Login Window		var m = navigator.userAgent.indexOf('Mac')>=0;		var h = (m ? 80 : 100);		for (var i=0; i<5; i++) h += (Login[i] ? (m ? 20 : 25) : 0);		// open up a new window		if (!openWindow('', '', (m ? 320 : 300), h, 'RESIZABLE', html)) {			alert(MSG[18]); // unable to open popup window		}	} else { // no Login required		window.UserName = window.UserID = window.UserEmail = window.Password = '';		window.StartQuiz();	}	return true;}
meta: 752	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/752/3f5abcb20aec9b77303ea0ca2bd9bf56adf05bec/hotpot-full.js/buggy/mod/hotpot/hotpot-full.js