Out of interest, "document.all" is IE specific; it will not work in other browsers. Rather use document.getElementById instead.