              function Button_Colour(which,Bordercolor,BckGndcolor)
                  {
                      //if IE 4+ or NS 6+
                      if (document.all||document.getElementById){ which.style.borderColor=Bordercolor }
                      if (document.all||document.getElementById){ which.style.backgroundColor=BckGndcolor }
                  }


              function hilight(cur,which)
                  {
                      strength=(which==0)? 1 : 0.6

                      if (cur.style.MozOpacity)
                      cur.style.MozOpacity=strength
                      else if (cur.filters)
                      cur.filters.alpha.opacity=strength*100
                  }




      function Fade(HTML_id, b4Opaq, FramTot, nFrames, Frame1,Direction)
                       {
                           //  Called by   setTimeout(function() { FadeIn('id_Start transparancy_milli second total_frames_start frame number_In or out') }, initial delay ms);

                           var ElemID=document.getElementById(HTML_id);
                           SetOpacity(ElemID, b4Opaq);
                           Frame1++;

                           if (Frame1 >nFrames)
                               {
                                   if (Direction == 'in')
                                       {
                                           b4Opaq = 1;
                                           SetOpacity(ElemID, b4Opaq);
                                       }
                                   if (Direction == 'out')
                                       {
                                           b4Opaq = 0;
                                           SetOpacity(ElemID, b4Opaq);
                                       }
                                   return;
                               }
                           if (Direction == 'in')
                               {
                                   b4Opaq = b4Opaq + (1/nFrames);
                               }
                           if (Direction == 'out')
                               {
                                   b4Opaq = b4Opaq - (1/nFrames);
                               }
                           setTimeout(function() { Fade(HTML_id, b4Opaq, FramTot, nFrames, Frame1,Direction) }, FramTot/nFrames);
                       }

      function SetOpacity(ItemID, NewOpacity)
                       {
                           ItemID.style.opacity = NewOpacity;
                           ItemID.style.MozOpacity = NewOpacity;
                           ItemID.style.KhtmlOpacity = NewOpacity;
                           ItemID.style.filter = "alpha(opacity=" + NewOpacity * 100 + ")";
                       }

      function ChangeBodyFont()
                       {
                             var Pointer =  document.getElementById('body');
                             Pointer.style.fontSize = GetSize() + 'em' ;
                             Pointer.style.lineHeight = GetSize() + 'em' ;
                       }
      function GetSize()
                       {
                           var SizeX=GetHorizontalSize();
                           var SizeY=GetVerticalSize();
                               if (SizeX > SizeY)
                                   {
                                       return FinalSize(SizeY)
                                   }
                               else
                                   {
                                       return FinalSize(SizeX)
                                   }
                         }

      function GetVerticalSize()
                       {
                           return  document.body.clientHeight; 
                       }
      function GetHorizontalSize()
                       {
                           return  document.body.clientWidth; 
                       }
      function FinalSize(InSize)
                       {
                                       return  (InSize/1000)+.1; 
                       }
