<!--//--><![CDATA[//><!--

	/**
	 * gridViewToggleDisplay
	 *
	 * toggle display attribute of table nodes
	 *
	 * @param		string		controlId		name of control
	 * @return	bool						TRUE if successfull
	 */
	function gridViewToggleDisplay( controlId ) {

		table = document.getElementById( controlId );

		thead = table.getElementsByTagName( 'thead' );
		tbody = table.getElementsByTagName( 'tbody' );
		tfoot = table.getElementsByTagName( 'tfoot' );

		if( thead[0].style.visibility == 'collapse' ) {
			thead[0].style.visibility = 'visible';
			tbody[0].style.visibility = 'visible';
			tfoot[0].style.visibility = 'visible';
		}
		else {
			thead[0].style.visibility = 'collapse';
			tbody[0].style.visibility = 'collapse';
			tfoot[0].style.visibility = 'collapse';
		}

		return true;
	}

	/**
	 * gridViewUnSelectAll
	 *
	 * toggle display attribute of table nodes
	 *
	 * @param		string		controlId		name of control
	 * @return	bool						TRUE if successfull
	 */
	function gridViewUnSelectAll( controlId ) {
		var trTags = document.getElementById( controlId ).getElementsByTagName( 'tr' );

		for( var i = 0; i < trTags.length; i++ ) {
			if( trTags[i].className == 'selected row' ) {
				trTags[i].className = 'row';
			}
			if( trTags[i].className == 'selected row_alt' ) {
				trTags[i].className = 'row_alt';
			}
		}
	}

//--><!]]>