its just possible by naming the TD & TR of table!
for examlpe:
<table>
<tr>
<td id="td1"></td>
<td id="td2"></td>
</tr>
</table>
now by using this code:
<script language="javascript">
function test(){
document.getElementById("td1").innerHTML="A";
document.getElementById("td2").innerHTML="B";
}
</script>
it set the content of first field to A .
the second field to B.
its just need to call the test() function.
use this instead of <body>:
<body onload="body()">