///////////////////////////////////////////////////////////
// numonly(myfield, e)
//
// - allows only numeric input
// - example implementation:
//
//   onKeypress="return numonly(this, event);
//
///////////////////////////////////////////////////////////
function numonly(myfield, e)
{
  var keycode;
  if(window.event)
      keycode = window.event.keyCode;
  else if(e)
      keycode = e.which;
  else
      return true;
  if(((keycode > 47) && (keycode < 58)) || (keycode == 8))
      return true;
  else
      return false;
} // numonly

function ValidateAGB(source, args)
{
     args.IsValid = document.all["cbAGB"].checked;
}

// other
sfFocus = function()
{
    var sfEls = document.getElementsByTagName("INPUT");
    for ( var i=0; i < sfEls.length; i++ )
    {
        sfEls[i].onfocus = function()
        {
            this.className += " ifocus";
        }
        sfEls[i].onblur = function()
        {
            this.className = this.className.replace(new RegExp(" ifocus\\b"), "");
        }
    }
}
if (window.attachEvent)
    window.attachEvent("onload", sfFocus);