context: function proofreadpage_make_edit_area(container,text){	re = /^<noinclude>([\s\S]*?)\n*<\/noinclude>([\s\S]*)<noinclude>([\s\S]*?)<\/noinclude>\n$/;	m = text.match(re);	if(m) {		pageHeader = m[1];		pageBody   = m[2];		pageFooter = m[3];	}	else {		re2 = /^<noinclude>([\s\S]*?)\n*<\/noinclude>([\s\S]*?)\n$/;		m2 = text.match(re2);		if(m2) {			pageHeader = m2[1];			//apparently lookahead is not supported by all browsers			//so let us do another regexp			re3 = /^([\s\S]*?)<noinclude>([\s\S]*?)<\/noinclude>/;			m3 = m2[2].match(re3);			if(m3){				pageBody   = m3[1];				pageFooter = m3[2];			}			else{				pageBody   = m2[2];				pageFooter = '';			}		}		else {			pageHeader = '<div class="pagetext">';			pageBody = text;			pageFooter = '</div>';		}	}        //escape & character	pageBody = pageBody.split("&").join("&amp;")	pageHeader = pageHeader.split("&").join("&amp;")	pageFooter = pageFooter.split("&").join("&amp;")	container.innerHTML = ''		+'<div id="prp_header" style="display:none">'+proofreadPageMessageHeader+'<br/>'		+'<textarea name="headerTextbox" rows="4" cols="80">'+pageHeader+'</textarea>'		+'<br/>'+proofreadPageMessagePageBody+'<br/></div>'		+'<textarea name="wpTextbox1" id="wpTextbox1" rows="40" cols="80">'+pageBody+'</textarea>'		+'<div id="prp_footer" style="display:none"><br/>'+proofreadPageMessageFooter+'<br/>'		+'<textarea name="footerTextbox" rows="4" cols="80">'+pageFooter+'</textarea></div>';	var saveButton = document.getElementById("wpSave"); 	var previewButton = document.getElementById("wpPreview"); 	var diffButton = document.getElementById("wpDiff")	if(saveButton){		saveButton.onclick = proofreadPageFillForm;		previewButton.onclick = proofreadPageFillForm;		diffButton.onclick = proofreadPageFillForm;	} 	else {		container.firstChild.nextSibling.setAttribute("readonly","readonly");	}}
meta: 10854	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10854/49f6cdc9928edc48ea121d34600c461dda159a71/proofread.js/buggy/proofread.js