number_format is a php function and this is javascript.
Since you are adding whole numbers, the two decimals will always be ".00", so you can just add that to the end like:
document.getElementById("show_"+row).innerHTML = rowTot + ".00);
document.getElementById("total_"+row).value = rowTot + ".00";