// Floater class
function Mailer(sID, sForm)
  {
  // Properties
  this.ID = sID;
  this.Form = sForm;

  if(IE)
    this.Style = document.all[sID].style;
  else if(NS6)
    this.Style = document.getElementById(sID).style;
  else if(NS)
    this.Style = document.layers[sID];

  // Methods  
  this.Position = function(iLeft, iTop)
    {
    this.Style[LEFT] = Page.Left() + iLeft;
    this.Style[TOP] = Page.Top() + iTop;
    this.Left = iLeft;
    this.Top = iTop
    }

  this.Toggle = function()
    {
    var Visibility = this.Style.visibility.toUpperCase();
		
		this.Position(this.Left, this.Top);
		
    if(Visibility == "HIDDEN" || Visibility == "HIDE" || Visibility == "")
      this.Style.visibility = "visible";
    else
      this.Style.visibility = "hidden";  
    }

  this.OK = function()
    {
    var Form = document.forms[this.Form];
    
    if(Form.Name.value.length == 0)
      {
      alert("Please specify your name.");
      Form.Name.focus();
      return;
      }
    
    if(Form.Address.value.length == 0)
      {
      alert("Please specify your e-mail address.");
      Form.Address.focus();
      return;
      }

    if(Form.Message.value.length == 0)
      {
      alert("Please enter the message you want to send.");
      Form.Message.focus();
      return;
      }
          
    document.forms[this.Form].submit();
    this.Toggle();
    }    
  }
  
