document.getElementById(TB).value = "0";

TB, parametro formale della funzione SetValue, è l'identificativo del TexBox