<script>
var rowCt = 1
function cloneRow(){
rowCt++
theRow=document.getElementById("row1").cloneNode(true)
theRow.childNodes[1].firstChild.name = "fName" + rowCt
theRow.childNodes[2].firstChild.name = "file" + rowCt
document.getElementById("fileTable").firstChild.appendChild(theRow)
}
</script>
<table id="fileTable">
<tr id=row1>
<td>File Name:</td>
<td><input name="fName1"></td>
<td><input type=file name="file1"></td>
</tr>
</table>
<input type=button onClick="cloneRow()" value="Another">
var rowCt = 1
function cloneRow(){
rowCt++
theRow=document.getElementById("row1").cloneNode(true)
theRow.childNodes[1].firstChild.name = "fName" + rowCt
theRow.childNodes[2].firstChild.name = "file" + rowCt
document.getElementById("fileTable").firstChild.appendChild(theRow)
}
</script>
<table id="fileTable">
<tr id=row1>
<td>File Name:</td>
<td><input name="fName1"></td>
<td><input type=file name="file1"></td>
</tr>
</table>
<input type=button onClick="cloneRow()" value="Another">