rem: text = document.getElementById("wpTextbox1"); 
add: var text = document.getElementById("wpTextbox1"); 
context: function proofreadpage_init() {	if( document.getElementById("proofreadImage")) return;	if(document.URL.indexOf("action=protect") > 0 || document.URL.indexOf("action=unprotect") > 0) return;	if(document.URL.indexOf("action=delete") > 0 || document.URL.indexOf("action=undelete") > 0) return;	if(document.URL.indexOf("action=watch") > 0 || document.URL.indexOf("action=unwatch") > 0) return;	if(document.URL.indexOf("action=history") > 0 ) return;	/*check if external url is provided*/				       	if(!self.proofreadPageViewURL) {		text = document.getElementById("wpTextbox1"); 		if (text) {			proofreadPageIsEdit = true;			re = /<span class="hiddenStructure" id="pageURL">\[http:\/\/(.*?)\]<\/span>/;			m = re.exec(text.value);			if( m ) { 				self.proofreadPageExternalURL = "http://"+m[1];  			}		} 		else {			proofreadPageIsEdit = false;			text = document.getElementById("bodyContent"); 			try { 				a = document.getElementById("pageURL");				b = a.firstChild;				self.proofreadPageExternalURL = b.getAttribute("href");			} catch(err){};		}		//set to dummy values, not used		self.proofreadPageWidth = 400;		self.proofreadPageHeight = 400;	}	if(!self.proofreadPageViewURL && !self.proofreadPageExternalURL) return;	if( self.proofreadpage_setup ) 	     proofreadpage_setup(		proofreadPageWidth,		proofreadPageHeight, 		proofreadPageIsEdit);	else proofreadpage_default_setup();}
meta: 10854	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10854/deebc41d1670f37a95418153fabf2bb653b4a389/proofread.js/buggy/proofread.js