         //ALthough the following was from the original ABLC site, code to do
         //with text size is made redundant by replacement code much further
         //down the page.
function setFontSizeFromCookie() {
        var cookieName = 'textsize';
        var theCookie=""+document.cookie;
         var ind=theCookie.indexOf(cookieName);
         if (ind==-1 || cookieName=="")
         {
                 //alert("bail out");
                 return "";
         }
         var ind1=theCookie.indexOf(';',ind);
         if (ind1==-1) ind1=theCookie.length;
        /* the cookie is like 'stylesheet=1; textsize=-2'  using '=' as a
        demiliter its the 3rd (2 starting from 0) item in the array caused by
        split*/
        //alert ("ind1="+ind1+", ind="+ind );
         var sizechange =  unescape(theCookie.substring(ind+cookieName.length+1,ind1));
         // parseInt(theCookie.split("=")[2]);
                //alert ("sizechange in setfontsize"+sizechange);
                numberofcalls = sizechange;
   var p = document.getElementsByTagName('td');
    var h = document.getElementsByTagName('h1');
   var maxim = (p.length - 15);
   for(i=0;i<maxim;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 18;
      }
      if(s!=max) {
         s += parseInt(sizechange);
      }
      p[i].style.fontSize = s+"px";
   }
      //header stuff
   var maxim = (h.length);
   for(i=0;i<maxim;i++)
   {
                h[i].style.fontSize = (18+parseInt(numberofcalls))+"px" ;
   }

}
function ReadCookie(cookieName)
        {
         var theCookie=""+document.cookie;
         var ind=theCookie.indexOf(cookieName);
         if (ind==-1 || cookieName=="") return "";
         var ind1=theCookie.indexOf(';',ind);
         if (ind1==-1) ind1=theCookie.length;
         changeSheets( unescape(theCookie.substring(ind+cookieName.length+1,ind1)) );
         setFontSizeFromCookie()
        }
function SetCookie(cookieName,cookieValue,nDays)
        {

         var today = new Date();
         var expire = new Date();
         if (nDays==null || nDays==0) nDays=1;
         expire.setTime(today.getTime() + 3600000*24*nDays);
         document.cookie = cookieName+"="+escape(cookieValue)
                                         + ";expires="+expire.toGMTString();
        }

        //Allows for changes of stylesheets, which are themselves most to do
        //with changes of text and background colour, making for easier reading.
        var doAlerts=false;
function changeSheets(whichSheet)
        {
          whichSheet=whichSheet-1;
          if(document.styleSheets){
                var c = document.styleSheets.length;
                if (doAlerts) alert('Change to Style '+(whichSheet+1));
                for(var i=0;i<c;i++){
                  if(i!=whichSheet){
                        document.styleSheets[i].disabled=true;
                  }else{
                        document.styleSheets[i].disabled=false;
                        SetCookie('stylesheet',i+1,5) ;
                  }
                }
          }
        }

        //Downloaded from InterNet and adapted - Increases & Decreases text
          //size, maing any equivilent above redundant

function fsize(size,unit,id){
  var vfontsize = document.getElementById(id);
  if(vfontsize){
   vfontsize.style.fontSize = size + unit;
  }
}
var textsize = 16;
function changetextsize(up){
  if(up){
   textsize = parseFloat(textsize)+2;
  }else{
   textsize =parseFloat(textsize)-2;
  }
}