задача решена.
дело было в кавычках в строке newCell.innerHTML = "<input type='hidden' name='p_select_type_content_id_to_link' value='"+p_select.options[p_select.selectedIndex].value+"'>"+p_select.options[p_select.selectedIndex].text;
function add_type_content_row(p_select)
{
// alert(p_select);
/* alert(p_value_id);
alert(p_value_name);*/
if (p_select.options[p_select.selectedIndex].text != '')
{
var table_type_content_link = document.getElementById('id_table_type_content_link');
var newRow = table_type_content_link.insertRow(table_type_content_link.rows.length-1);
var newCell = newRow.insertCell(0);
newCell.valign = "middle";
newCell.className = "PortletHeading2";
newCell.innerHTML = "<input type='hidden' name='p_select_type_content_id_to_link' value='"+p_select.options[p_select.selectedIndex].value+"'>"+p_select.options[p_select.selectedIndex].text;
var newCell = newRow.insertCell(1);
newCell.className = "PortletText2";
// newCell.innerHTML="<b>строка 1 столбец 1</b>";
var newCell = newRow.insertCell(2);
// newCell.innerHTML="<b>строка 1 столбец 1</b>";
newCell.className = "PortletText2";
p_select.options[p_select.selectedIndex]=null;
p_select.selectedIndex=null;
}
};
</SCRIPT>