function rndnumber(howMany){
var randscript = -1;
	while (randscript < 0 || randscript > (howMany-1) || isNaN(randscript)){
		randscript = parseInt(Math.random()*(howMany+1));
	}
	return randscript;
}

function fact() {

var factNum = 30;  // max number of items listed below
var entry = new Array(factNum+1);

entry[0]='In 10 minutes, a hurricane releases more energy than all the world\'s nuclear weapons combined.';
entry[1]='Women blink nearly twice as much as men.';
entry[2]='A snail can sleep for three years.';
entry[3]='The electric chair was invented by a dentist. (hummmmmm)';
entry[4]='In ancient Egypt, priests plucked EVERY hair from their bodies, including their Eyebrows and Eyelashes.';
entry[5]='Thirt-five percent of the people who use personal ads for dating are already married.';
entry[6]='Americans on average eat 18 acres of pizza everyday.';
entry[7]='The only domestic animal not mentioned in the Bible is the cat.';
entry[8]='The "dot" over the letter "I" is called a tittle.';
entry[9]='The house fly hums in the middle octave key of F.';
entry[10]='Tigers have striped skin, not just striped fur.';
entry[11]='Hummingbirds are the only animals that can fly backwards.';
entry[12]='A cockroach will live nine days without it head before it starves to death.';
entry[13]='The human heart creates enough pressure when it pumps out of the body to squirt blood 30 feet.';
entry[14]='The flea can jump 350 times its body length. It\'s like a human jumping the length of a football field.';
entry[15]='There are 293 ways to make change for a dollar.';
entry[16]='Peanuts are one of the ingredients of dynamite.';
entry[17]='On the Canadian two dollar bill, the flag flying over the Parliament building is an American Flag.';
entry[18]='A dime has 118 ridges round the edge.';
entry[19]='Al Capone\'s business card said he was a used furniture dealer. ';
entry[20]='All the clocks in the movie "Pulp Fiction" are stuck on 4:20.';
entry[21]='A 2"x 4" is really 1-1/2" by 3-1/2" ';
entry[22]='The name Wendy was made up for the book "Peter Pan". There was never a recorded Wendy before.';
entry[23]='The original name for butterfly was flutterby.';
entry[24]='The phrase "rule of thumb" is derived from an old English law which stated that you couldn\'t beat your wife with anything wider than your thumb.';
entry[25]='The glue on Israeli postage stamps is certified kosher.';
entry[26]='Bats always turn left when exiting a cave.';
entry[27]='Ketchup was sold in the 1830\'s as medicine.';
entry[28]='315 entries in the Webster\'s dictionary were misspelled.';
entry[29]='The \'spot\' on 7UP comes from its inventor who had red eyes. He was albino.';

entryNum = rndnumber(factNum);
fact = entry[entryNum];
document.write(fact);

}