<!--
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Description: This javaScript is to disable form buttons.
//  Programmer: hat
// Function(s): dFButtons(curForm,buttonType);	//pass two variables (min. curForm name)
//   Tested on: IE6.0
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/* Sample calls
	dFButtons(document.formName);	//default to 'submit'
	dFButtons(document.formName,'submit');
	dFButtons(document.formName,'button');
*/
var debug = false;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Call this function to disable form buttons
// Ex:	dFButtons(document.formName);
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
		function dFButtons(curForm,buttonType) {
			window.onerror = getDFButtonsEH;
if (debug) alert('in dFButtons: '+ curForm +':'+ buttonType);
			if(typeof(buttonType) == 'undefined' || buttonType=='')
				var buttonType = "submit";
			if (is_getAll || is_getEBId)
				for (i = 0; i < curForm.length; i++) {
					var tempobj = curForm.elements[i];
					if (tempobj.type.toLowerCase() == buttonType)
						tempobj.disabled = true;
				}
		}
		function getDFButtonsEH() {
if (debug) alert("Error: dFButtons Javascript");
			return true;
		}
//-->