/*******************************************************************************
	Description		: commonly used function
	Last Modified	: 2003/05/21
*******************************************************************************/

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;
}
	
