    function do_submit(form)
    {
      // First, turn off pop-up
  
      var submit_accepted = false;
      var width = 525;
      var height = 600;
      if (navigator.platform != 'MacPPC')
      {
        if (navigator.appName == "Microsoft Internet Explorer")
        {
          width = 238;
          height = 245;
        }
        else if (parseInt(navigator.appVersion) > 4)
        {
          width = 600;
          height = 450;
        }
        else
        {
          width = window.outerWidth;
          if (width < 800) width = 800;
          height = window.outerHeight;
          if (height < 600) height = 600;
        }
      }
      else
      {
        if (navigator.appName == "Microsoft Internet Explorer")
        {
          width = 525;
          height = 500;
        }
        else if (parseInt(navigator.appVersion) < 5)
        {
          width = 850;
          height = 600;
        }
        else
        {
          width = 525;
          height = 500;
        }
      }
    
      if (submit_accepted) // prevents NN4 resubmission
        return(false);
      if (!navigator.javaEnabled())
      {
        alert("This feature requires a Java-enabled browser. Please enable Java in your browser's settings and try again.");
      }
      submit_accepted = true;

      window.open('', "chat_window", 'resizable=yes,scrollbars=no,width=' + width + ',height=' + height);

      if(form != null) form.submit();

      return(false);
    }