// JavaScript Document

  function changeFile(whichId, fileName)
{
document.getElementById(whichId).src=fileName;
}

function didyou()
  {
var qno = Math.floor(Math.random()*25);

if (qno == 0) 
{
document.write("The ecological footprint is a measure of the resources you consume and the amount of waste that you produce.")
}
else if (qno == 1)
{
document.write("The average Australian has one of the largest ecological footprints in the world.")
}
else if (qno == 2)
{
document.write("Each kilometre of car travel avoided saves up to half a kilogram of greenhouse gas and 20 cents in operating costs.")
}
else if (qno == 3)
{
document.write("Australia is the driest inhabited continent on the planet, with over 70 per cent of our land consisting of desert or semi-desert.")
}
else if (qno == 4)
{
document.write("Australians are some of the biggest consumers of water on the planet.")
}
else if (qno == 5)
{
document.write("Organic farming increases biodiversity at every level of the food chain - all the way from lowly bacteria to mammals.")
}
else if (qno == 6)
{
document.write("It takes up to four kilograms of wild fish to produce one kilogram of sea-caged Atlantic salmon.")
}
else if (qno == 7)
{
document.write("It takes 1350 litres of water to produce one kilogram of wheat, but 16 000 litres of water is needed to produce one kilogram of beef.")
}
else if (qno == 8)
{
document.write("One calorie of animal protein requires more than 10 times as much fossil fuel input and releases more than 10 times as much carbon dioxide into the environment as one calorie of plant protein.")
}
else if (qno == 9)
{
document.write("When you recycle one glass bottle you save the amount of energy needed to light a 100-watt bulb for four hours.")
}
else if (qno == 10)
{
document.write("It takes the same energy to produce one aluminium can as it does to recycle the same can 20 times over.")
}
else if (qno == 11)
{
document.write("A microwave oven can generate more greenhouse gases running the electronic clock than it does heating food over the course of a year.")
}
else if (qno == 12)
{
document.write("An inefficient computer and monitor left on for a year will generate the same amount of carbon dioxide as a car travelling from Sydney to Perth.")
}
else if (qno == 13)
{
document.write("One animal dies in a laboratory in the United States every second, in Japan every two seconds, and in the United Kingdom every twelve seconds.")
}
else if (qno == 14)
{
document.write("For every tonne of paper that you recycle you save 13 trees, 2.5 barrels of oil, 4100 kilowatt-hours of electricity, four cubic metres of landfill and 31 780 litres of water.")
}
else if (qno == 15)
{
document.write("Most equipment still draws power when switched off. You need to turn it off at the power point to reduce the power consumption to zero.")
}
else if (qno == 16)
{
document.write("Turn the lights off whenever you leave a room to reduce greenhouse gas emissions and save money. ")
}
else if (qno == 17)
{
document.write("It is a myth that turning a computer on and off uses more energy and reduces its life. It is far better to turn your computer off if you're not using it.")
}
else if (qno == 18)
{
document.write("Reducing your shower time by two minutes can save you more than 18 litres of water.")
}
else if (qno == 19)
{
document.write("Using a bucket in the shower for when the water heats up can save 9 litres of water per minute.")
}
else if (qno == 20)
{
document.write("A water efficient showerhead can save up to 45 litres of water per day.")
}
else if (qno == 21)
{
document.write("Airline travel represents the greatest release of greenhouse gas emissions in a short time that we as individuals can possibly make.")
}
else if (qno == 22)
{
document.write("Most plastic bags will be used for only a few minutes yet they will last up to 400 years in the environment.")
}
else if (qno == 23)
{
document.write("Seven billion cigarette butts are littered in Australia each year.")
}
else if (qno == 24)
{
document.write("Approximately 40 per cent of household garbage going to landfill is food waste.")
}

}

function validate(Form) {
     if (Form.userAddress.value.length == 0)
    {
        alert("Please enter an e-mail address.");
        Form.userAddress.focus()
        return false
    }
	if (Form.userAddress.value.indexOf("@") == -1)
    {
        alert("Please enter a valid e-mail address.");
        Form.userAddress.focus();
        return false;
    }

	if (Form.message.value.length == 0)
    {
        alert("Please type your message in the message field.");
        Form.userAddress.focus()
        return false
    }

}



