d() ;
			var tbody = FCKDomTools.GetFirstChild( table, 'TBODY' ) ;
			var theRow= FCKDomTools.GetFirstChild( tbody, 'TR' ) ;

			//now change TD to TH:
			for (var i = 0; i<theRow.childNodes.length ; i++)
			{
				var th = RenameNode(theRow.childNodes[i], 'TH') ;
				if (th != null)
					th.scope='col' ;
			}
			oThead.appendChild( theRow ) ;
		}

		if ( table.tHead!==null && !(headers=='row' || headers=='both') )
		{
			// Move the row out of the THead and put it in the TBody:
			var tHead = table.tHead ;
