 // accept message from the location (URL)
 var s = unescape(String(top.document.location))
 var ind = s.indexOf("msg=")
 var message = "";
 if (ind != -1)
 {
   message = s.substr(ind+4);
 }

function validation(form)
{
 if (form.FROM.value == "")
 {
    form.FROM.focus();
    return false;
 }
 if (form.TEXT.value == "")
 {
    form.TEXT.focus();
    return false;
 }
 return true;
}

function getSubject()
{
  // accept subject from the location
  var s = unescape(String(top.document.location));
  var s_ind = s.indexOf("s=");
  var subj = "";
  if (s_ind != -1)
  {
    subj = s.substr(s_ind+2);
  }
  document.f1.SUBJECT.value = subj;
}
 
