
function showMainSubmenu ( fclass , toShow )
	{
	var i = 1;
	while ( true )
		{
		var dci = document.getElementById( fclass + i );
		if ( dci == "undefined" || dci == null ) break;
		dci.style.display = "none";
		i++;
		}
	var dci = document.getElementById( fclass + toShow );
	if ( dci != "undefined" && dci != null )
		{
		dci.style.display = "block";	
		}
	}
function getOptionText ( thName )
    {
    myObject = document.getElementById( thName );
    thValue = "";
    if ( myObject.selectedIndex >= 0 )
        thValue = myObject.options[myObject.selectedIndex].text
    return thValue;
    }
function clearOptions ( thName )
    {
    document.getElementById(thName).options.length = 0;
    }
function addOption ( thName , thValue )
    {
    element = document.getElementById(thName);
    element.options[element.options.length] = new Option(thValue, thValue);
    }

