
//some operations to HTML Select object
function select_addOption(theSel, theText, theValue)
{
	var newOpt = new Option(theText, theValue);
	var selLength = theSel.length;
	theSel.options[selLength] = newOpt;
	return newOpt;
}

function select_deleteOption(theSel, theIndex)
{	
	var selLength = theSel.length;
	if(selLength>0)
	{
		theSel.options[theIndex] = null;
	}
}

function select_clearSelectedOptions(selObj,initIt){
	selObj.options.length	=0;
	if (initIt){
		select_addOption(selObj,"","0");
	}	
}


