rem: var td=getContainerOfType(container,"TD"); 
add: var aTypes=new Array("TD","TH"); var td=getContainerOfTypeArray(container,aTypes); 
context: function table_insertObject(sObjectType,bBefore){	var pos=0;	if(!bBefore)pos=1;	var container=getSelectedContainer();	if(container!=null)	{		//find the table element		var table=getContainerOfType(container,"TABLE");		if(table!=null)		{			//find the selected td / tr			var td=getContainerOfType(container,"TD");			var tr=getContainerOfType(container,"TR");			if(tr!=null && td!=null)			{				var tdindex=td.cellIndex;				switch(sObjectType)				{					//insert a new row and create cols in it					case "ROW":						var newRow=table.insertRow(tr.rowIndex+pos);												for(x=0;x<tr.cells.length;x++)						{							newRow.insertCell();						}						break;					//insert a new column in each row					case "COL":						for(x=0;x<table.rows.length;x++)						{							table.rows[x].insertCell(tdindex+pos);						}						break;					default:						break;				}			}		}	}}
meta: 3979	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3979/14283051b0e804ceef72a1be74294fcea9dae33f/wym.js/buggy/editor/wym.js