rem: html += '<HTML><BODY>' + '<FORM action="' + FEEDBACK[0] + '" method="POST" onsubmit="this.action+=this.recipient.options[this.recipient.selectedIndex].value">' + '<TABLE border="0">' + '<TR><TH valign="top" align="right">' + FEEDBACK[7] + ':</TH><TD>' + document.title + '</TD></TR>' + '<TR><TH valign="top" align="right">' + FEEDBACK[8] + ': </TH><TD>' 
add: html += '<html><body>' + '<form action="' + FEEDBACK[0] + '" method="POST" onsubmit="this.action+=this.recipient.options[this.recipient.selectedIndex].value">' + '<table border="0">' + '<tr><th valign="top" align="right">' + FEEDBACK[7] + ':</th><td>' + document.title + '</td></tr>' + '<tr><th valign="top" align="right">' + FEEDBACK[8] + ': </th><td>' 
context: function hpFeedback() {	if (FEEDBACK[0]) {		var url = '';		var html = '';		if (FEEDBACK[1] && FEEDBACK[2]) { // formmail			html += '<HTML><BODY>'				+ '<FORM action="' + FEEDBACK[0] + '" method="POST">'				+ '<TABLE border="0">'				+ '<TR><TH valign="top" align="right">' + FEEDBACK[7] + ':</TH><TD>' + document.title + '</TD></TR>'				+ '<TR><TH valign="top" align="right">' + FEEDBACK[8] + ': </TH><TD>'			;			if (typeof(FEEDBACK[1])=='string') {				html += FEEDBACK[1] + hpHiddenField('recipient', FEEDBACK[1], ',', true);			} else if (typeof(FEEDBACK[1])=='object') {				var i_max = FEEDBACK[1].length;				if (i_max==1) { // one teacher					html += FEEDBACK[1][0][0] + hpHiddenField('recipient', FEEDBACK[1][0][0]+' &lt;'+FEEDBACK[1][0][1]+'&gt;', ',', true);					} else if (i_max>1) { // several teachers					html += '<SELECT name="recipient">';					for (var i=0; i<i_max; i++) {						html += '<OPTION value="'+FEEDBACK[1][i][1]+'">' + FEEDBACK[1][i][0] + '</OPTION>';					}					html += '</SELECT>';				}			}			html += '</TD></TR>'				+	'<TR><TH valign="top" align="right">' + FEEDBACK[9] + ':</TH>'				+	'<TD><TEXTAREA name="message" rows="10" cols="40"></TEXTAREA></TD></TR>'				+	'<TR><TD>&nbsp;</TD><TD><INPUT type="submit" value="' + FEEDBACK[6] + '">'				+ 	hpHiddenField('realname', FEEDBACK[2], ',', true)				+ 	hpHiddenField('email', FEEDBACK[3], ',', true)				+ 	hpHiddenField('subject', document.title, ',', true)				+ 	hpHiddenField('title', document.title, ',', true)				+ 	hpHiddenField('return_link_title', FEEDBACK[10], ',', true)				+ 	hpHiddenField('return_link_url', 'javascript:self.close()', ',', true)				+	'</TD></TR></TABLE></FORM></BODY></HTML>'			;		} else if (FEEDBACK[1]) { // url only			if (typeof(FEEDBACK[1])=='object') {				var i_max = FEEDBACK[1].length;				if (i_max>1) { // several teachers					html += '<HTML><BODY>'						+ '<FORM action="' + FEEDBACK[0] + '" method="POST" onsubmit="this.action+=this.recipient.options[this.recipient.selectedIndex].value">'						+ '<TABLE border="0">'						+ '<TR><TH valign="top" align="right">' + FEEDBACK[7] + ':</TH><TD>' + document.title + '</TD></TR>'						+ '<TR><TH valign="top" align="right">' + FEEDBACK[8] + ': </TH><TD>'					;					html += '<SELECT name="recipient">';					for (var i=0; i<i_max; i++) {						html += '<OPTION value="'+FEEDBACK[1][i][1]+'">' + FEEDBACK[1][i][0] + '</OPTION>';					}					html += '</SELECT>';					html += '</TD></TR>'						+	'<TR><TD>&nbsp;</TD><TD><INPUT type="submit" value="' + FEEDBACK[6] + '">'						+	'</TD></TR></TABLE></FORM></BODY></HTML>'					;				} else if (i_max==1) { // one teacher					url = FEEDBACK[0] + FEEDBACK[1][0][1];				}			} else if (typeof(FEEDBACK[1])=='string') {				url = FEEDBACK[0] + FEEDBACK[1];			}		} else {			url = FEEDBACK[0];		}		if (url || html) {			var w = openWindow(url, 'feedback', FEEDBACK[4], FEEDBACK[5], 'RESIZABLE,SCROLLBARS', html);			if (!w) {				 // unable to open popup window				alert(MSG[18]);			}		}	}}
meta: 2641	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2641/5237207862290e6950c71339743289f4d2d5f4d3/hotpot-full.js/buggy/mod/hotpot/hotpot-full.js