// JavaScript Document
// Do2 JavaScript functions
// Copyright © 2007-2010 IssueBits Ltd
// Version 1
//
function clearSpanElement(aElementId) {
  var s=document.getElementById(aElementId);
  if (s!=null) {
    while (s.hasChildNodes()) {
      s.removeChild(s.lastChild);
    }
  }
}
function setFocusOnField(aFieldId) {
  var focusField=document.getElementById(aFieldId);
  if (focusField!=null) {
    id=focusField.value;
    if (id!=null && id.length!=0) {
      document.getElementById(id).focus();
    }
  }
}
