Aquí verás cómo se hace:
http://www.w3schools.com/jsref/event_onclick.asp http://www.w3schools.com/jsref/prop_html_innerhtml.asp
Ten en cuenta que no puedes tener dos objetos con el mismo id
incorrecto:
<table id="Text1">
<input id="Text1" type="text">