// Date display functions


function GetFullYear (d)
{
	
  var y = d.getYear();
  
  if (y < 1000) y += 1900;
  
  return y;
  
  }
  

function DisplayDate()
{
	
  // Array of day names
  
  var dayNames = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
  
  // Array of month Names
  
  var monthNames = new Array(
  
  "January","February","March","April","May","June","July","August","September","October","November","December");
  
  var now = new Date();
  
  document.write(dayNames[now.getDay()] + ", " + monthNames[now.getMonth()] + " " + now.getDate() + ", " + GetFullYear (now));
  
}



function DisplayDateFrench()
{

  // Array of day names
  var dayNames = new Array("dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi");



  // Array of month Names
  var monthNames = new Array(

  "janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre");



  var now = new Date();

  document.write(dayNames[now.getDay()] + " " + now.getDate() + " " + monthNames[now.getMonth()] + " " + GetFullYear (now));
}


// BEGIN BOOKMARKS / FAVOURITES //
// For use on the Come Back Later page (/general/comeback.jsp).

// Save a link to browser favourites (IE only)   - added here since this is always included
function savePage(page)
{
 var pagedata = new Array();

 //in the html, the URL and bookmark description should be entered with a |
 //between them so that we can split them here (like www.3web.com|Visit 3Web)
 pagedata = page.split("|");

 if (document.all)
	window.external.AddFavorite(pagedata[0], pagedata[1]); //IE
 else
	alert("Sorry, we can't add a bookmark for you.  You can try bookmarking manually by pressing ctrl-d on your keyboard or by clicking the Bookmarks or Favorites menu items on your browser.");
}

// END BOOKMARKS / FAVOURITES //
