<html>
<head>
<script language="javascript" type="text/javascript">
function appendTable()
{
var table1 = document.getElementById("Table1");
var currentRow = table1.childNodes[0];
var newRow = currentRow.cloneNode(true); //copy a row including its child nodes
var childs = newRow.getElementsByTagName("input");
childs[0].onclick=function(){
alert('getValue(a2)');
};