function popup(path, width, height)
{
window.open(''+path+'','','statusbar=0,toolbar=0,location=0,menuBar=0,scrollbars=0,resizable=1,width='+width+',height='+height+',left=0,top=0'); 
}

<!-- Обновляем инфу о корзине при добавлении нового товара-->
function update_card(count, summ)
{
   document.getElementById('count').innerHTML=""+count+"";
   document.getElementById('summ').innerHTML=""+summ+"";
}


var numb=1;
var currow;

//Добавляем строку в таблицу
function add_row() {
		numb++;
		document.mainform.fcount.value=numb;
		currow = document.all.tbl.rows.length; // вычислить количество строк в таблице
		document.mainform.fcount.value=numb;
		document.all.tbl.insertRow(currow); // добавляем строку в таблицу
		document.all.tbl.rows[currow].insertCell(0); // добавляем ячейки
		document.all.tbl.rows[currow].cells[0].innerHTML = '<tr><td><strong>'+numb+'</strong>&nbsp;<input type="button" onClick="delete_row(this.parentNode.parentNode.rowIndex);" value="X"></td><td> <input name='+numb+' type="file">&nbsp;&nbsp;&nbsp;&nbsp;Выводить:<input name=pos_arr['+numb+'] type="text" style="width:70px;">';
}


function delete_row(idx) {
   // tbl = document.getElementsByTagName('table');
  //  tbl.item(0).deleteRow(idx);
    document.getElementById('tbl').deleteRow(idx);
  }
  
 var comment_marker=1;
function show_comment_form()
{
comment_marker=comment_marker*-1;
if (comment_marker==1) {
	document.getElementById('comment_form').style.display='none';}
else {
	document.getElementById('comment_form').style.display='block';
}
} 

