rem: var message_holder	= d.getElementById('message_holder'); var message_area	= d.getElementById('form_error'); var form			= d.getElementById('register_form'); 
add: var message_holder	= FA.getObj('message_holder'); var message_area	= FA.getObj('form_error'); var form			= FA.getObj('register_form'); 
context: function handleRegErrors(k4_http, button) {	// get the message holder, message area and form	var message_holder	= d.getElementById('message_holder');	var message_area	= d.getElementById('form_error');	var form			= d.getElementById('register_form');		// if everything is a-okay	if(form && message_holder && message_area) {		var response = k4_http.getResponseText();		// if the response was nothing		if(response == '') {						// submit the form			form.submit();			message_area.style.display = 'none';				// otherwise		} else {						// try to get an error string			var errorstr = responseError(response);						// if there is an error string			if(errorstr != '') {				// set the error to message holder				message_holder.innerHTML	= errorstr;				message_area.style.display	= 'block';				document.location			= '#top';				d.enableButton(button);			// Everything's good, submit the form			} else { form.submit(); }		}	} else {		// if there was an error, try to submit the form		if(form) { form.submit(); }	}}
meta: 8193	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8193/d55368118dec4a8f237e8e432dd97304d21083d6/http_requests.js/buggy/trunk/upload/js/http_requests.js