txtRows').disabled    = true ;
		document.getElementById('txtColumns').disabled = true ;
		SelectField( 'txtWidth' ) ;
	}
	else
		SelectField( 'txtRows' ) ;

	dialog.SetOkButton( true ) ;
	dialog.SetAutoSize( true ) ;
}

// Fired when the user press the OK button
function Ok()
{
	var bExists = ( table != null ) ;

	var oDoc = oEditor.FCK.EditorDocument ;
	oEditor.FCKUndo.SaveUndoStep() ;

	if ( ! bExists )
		table = oDoc.createElement( "TABLE" ) ;

	// Removes the Width and Height styles
	if ( bExists && ta