rem: if(stateNameIndex[selectBox.selectedIndex - 1] != null){ var stateName=stateNameIndex[selectBox.selectedIndex - 1].value; document.getElementsByName("stateName")[0].value = stateName; 
add: if (selectBox.selectedIndex > 0) { if(stateNameIndex[selectBox.selectedIndex - 1] != null){ var stateName=stateNameIndex[selectBox.selectedIndex - 1].value; document.getElementsByName("stateName")[0].value = stateName; } 
context: function populateStateName(form,selectBox){		var stateNameIndex=document.getElementsByName("stateNames");		if(stateNameIndex[selectBox.selectedIndex - 1] != null){			var stateName=stateNameIndex[selectBox.selectedIndex - 1].value;			document.getElementsByName("stateName")[0].value = stateName;		}}
meta: 341	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/341/6101056e7bbda4cdf7436b974cd66f5a8c4e7fce/validator.js/buggy/mifos/src/org/mifos/doc-root/application/checklist/js/validator.js