function go_table(company, type, nocompany) { document.getElementById('_nocompany').value = nocompany; document.getElementById('_company').value = company; document.getElementById('_type').value = type; document.getElementById('report_form').submit(); } <tr id="submain_td{$smarty.foreach.rows.iteration}" onmouseover="highlightTr({$smarty.foreach.rows.iteration}, 1)" onmouseout="highlightTr({$smarty.foreach.rows.iteration}, 0)"> <td style="text-align:left; border-left: 0px; border-right: 1px solid #B3BFC9;">{$data.company_name}</td> <td><a href="javascript:go_table('{$data.full_name}','Месяц2')">{$data.month2} / {$data.smonth2}</a></td> <td><a href="javascript:go_table('{$data.full_name}','Месяц')">{$data.month} / {$data.smonth}</a></td> <td><a href="javascript:go_table('{$data.full_name}','Выбор')">{$data.choice} / {$data.schoice}</a></td> <td style="border-right: none;"><a href="javascript:go_table('{$data.full_name}','Все')">{$data.all} / {$data.sall}</a></td> </tr> <input type=hidden name="_nocompany" id="_nocompany"> <input type=hidden name="_company" id="_company"> <input type=hidden name="_type" id="_type"> <input type=hidden name="xsl" id="xsl_ex" value="0" />
Что тут куда передается? Заранее спасибо.