To remove colons from the field labels in webforms

I devised a DHTML method - paste this script into the webform body

<script type="text/javascript">
function nocolons(){
doclabs = new Array;
doclabs = document.getElementsByTagName('label');
if (doclabs.length) {
  for (i=0; i<doclabs.length; i++ ){
    labtext = doclabs[i].innerHTML;
    if (labtext.indexOf(":")) {
      striptext = labtext.substr(0, labtext.indexOf(":")) + labtext.substr(labtext.indexOf(":")+1, labtext.length);
      doclabs[i].innerHTML = striptext;
    }
  }
}
}
onload=nocolons;
</script>

I suppose this snippet could also go in a theme file, probably page.tpl.php

I only have one webform, so it is more efficient for me to put the code in the webform body

Subject