rem: var stateName=stateNameIndex[selectBox.selectedIndex - 1].value; document.getElementsByName("stateName")[0].value = stateName;  
add: 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");		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/758b2d1a5b38f3003f65846d5c2e8705db3bf609/validator.js/clean/mifos/src/org/mifos/doc-root/application/checklist/js/validator.js