javascript innerText works in IE, not in Firefox

you want to use textContent to fallback

if (v1.innerText != null)
v1.innerText = newvalue; // for IE
else
v1.textContent = newvalue; // for firefox