The function underneath will write a string (newString) to some element identified by id.
Code:
function show(id, newString)
{
objCell = document.getElementById(id);
objCell.innerHTML = newString;
}
Then you can probably modify this to your exact needs; that is, naturally without reloading the page.
Jacob.