window.onload = initAll;

function initAll () {
	RandomQuote();
	document.getElementById("header").onclick = function () { window.location = "."; };
}
function RandomQuote () {
	var quoteBox = document.getElementById("quotes");
	var quotes = new Array(
		"Computers are useless.  They can only give you answers.",
		"That’s what’s cool about working with computers.  They don’t argue, they remember everything, and they don’t drink all your beer.",
		"There are two major products that come out of Berkeley: LSD and UNIX.  We don’t believe this to be a coincidence.",
		"Come to think of it, there are already a million monkeys on a million typewriters, and Usenet is nothing like Shakespeare.",
		"Good code is its own best documentation.",
		"The first 90% of the code accounts for the first 90% of the development time.  The remaining 10% of the code accounts for the other 90% of the development time.",
		"To err is human, but to really foul things up you need a computer."
		);
	var x = quotes.length;
	var showQuote = quotes[Math.round(Math.random()*(x-1))];
	quoteBox.innerHTML = showQuote;
}
function selectText(id) {
	document.getElementById(id).focus();
	document.getElementById(id).select();
}
