/******************************************************************************* Description : commonly used function Programmer : Kim Dong-kyu (superkdk) Last Modified : 2003.03.19 *******************************************************************************/ /******************************************************************************* Description : These functions initializes object to value. Last Modified : 2003.03.19 *******************************************************************************/ function init_select(obj, value) { if(!obj) return; for(i = 0; i < obj.options.length; i++) { if(obj.options[i].value == value) obj.selectedIndex = i; } } function init_radio(obj, idx) { if(!obj) return; obj[idx].checked = true; }