Hi,

I am pretty new to Javascript and have a few questions.

1) Are these two code snippets equivalent?

Code:
document.getElementById("project_table").rows.item(numrows).id = "row" + numrows;
document.getElementById("project_table").rows.item(numrows).name = "row" + numrows; 
funct_name = eval("funct_row" + numrows);
row_name = eval("row"+numrows);
and

Code:
document.getElementById("project_table").rows[numrows].id = "row" + numrows;
document.getElementById("project_table").rows[numrows].name = "row" + numrows;
funct_name = eval("funct_row" + numrows);
row_name = eval("row"+numrows);
If yes, is the second one more cross browser compatible?

2) Could I use getElementById instead of eval for the last 2 lines in each one?

Thanks.