// JavaScript code for Inmagic's Web Error Messages
// Copyright © 1998-2004 Inmagic, Inc., Woburn, MA, USA. All rights reserved.

var   wp_server      = window.location.protocol + '//' + window.location.host;

function dbtw_init_page()
   {
   var formObj     = document.error_form;   if (!formObj) return
   var formLength  = 0;

   // safety--for those rare cases where there are two or more web error messages output
   if (formObj.elements)
      if (formObj.elements.length)
         formLength = formObj.elements.length;

   // set the focus to the first button on the form
   for (var i=0; i<formLength; i++)
      if (formObj.elements[i].type)
         if (formObj.elements[i].type.substring(0, 6) == "button")
            {
            bSetFocusToFirstTabBox = false;
            formObj.elements[i].focus();
            break;
            }
   }
