rem: var progress = new FileProgress(fileObj, this.getSetting("progress_target")); 
add: var progress = new FileProgress(fileObj, this.customSettings.progress_target); 
context: function uploadError(error_code, fileObj, message) {	try {		var txtFileName = document.getElementById("txtFileName");		txtFileName.value = "";		validateForm();				// Handle this error separately because we don't want to create a FileProgress element for it.		switch(error_code) {			case SWFUpload.ERROR_CODE_MISSING_UPLOAD_URL:				alert("There was a configuration error.  You will not be able to upload a resume at this time.");				this.debugMessage("Error Code: No backend file, File name: " + file.name + ", Message: " + message);				return;				break;			case SWFUpload.ERROR_CODE_UPLOAD_LIMIT_EXCEEDED:				alert("You may only upload 1 file.");				this.debugMessage("Error Code: Upload Limit Exceeded, File name: " + file.name + ", File size: " + file.size + ", Message: " + message);				return;				break;			case SWFUpload.ERROR_CODE_FILE_CANCELLED:				break;			default:				alert("An error occurred in the upload. Try again later.");				this.debugMessage("Error Code: " + error_code + ", File name: " + file.name + ", File size: " + file.size + ", Message: " + message);				return;				break;		}		fileObj.id = "singlefile";	// This makes it so FileProgress only makes a single UI element, instead of one for each file		var progress = new FileProgress(fileObj, this.getSetting("progress_target"));		progress.SetError();		progress.ToggleCancel(false);		switch(error_code) {			case SWFUpload.ERROR_CODE_HTTP_ERROR:				progress.SetStatus("Upload Error");				this.debugMessage("Error Code: HTTP Error, File name: " + file.name + ", Message: " + message);				break;			case SWFUpload.ERROR_CODE_UPLOAD_FAILED:				progress.SetStatus("Upload Failed.");				this.debugMessage("Error Code: Upload Failed, File name: " + file.name + ", File size: " + file.size + ", Message: " + message);				break;			case SWFUpload.ERROR_CODE_IO_ERROR:				progress.SetStatus("Server (IO) Error");				this.debugMessage("Error Code: IO Error, File name: " + file.name + ", Message: " + message);				break;			case SWFUpload.ERROR_CODE_SECURITY_ERROR:				progress.SetStatus("Security Error");				this.debugMessage("Error Code: Security Error, File name: " + file.name + ", Message: " + message);				break;			case SWFUpload.ERROR_CODE_FILE_CANCELLED:				progress.SetStatus("Upload Cancelled");				this.debugMessage("Error Code: Upload Cancelled, File name: " + file.name + ", Message: " + message);				break;		}	} catch (e) {}}
meta: 8671	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8671/2a56b232b73faf5aa2deef25fa21287940658ef0/handlers.js/buggy/demos/formsdemo/js_13/handlers.js