<!--

//@@ *********************************************
//@@ script to generate update dates
//@@ Created    JIA 20/02/08    V1.0
//@@ *********************************************

function g_update_dates(sType) {

   //@@ array of update dates
   //@@ remember to leave last
   //@@ months in
   //@@ this is all you need to change
   var arrUpdateDates = new Array("Tuesday 2 March 2010", "Wednesday 31 March 2010", "Wednesday 5 May 2010", "Tuesday 8 June 2010")

   //@@ ********************************
   //@@ don't change any code below this
   //@@ ********************************

   //@@ check type
   switch (sType)
      {
       case "Next":
          {
           //@@ write next update date
           document.write(arrUpdateDates[1]);
           break;
          }
       case "Last":
          {
           //@@ write the last update date
           document.write(arrUpdateDates[0]);
           break;
          }
       case "All":
          {
           //@@ write all future update dates
           var sHTML = "<ul class='normal'>";

           //@@ loop round update array
           //@@ returning future dates
           //@@ as a table
           for (i = 1; i < arrUpdateDates.length; i++)
              {
               sHTML = sHTML + "<li>" + arrUpdateDates[i] + "<\/li>";
              }

           //@@ add end
           sHTML = sHTML + "<\/ul>"

           //@@ write out html
           document.write(sHTML);
           break;
          }

       }

}


//@@ *********************************************
//@@ script to get pdf file sizes
//@@ Created    JIA 22/02/08    V1.0
//@@ *********************************************

function g_filesize(sFileName) {

   //@@ pass in the file name
   //@@ write out file size

   //@@ call asp to get file size
   var http = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP");
   http.open("GET","filesize.asp?sFileName=" + sFileName,false);
   http.setRequestHeader("Content-type" ,"text/html");
   http.send("");

   //@@ write out file size
   document.write(http.responseText);

}

//-->
