> You need quotes around your strings. Try this > nDatarow = "datarow_" + a + "_col_" + f; > nValue = "row_" + a + "_col_" + f; > theform.nDatarow .value = document.getElementById(nValue).innerHTML; Have you tried that? In more browsers than IE? The question was answered properly about three times already. -- Chris Heilmann http://icant.co.uk/ | http://www.onlinetools.org/