// JavaScript Document
function displayDate(){
  var today = new Date();
  var months = new Array("January","February","March","April","May","June","Jul","August","September","October","November","December");
  var dayOfWeek = new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat");
  document.write('<div>- ' + dayOfWeek[today.getDay()] + ' ' + today.getDate() + ' ' + months[today.getMonth()] + ' ' + today.getFullYear() + ' -</div>');
}

function count2(){
	var today = new Date();
	var population = 1788896; // 30 June 2009 mid year population estimate
	var midyear =  new Date ( 2009, 5, 30 ); 
	// note month 5 is actually month 6 it is a zero  offest

	var months = new Array("January","February","March","April","May","June","Jul","August","September","October","November","December");
	var dayOfWeek = new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat");
							
	if(today>=midyear){
								
	// 34 represents the amount of births per day (68), deaths (39) and net migration to give 
	//a net increase of 34 persons per day
	// the remainder is just working out that between today and midyear
	// there are 24 hours in a day 60 minutes in an hour and 60 seconds in a minute (the gettime works in millisecondds thus the final 1000)

	population = Math.ceil(1788896 + (34)*Math.ceil((today.getTime()-midyear.getTime())/(24*60*60*1000)));
								
	//This writes the population to the web page
								
							
	document.write('<div> <font size="2"> The population on' + '<br>' + dayOfWeek[today.getDay()] + ' ' + today.getDate() + ' ' + months[today.getMonth()] + ' ' + today.getFullYear() +  ' is ' + '<br> <strong>' + population+'</strong> </font> </div>');
								
	}

if (!document.getElementById) {
    window.location = "http://www.webstandards.org/upgrade/";
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

}
