rem:   accountState = document.getElementById("accountStateId").value; if(accountState == "3" || accountState == "4" || accountState == "5" || accountState == "6" || accountState == "7" || accountState == "8" || accountState == "9" || accountState == "10"){  document.getElementById("loanAmount").disabled=true	; document.getElementById("interestRate").disabled=true	; document.getElementById("noOfInstallments").disabled=true	; document.getElementById("disbursementDateDD").disabled=true	; document.getElementById("disbursementDateMM").disabled=true	; document.getElementById("disbursementDateYY").disabled=true	; document.getElementById("intDedDisbursement").disabled=true	; document.getElementById("gracePeriodDuration").disabled=true; } /*if(accountState == "5")  { document.getElementById("businessActivityId").disabled=true	; }*/  } 
add: accountState = document.getElementsByName("accountStateId")[0].value; if(accountState == "3" || accountState == "4" || accountState == "5" || accountState == "6" || accountState == "7" || accountState == "8" || accountState == "9" || accountState == "10"){  document.getElementsByName("loanAmount")[0].disabled=true	; document.getElementsByName("interestRate")[0].disabled=true	; document.getElementsByName("noOfInstallments")[0].disabled=true	; document.getElementsByName("disbursementDateDD")[0].disabled=true	; document.getElementsByName("disbursementDateMM")[0].disabled=true	; document.getElementsByName("disbursementDateYY")[0].disabled=true	; document.getElementsByName("intDedDisb")[0].disabled=true	; document.getElementsByName("gracePeriod")[0].disabled=true; } } 
context:  	function disableFields(){ 		//alert(document.getElementById("accountStateId").value); 	// disable the fields if the account is in any of the following states.	 	accountState = document.getElementById("accountStateId").value; 		if(accountState == "3" || 			accountState == "4" ||	 			accountState == "5" || 					accountState == "6" || 					 accountState == "7" ||  			 			accountState == "8" ||  			 				accountState == "9" ||  			 					accountState == "10"){ 			 			 			 		document.getElementById("loanAmount").disabled=true	; 			 		document.getElementById("interestRate").disabled=true	; 			 		document.getElementById("noOfInstallments").disabled=true	; 			 		document.getElementById("disbursementDateDD").disabled=true	; 			 		document.getElementById("disbursementDateMM").disabled=true	; 			 		document.getElementById("disbursementDateYY").disabled=true	; 			 		 			 		document.getElementById("intDedDisbursement").disabled=true	; 			 		document.getElementById("gracePeriodDuration").disabled=true;	 		} 		/*if(accountState == "5")  { 			document.getElementById("businessActivityId").disabled=true	; 		}*/ 		 	}			
meta: 341	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/341/9c43133e92189a1a5676fdae29d3456f2208920e/EditLoanAccount.js/buggy/mifos/src/org/mifos/doc-root/application/loan/js/EditLoanAccount.js