function disableSubmitButtons(sForm) {
	//if(document.all != undefined) {	// On FF, this =undefined, but is still a real object.
		if(document.all.buttonBar != undefined) {
			if(document.all.buttonBar.style != undefined) {
				if(document.all.buttonBar.style.display != undefined) {
					if(document.all.buttonWaitBar != undefined) {
						if(document.all.buttonWaitBar.style != undefined) {
							if(document.all.buttonWaitBar.style.display != undefined) {

								document.all.buttonBar.style.display='none';
								document.all.buttonWaitBar.style.display='';
								try {
//This doesn't send a Submit button through!!!And we don't know which button was clicked!!! 
//For now, have to disable this functionality completely.
return(true);
//									sForm.submit();
								} catch (error) {
									// Could not submit
									alert('The form could not be submitted.\n\nIf you have attached a file, please\ncheck that it exists.');
									document.all.buttonBar.style.display='';
									document.all.buttonWaitBar.style.display='none';
								}
								return(false);

							}
						}
					}
				}
			}
		}
	//}
	return(true);
}
