

///////////////////////////////////////////////////////////////////////////////////////////////
/* 	ponder.js
	Code was created by C. Eton. Statement author unknown.  
 
 	Only 1 item need to be edited:

	1.  The Statements array variable.

*///////////////////////////////////////////////////////////////////////////////////////////////



///////////////////////////////////////////////////////////////////////////////////////////////
// List the statements to display.  Add statements as necessary.  


var Statements = new Array(

	'To ensure your computer\'s security, set up a password-protected administrative account, and routinely use a \"limited\" user account. It maybe a bit inconvenient at times - you have to enter the admin password to install anything - but it means most malware can\'t get installed and there\'s always an a...dministrative account to make recovery much simpler. Saves money, saves your information. Better all round. ',
	'Many computers have inadequate cooling: we just upgraded a computer with 3 hard disks and 3 expansion cards - and only the Power Supply fan! The power supply fan is NOT a cooling fan for anything but the power supply. And although I\'m not in favour of using more power than is needed, shortening the life of your computer by overheating it is not smart! ',
	'Leaving your PC on with a screen-saver is like leaving a light on - a good PC is like an 80W light, a poorly designed PC a 250W light. Enabling power management is a good step \(if you\'re running XP, download Verdiem Edison\)  but turning your PC off is better. And remember that some PCs with cheap power supplies can use 40W on standby - so turn off at the wall! ',
	'A computer sucks in large volumes of air for cooling. This is good. But what is drawn in with the air - dust - is not so good: it can destroy the computer. Keeping it out is better than filtering, and much better than cleaning. So keep your PC OFF the floor - where most of the dust is. If you must put it on the floor, then make sure it isn\'t in the same air-space as your feet, which kick up large quantities of dust. ',
	'When you have multiple computers - desktops, laptops, smart-phones, etc - all checking the same email account, be sure that they aren\'t downloading and deleting emails that you may want on another computer. And don\'t rely on the \"Leave messages on server\" setting; it doesn\'t always work, and can therefore have serious consequences; and your ISP probably doesn\'t allow much space for your emails. ',
	'Want to keep your PC running - and your files safe? We\'ve seen a hard disk, with all its files - as well as other PC parts - toasted by power spikes. One of the best investments is a surge/spike protector; but don\'t expect to pay less than around $50 for a good one: the cheap and cheerful ones from the supermarket are pretty much useless. To go one step further, but a small UPS as well, to prevent damage from brownouts. ',
	'When you buy a printer, camera or similar, install onto your PC ONLY the software you plan to use; and when you replace the device, uninstall the software. Most popular devices come with lots of software that most owners never use, but which loads on boot and takes resources from other processes, slowing the computer down. ',
	'When you buy a computer: please, oh please, save the DVDs you get with it. If you didn\'t get any, use the system\'s utility to create recovery media - or go back and ask for them. Then store them somewhere you can find them - it will save you a lot of time and money if the system ever needs to be serviced. ',
	'Did you know that running a server 24/7 isn\'t necessary - and maybe isn\'t wise? The more you run hardware, the sooner it will wear out, and it is simple to automate shut-down and start-up. The only reasons for extended operating hours are backup schedules (which can usually be changed) and usage - on-site or remote. So ... turn it off, save the hardware - and save the power. ',
	'Buying a computer is like buying clothes: you can buy a quality brand (good) or a cheap brand (not so good); you can buy from a local specialist (good) or from a hobbyist (probably not so good). Also, you can buy from a specialist clothes store (good) or help yourself in a department store (not so good). It\'s your choice! ',
	'More security software isn\'t more secure - it\'s often less. Some can\'t co-exist with or will trigger others, and some is part of the problem. “Scareware” is sold by creating fear of an infection (which isn\'t real) and offering software (which doesn\'t exist) to “cure” the problem. Get just one program that does the job, keep it updated – and then trust it. ',
	'Most virus-affected PCs we see these days are infected because the user saw a security warning with a \"Click here to fix\" button whilst on-line; clicking installed the virus. A good idea is to visit Web of Trust \(http://www.mywot.com/\) and install the plug-in for your browser\/s; it will give a safety rating for each website link - before you click on it. '
);


/*
	GetStatement( ) is the primary function.  It assumes the following:
	
	1.  The HTML file contains a form named "statementform".
	2.  Within the statement form, there is a textarea or textbox named "statement".               */

function GetStatement(outputtype) //modified by javascriptkit.com to either write out result or set innerHTML prop
{
	if(++Number > Statements.length - 1) Number = 0;
	if (outputtype==0)
	document.write(Statements[Number])
	else if (document.getElementById)
	document.getElementById("ponder").innerHTML=Statements[Number];
}


//  The GetRandomNumber( ) function extracts a random number within a given range.


function GetRandomNumber(lbound, ubound) 
{
	return (Math.floor(Math.random() * (ubound - lbound)) + lbound);
}


// The Number variable keeps track of which statement to display.  It will start at a random point.                

var Number = GetRandomNumber(0, Statements.length - 1);







