function light(obj, mode)
{
   str = obj.className;
   switch( mode )
   {
      case 0: obj.className = str.replace(/high/, "low"); break;
      case 1: obj.className = str.replace(/low/, "high"); break;

      case 2:
         if( str.match("active") )
         {
            obj.className = str.replace(/active/, "high");
         }
         else
         {
            obj.className = str.replace(/high/, "active");
         }
         break;
   }
}

function sendmail(str)
{
   var mstr = "";

   var i;
   for( i = str.length-1; i > -1; i-- )
   {
      mstr += str.charAt(i);
   }
   //alert(mstr);

   document.location.href = mstr;
}

function decodemail(str)
{
   var mstr = "";

   var i;
   for( i = str.length-1; i > -1; i-- )
   {
      mstr += str.charAt(i);
   }
   //alert(mstr);

   document.write(mstr);
}

function setStatusCaption()
{
   var str = document.getElementsByTagName("title")[0].innerHTML;

   if( window.status != str )
   {
      window.status = str;
      document.onmousemove = setStatusCaption;
   }
}
