//<!-- script debugger code in HEAD -->
//<SCRIPT LANGUAGE="JavaScript">
//<!-- This script and many more are available free online at -->
//<!-- The JavaScript Source!! http://javascript.internet.com -->
//
//<!-- Begin
//
function reportError(msg,url,line) {
   var str = "Err: " + msg + " on line: "
   + line + "\nURL: " + url  + "\nWeb: "
   + navigator.appName + " " + navigator.appName
   + " " + navigator.appVersion;
   document.errform.error.value = str;
   return true;
}
//
window.onerror = reportError;
//
//  End -->
//<!-- End of script debugger code in HEAD -->


//<!-- This script is for linking to a popup page -->
//<!-- <LINK REL=STYLESHEET HREF="../stdstyles.css"> -->
function openWindow(myLink,windowName)
{
if(!window.focus)return;
var myWin=window.open("",windowName,"menubar,scrollbars,resizable,height=300,width=510,dependent=yes,scrollbars=yes,left=0,top=70");
myWin.focus();
myLink.target=windowName;
}
//-->
//<!-- End of script for linking to a popup page -->


//<!-- This script is for generating a random question from an array-->
//<!-- Save this script as QUESTION.JS unless you change the SRC= name -->
//<!-- to execute this javascript, put -->
//<!--           <BODY OnLoad="setupDescriptions()">
//<!--     and   <script doQuestion(); </script>  -->
//<!-- in the BODY of the HTML code -->
//<!--  hide code
//<!-- Begin
//<!-- Each array entry is [new Array("question","answer")].
//<!-- Note that the answer cannot contain quotes (" or ').
var QA = new Array();
var QA_num = 0 ;
  QA[QA_num++] = new Array("When is everything finished? ", "Everything is finished when the fat lady sings");
  QA[QA_num++] = new Array("Who invented copper wire? ", "Two tax attorneys fighting over a penny!");
  QA[QA_num++] = new Array("Do you know the definition of a good tax accountant? ", "Someone who has a loophole named after him");
  QA[QA_num++] = new Array("Who said.. If you do not think every day is a good one, just try missing one? ", "Zig Ziglar");
  QA[QA_num++] = new Array("Confusius say...  ", "Ambition without knowledge is like a boat on dry land");
  QA[QA_num++] = new Array("Lady is supermarket..Do those turkeys get any bigger? ", "Clerk..No lady, they are dead.");
  QA[QA_num++] = new Array("The big won't beat the small--- ", "The fast will beat the slow.  John Chambers, Cisco systems");
  QA[QA_num++] = new Array("Superstition is... ", "the dark side of wonder");
  QA[QA_num++] = new Array("Life is like pizza... ", "Even when its bad, its good.");
  QA[QA_num++] = new Array("A sharp tongue... ", "sometimes cuts its own throat.");
  QA[QA_num++] = new Array("The best climber in the world... ", "is the one having the most fun.");
  QA[QA_num++] = new Array("Don't worry that children never listen to you; ", "worry that they are always watching you.");
  QA[QA_num++] = new Array("It is better to sleep on things before-hand ", "than lie awake about them afterwards");
  QA[QA_num++] = new Array("Democracy is not a matter of entertainment, ", "it is a matter of engagement.");
  QA[QA_num++] = new Array("Like fire, money itself is not evil.. ", "It is neutral, its character determined by the eye of the perceiver, the hand of the user.");
  QA[QA_num++] = new Array("Young man in boat showing string of fish... ", "I would have stayed out longer, but I am getting married in an hour!");
  QA[QA_num++] = new Array("Did you hear about the new teenage Barbie?", "You wind it up and it resents you.");
  QA[QA_num++] = new Array("What's the difference between a dry cleaner and a lawyer?", "The cleaner pays if he loses your suit. A lawyer can lose your suit and still take you to the cleaners.");
  QA[QA_num++] = new Array("God made time,", "but man made haste.");
  QA[QA_num++] = new Array("Whoever said 'What you see is what you get'...", "never ordered from a spring seed catalogue.");
  QA[QA_num++] = new Array("More than kisses,", "letters mingle souls.");
  QA[QA_num++] = new Array("If one advances confidently in the direction of his dreams,", "he will meet with a success unexpected in common hours...Thoreau");
  QA[QA_num++] = new Array("He who has the gold,", "makes the rules");
  QA[QA_num++] = new Array("The accepting of a gift ", "returns honor to the giver ");
  QA[QA_num++] = new Array("If I tell a lie... ", "it is only because I think I am telling the truth! ..BC politician. ");
  QA[QA_num++] = new Array("Teacher: Does anybody know what \"information\" means? ", "Johnny: Airplanes flying side by side! ");
  QA[QA_num++] = new Array("You never know how many friends you have.. ", "until you rent a place at the beach. ");
  QA[QA_num++] = new Array("The mark of a real doctor.. ", "is usually illegible. ");
  QA[QA_num++] = new Array("Sometimes when people move in the fast lane... ", "the wheels come off. ");
  QA[QA_num++] = new Array("We've all known intimidation... ", "one mosquito in a dark bedroom. ");
  QA[QA_num++] = new Array("What is considered a living wage.. ", "depends on whether you pay it or get it. ");
  QA[QA_num++] = new Array("One of the loudest sounds in the world.. ", "is the first rattle in your new car. ");
  QA[QA_num++] = new Array("Those who don't know how... ", "Teach. ");
  QA[QA_num++] = new Array("Did you hear about the gentleman farmer? ", "He was out standing in his field. ");
  QA[QA_num++] = new Array("Sign seen on a bumper.. ", "Yes, this is my truck. No, I will not help you move. ");
  QA[QA_num++] = new Array("In knowing peace at home, ", "we bring peace to the world. ");
  QA[QA_num++] = new Array("Dream job... ", "running the complaint department after the meek inherit the earth. ");
  QA[QA_num++] = new Array("When is Easter? ", "On the first Sunday after the first full moon following the first day of spring, March 21. ");
  QA[QA_num++] = new Array("At my house... ", "dust is only a noun, not a verb. ");
  QA[QA_num++] = new Array("A principle cannot be compromised... ", "only adhered to or surrendered... Leonard E. Read. ");
  QA[QA_num++] = new Array("Honesty is abandoned... ", "as much by the theft of a dime as of a dollar... Leonard E. Read. ");
  QA[QA_num++] = new Array("Fear of failure... ", "will absolutely destroy you... Jack Lemmon ");
  QA[QA_num++] = new Array("We tend to forget that criticism.. ", "sometimes expresses greater respect than praise... Wendy Kaminer ");
  QA[QA_num++] = new Array("The top 10 ways to get kicked off a jury.. ", "10. When the prosecutor approaches the jury box, give him your drink order. ");
  QA[QA_num++] = new Array("The top 10 ways to get kicked off a jury.. ", "9. Snore so loudly that it wakes the other jurors. ");
  QA[QA_num++] = new Array("The top 10 ways to get kicked off a jury.. ", "8. Ask for a conjugal visit with the judges wife. ");
  QA[QA_num++] = new Array("The top 10 ways to get kicked off a jury.. ", "7. When items are held up to be entered as evidence, shout out a bid. ");
  QA[QA_num++] = new Array("The top 10 ways to get kicked off a jury.. ", "6. Snicker loudly when witnesses swear to tell the truth. ");
  QA[QA_num++] = new Array("The top 10 ways to get kicked off a jury.. ", "5. Wear a rainbow wig and hold up a JOHN 3:16 sign. ");
  QA[QA_num++] = new Array("The top 10 ways to get kicked off a jury.. ", "4. Leap from your seat and wrestle the service revolver from a court officer. ");
  QA[QA_num++] = new Array("The top 10 ways to get kicked off a jury.. ", "3. Show up three consecutive days with pie on your face. ");
  QA[QA_num++] = new Array("The top 10 ways to get kicked off a jury.. ", "2. Every time someone objects, knock back a Jell-O shot. ");
  QA[QA_num++] = new Array("The top 10 ways to get kicked off a jury.. ", "1. Refuse to remove your Walkman. ");
  QA[QA_num++] = new Array("Honesty ", "knows no boundaries. ");
  QA[QA_num++] = new Array("Dad: How was your soccer game son? ", "Son: Really good. If we just scored four more goals, we would have beat them by one point. ");
  QA[QA_num++] = new Array("Economists are the people that the Lord put on the earth.. ", "to make astrologers look good. ");
  QA[QA_num++] = new Array("Bottled water? ", "It all started at a marketing meeting in France, with some guy saying, --How dumb do I think Americans really are?-- ");
  QA[QA_num++] = new Array("A life without dreams... ", "is like a garden without flowers. ");
  QA[QA_num++] = new Array("Fall seven times... ", "get up eight. ");
  QA[QA_num++] = new Array("Never overnight today.. ", "what your can fax tomorrow. ");
  QA[QA_num++] = new Array("To stir is human... ", "to stay in bed, divine. ");
  QA[QA_num++] = new Array("Time heals all things... ", "except a leaky faucet. ");
  QA[QA_num++] = new Array("Hear no evil, see no evil and speak no evil, ", "and you will never get a job working for a tabloid. ");
  QA[QA_num++] = new Array("Some see the glass as half full, some half empty.. ", "I see the glass as too big. ");
  QA[QA_num++] = new Array("Adversity brings out the opportunity to test our mettle, ", "and to discover for ourselves the stuff of which we are made. ");
  QA[QA_num++] = new Array("Not a shred of evidence exists.. ", "in favor of the idea that life is serious. ");
  QA[QA_num++] = new Array("Millions long for immortality.. ", "who do not know what to do with themselves on a rainy Sunday afternoon.. Susan Brye ");
  QA[QA_num++] = new Array("A great marriage is not when the \"perfect couple\" comes together.. ", "It is when an imperfect couple learns to enjoy their differences.. Dave Meurer ");
  QA[QA_num++] = new Array("At the heart of the Internet culture.. ", "is a force that wants to find out everything about you.. Andrew Grove ");
  QA[QA_num++] = new Array("Brains, like hearts, ", "go where they are appreciated.. Robert S. McNamara ");
  QA[QA_num++] = new Array("A mind troubled by doubt.. ", "cannot focus on the course to victory.. Arthur Golden ");
  QA[QA_num++] = new Array("Night breeds... ", "its own sort of anticipation.. Jacqueline Carey ");
  QA[QA_num++] = new Array("You can't deny laughter; ", "when it comes, it plops down in your favorite chair and stays as long as it wants.. Stephen King ");
  QA[QA_num++] = new Array("Sooner or later... ", "we all quote our mothers.. Vern Williams ");
  QA[QA_num++] = new Array("Ask me no questions, ", "and I will tell you no lies. ");
  QA[QA_num++] = new Array("Under the B, 19.. ", "<font size=+6>BINGO!</font> ");
  QA[QA_num++] = new Array("Never slap a man's face... ", "while he is chewing tobacco...Will Rogers ");
  QA[QA_num++] = new Array("You know you\'ve slept like a log... ", "when you wake up in the fireplace. ");
  QA[QA_num++] = new Array("Definition of \"Bush pilot\"... ", "Commander of Air Force One. ");
  QA[QA_num++] = new Array("People who throw kisses are hopelessly lazy, ", "and they miss a lot of fun in life....Bob Hope ");
  QA[QA_num++] = new Array("She had a hard, bitter mouth which had eaten sour bread for so long... ", "that it had forgotten the taste of sweetness. ");
  QA[QA_num++] = new Array("Why is there so much month left... ", "at the end of the money?...John Barrymore ");
  QA[QA_num++] = new Array("The 10 scariest words in the English language... ", "I\\'m from the government and I\\'m here to help you. ");
  QA[QA_num++] = new Array("Nitrates... ", "A lot cheaper than day rates... Wileys\\'s  Dictionary ");
  QA[QA_num++] = new Array("con-vince... ", "What you have to do to get a free painting from Van Gogh...Wiley\\'s dictionary ");
  QA[QA_num++] = new Array("What\'s the difference between a lawyer and a halibut? ", "One is a scum-sucking bottom feeder and the other is a fish. ");
  QA[QA_num++] = new Array("Why won\'t sharks attack lawyers? ", "Professional courtesy ");
  QA[QA_num++] = new Array("Why should science labs use lawyers instead of rats for experiments?", "1. So students won\\'t get attached to them. ");
  QA[QA_num++] = new Array("Why should science labs use lawyers instead of rats for experiments? ", "2. Because there are some things a rat won\\'t do. ");
  QA[QA_num++] = new Array("Why should science labs use lawyers instead of rats for experiments? ", "3. Animal rights activists don\\'t care if you torture lawyers.");
  QA[QA_num++] = new Array("Why are lawyers like enemas? ", "You hate them until you need one, then you still hate them. ");
  QA[QA_num++] = new Array("What\'s wrong with lawyer jokes? ", "Lawyers don\\'t think they\\'re funny, and nobody else thinks they\\'re jokes. ");
  QA[QA_num++] = new Array("What\'s the difference between God and a lawyer?  ", "God doesn\\'t think he\\'s a lawyer. ");
  QA[QA_num++] = new Array("How can you tell when a lawyer is lying? ", "Her lips are moving. ");
  QA[QA_num++] = new Array("What do lawyers do after they die? ", "They lie still. ");
  QA[QA_num++] = new Array("What\'s the difference between a tick and a lawyer? ", "The tick drops off when you are dead. ");
  QA[QA_num++] = new Array("What do lawyers use for birth control? ", "Their personalities. ");
  QA[QA_num++] = new Array("What do you have if three lawyers are buried up to their necks in cement? ", "Not enough cement. ");
  QA[QA_num++] = new Array("What is the ideal weight of a lawyer? ", "About three pounds, including the urn. ");
  QA[QA_num++] = new Array("If at first you don't succeed, ", "skydiving definitely isn\\'t for you. ");
  QA[QA_num++] = new Array("God says... ", "Don\\'t make me come down there. ");
  QA[QA_num++] = new Array("Learn from the mistakes of others.. ", "You won\\'t live long enough to make them all yourself.");
  QA[QA_num++] = new Array("When a man opens the car door for his wife... ", "it\\'s either a new car or a new wife... Prince Philip. ");
  QA[QA_num++] = new Array("Never drive faster ", "Than your Guardian Angel can fly! ");
  QA[QA_num++] = new Array("If one advances confidently in the direction of his dreams, ", "he will meet with a success unexpected in common hours...Thoreau. ");
  QA[QA_num++] = new Array("What is bigger and rounder on the Japanese Barbie than on the American Barbie? ", "Her eyes. ");
  QA[QA_num++] = new Array("Who invented the first talking doll? ", "Thomas Edison in 1888. ");
  QA[QA_num++] = new Array("What did the son of famous architect Frank Lloyd Wright, invent? ", "Lincoln Logs. ");
  QA[QA_num++] = new Array("After what furniture designer were the Disney chipmunks named? ", "Thomas Chippendale. ");
  QA[QA_num++] = new Array("What was the original name of the Walt Disney character, Mickey Mouse? ", "Mortimer Mouse. ");
  QA[QA_num++] = new Array("What cartoon character was modeled after fictional radio personality, Senator Claghorn? ", "Foghorn Leghorn. ");
  QA[QA_num++] = new Array("Before the words were written, what was the working title of the Beatles hit, Yesterday? ", "Scrambled Eggs. ");
  QA[QA_num++] = new Array("Which lasted longer - the TV show M.A.S.H. or the real Korean war? ", "The TV show. ");
  QA[QA_num++] = new Array("Name a 19th century Engllish bartender after whom a popular drink was named? ", "Tom Collins. ");
  QA[QA_num++] = new Array("How  much time will the average person spend looking for misplaced objects in his lifetime? ", "One year in total. ");
  QA[QA_num++] = new Array("Do giraffes have more bones in their necks than other animals? ", "No, just the longest necks. ");
  QA[QA_num++] = new Array("Which are there more of in the world - plastic lawn flamingos or real ones? ", "Plastic. ");
  QA[QA_num++] = new Array("A man who can\'t be by himself is a man who knows, ", "away down deep, that he\\'s not good company. ");
  QA[QA_num++] = new Array("A wise man speaks when he has something to say;", "A fool speaks when he has to say something.");
  QA[QA_num++] = new Array("You never really lose..", "until you quit trying...Mike Ditka ");
  QA[QA_num++] = new Array("If you can\'t be a good example,", "then you\'ll just have to be a horrible warning...Catherine Aird ");
  QA[QA_num++] = new Array("While intelligent people can often simplify the complex, ", "a fool is more likely to complicate the simple...Gerald W. Grumet ");
  QA[QA_num++] = new Array("What is the disease tetanus otherwise known as? ", "Lockjaw ");
  QA[QA_num++] = new Array("When was plastic invented? ", "1868 ");
  QA[QA_num++] = new Array("A substance with a pH lower than 7 is known as what? ", "An acid ");
  QA[QA_num++] = new Array("What do bulletproof vests, fire escapes, windshield wipers, and laser printers all have in common? ", "They were all invented by women ");
  QA[QA_num++] = new Array("What is a pregnant goldfish called? ", "A twit ");
  QA[QA_num++] = new Array("My mind works like lightning... ", "One brilliant flash and it\'s gone. ");
  QA[QA_num++] = new Array("The light at the end of the tunnel.. ", "has been turned off due to budget cuts. ");
  QA[QA_num++] = new Array("Artificial intelligence is no match... ", "for Natural Stupidity! ");
  QA[QA_num++] = new Array("Love: ", "A temporary insanity curable by marriage.. Ambrose Bierce, born in 1842.");
  QA[QA_num++] = new Array("The days pass by so quickly now,", "the nights are seldom long -- Anonymous");
  QA[QA_num++] = new Array("Those who stand for nothing...", " fall for anything..Alexander Hamilton, 1757.");
  QA[QA_num++] = new Array("Lack of proper prior planning on your part", "does not constitute an emergency on mine ");
  QA[QA_num++] = new Array("If you failed to plan,", "you planned to fail.");
  QA[QA_num++] = new Array("Don\'t judge yourself by what you do,", "but by the meaning you bring to it.");
  QA[QA_num++] = new Array("Canada is a country so square..", "that even the female impersonators are women!..Richard Brenner");
  QA[QA_num++] = new Array("Outsourcing is akin to making a skyscraper taller..", "by taking material from its lower floors.--Byron Katz");
  QA[QA_num++] = new Array("Light travels faster than sound.", "That’s why people appear bright until they open their mouths.");
  QA[QA_num++] = new Array("‘I am.’", "is the shortest complete sentence in the English language.");
  QA[QA_num++] = new Array("", "");
//  QA[QA_num++] = new Array(" ", " ");

//  QA[99] = new Array("haha ", "ho ho\\'s, hehe\\'s, heh heh\\'s ");

//                        <!-- generate random number -->
var xQA, yQA, a, b;
var ql = QA.length - 1;
var qx = Math.round(Math.random() * ql);
//if (qx < 0) { qx = 0; };   <!-- probably not needed...   -->
// qx=102 ;      // debug
xQA=QA[qx][0], yQA=QA[qx][1];   //<!-- put question and answer in variables -->
var isNav = (navigator.appName.indexOf("Netscape") != -1);
var Ypos = 0;

function setupDescriptions() {
//  alert("in setupDescriptions")
    var x2 = navigator.appVersion;
    y2 = x2.substring(0,4);
    if (y2 >= 4) setVariables();
}

function setVariables() {
    if (navigator.appName == "Netscape") {
        h=".left="; v=".top="; dS="document."; sD="";
    }
    else {
        h=".pixelLeft="; v=".pixelTop="; dS=""; sD=".style";
    }
}

function popLayer(a) {
    var y2 = 0 ;
//  var y2 = 40 ;  <!-- if want answer below question -->
    desc = "<table cellpadding=3 border=1 bgcolor=F7F7F7><td>" + a + "</td></table>";
    if(isNav) {
       document.q1.document.write(desc);
       document.q1.document.close();
       document.q1.left = x+25;
       document.q1.top = y+y2;
    }
    else {
       y = Ypos - 15;
       q1.innerHTML = desc;
       eval(dS+"q1"+sD+h+(x+25));
       eval(dS+"q1"+sD+v+(y+y2));
    }
}

function hideLayer(a) {
    if(isNav) {
       eval(document.q1.top = a);
    }
    else q1.innerHTML = "";
}

function doQuestion() {
    var text;
    if (!isNav) {
       text = "<div id=\"q1\" style=\"position:absolute; "
       + "visibility:show; left:25px; top:-50px; z-index:2\">"
       + "layer hidden off the screen</div><br>"
       + "<a nohref onMouseover=\"popLayer('" + yQA + "')\" "
       + "onMouseout=\"hideLayer(-50)\"><font size=+1 "
       + "color=\"#FF00FF\">" + xQA + "</font></a><br>";
//     + "color=\"#FF00FF\"><B>" + xQA + "</B></font></a><br>"; //<!-- if want BOLD -->
    }
    if(isNav) { //<!-- Note that this is the best I can do for Netscape... -->
//     text = "<br><a href onmouseover=\"status='" + yQA + "!');return "  //<!-- ans in status bar -->
       text = "<br><a href onmouseover=\"alert('" + yQA + "!');return "  //<!-- ans in alert -->
       + "true\" onmouseout=\"status=' '\"><font size=+1 "
       + "color=\"#FF00FF\">" + xQA + "</font></a><br>";
//     + "color=\"#FF00FF\"><b>" + xQA + "</b></font></a><br>"; //<!-- if want BOLD -->
    }
    document.write(text);
}

function handlerMM(e) {
    x = (isNav) ? e.pageX : event.clientX;
    y = (isNav) ? e.pageY : event.clientY;
    if (!isNav) { Ypos = window.event.y + document.body.scrollTop; }
}

if (isNav) {
    document.captureEvents(Event.MOUSEMOVE);
}
document.onmousemove = handlerMM;

//<!-- If they want another question,
//     strip any back-slashes out of the answer -->
function getQuestion() {
//  window.alert("In getQuestion. qx = "+qx);
    var qx = window.prompt('Enter a number between 0 and ' + (QA.length-2) + ':',Math.round(Math.random() * ql));
    xQA=QA[qx][0], yQA=QA[qx][1];   //<!-- put question and answer in variables -->
    var loc1 = yQA.length ;
    var temp ="" ;
    var i=0;
    while (i<loc1) {
       var loc = yQA.indexOf("\\",i) ;
//       window.alert("In getQuestion. loc = "+loc);
       if (loc > 0) {
	       temp = temp + yQA.substring(i,loc);
	       i = loc+1 ;
//       window.alert("temp=" + temp +", loc = "+loc);
       }
	    else {
          yQA = temp + yQA.substring(i,loc1); ;
          i = loc1 ;
       }
	 }
    window.alert(xQA + '\n\n' + yQA);
}

//  End -->

//<!-- End of script for generating a variable list of questions -->

