	function form2Sel (aValues, oSel, aSel){
		var n=0;

		iNo=aValues.length;
		oSel.options.length=iNo;

		if (iNo){
			for (n=0; n<iNo; n++){
				oSel.options[n].value=aValues[n][0];
				oSel.options[n].text=aValues[n][1];
				if (aSel[aValues[n][0]]=='sel')
					oSel.options[n].selected=true;
			}
			return true;
		}
		else {
			oSel.options.length=1;
			oSel.options[0].text="---------------";
			oSel.options[0].value='0';
			return false;
		}
	}
	
	function choose2Sel (oSel, iSel1, aSel, oRow){
		var bHasChilds = false;
		bHasChilds = form2Sel (aInd2Spec[iSel1]['spec'], oSel, aSel);
		if (oRow){
			if (bHasChilds){
				try {
					oRow.style.display = 'table-row';
				} catch(e) {
					oRow.style.display = 'inline';
				}
			}
			else {
				oRow.style.display = 'none';
			}
		}
	}

