	var isIE = document.all ? true : false;
	var isNS = document.layers ? true : false;
	var firstPayOptionAmountCtrlID = "Test";
	var kitRequestCheckBoxsID = "";
	
	// Event handler for onchange event of controls
	function EnableSubmitButton() {
		var x = document.Form1.elements;
		for (var i=0;i<x.length;i++)
		{
			if(x[i].type == 'checkbox' || x[i].type == 'text' || x[i].type == 'password' 
				|| x[i].type == 'radio')
			{
					// Enable submit button on changing control data
				x[i].onchange = function (e) {
					document.getElementById("SubmitButton").disabled = false;
				}
			}
		}
	}

	// Enable or disable other checkboxes
	//doing in javascript instead of ajax so that it happens right away
	function MaintainExclusiveCheckbox(cbCtrl, kitRequestCheckboxesCtrl)
	{
	    var kitRequestCheckBoxsID = document.getElementById(kitRequestCheckboxesCtrl)
	    var cbCtrlList = kitRequestCheckBoxsID.value.split(",");

        for (i = 0; i < cbCtrlList.length; ++i) {
            if (cbCtrlList[i] != "") {
                var cbCtrlOther = document.getElementById(cbCtrlList[i]);
                // set disabled only the controls other that the clicked checkbox control
                if (cbCtrlOther != cbCtrl) {
                    if (cbCtrl.checked == true) {
                        cbCtrlOther.disabled = true;
                    }
                    else {
                        cbCtrlOther.disabled = false;
                    }
                }
            }
        } // End of for-statement
	}
	