<!--//--><![CDATA[//><!--

	/**
	* dynamicComboBoxRegion
	*
	* change control to editable mode
	*
	* @param		string		controlId		name of control
	* @return	bool						TRUE if successfull
	*/
	function dynamicComboBoxRegion( controlId ) {

		if( document.getElementById( controlId )) {

			if( document.getElementById( controlId ).style.display == 'none' ) {
				// get static text node
				var childNodes = document.getElementById( controlId + '_node' ).getElementsByTagName( 'span' );
				var childNode = childNodes[0];

				// remove textNode from edit region
				if( childNode ) {
					document.getElementById( controlId + '_node' ).removeChild( childNode );
				}

				// show control and set focus
				document.getElementById( controlId ).style.display = 'inline';
				document.getElementById( controlId ).focus();
				return true;
			}
		}
		return false;
	}


	/**
	* staticComboBoxRegion
	*
	* change control to static mode
	*
	* @param		string		controlId		name of control
	* @return	bool						TRUE if successfull
	*/
	function staticComboBoxRegion( controlId ) {

		if( document.getElementById( controlId )) {

			if( document.getElementById( controlId ).style.display != 'none' ) {

				// create static text node
				var childNode = document.createElement( 'span' );

				// make sure there is a selected index
				if( document.getElementById( controlId ).selectedIndex > -1 ) {

					childNode.appendChild( document.createTextNode( document.getElementById( controlId ).options[document.getElementById( controlId ).selectedIndex].text ));

					// add textNode to edit region
					document.getElementById( controlId + '_node' ).appendChild( childNode );

					// hide control
					document.getElementById( controlId ).style.display = 'none';
					return true;
				}
			}
		}
		return false;
	}

//--><!]]>