function firstJoke( jokeForm, jokeID ) {

	var jokeCount = jokes.length - 1;
	var r = Math.floor(Math.random() * jokeCount) + 1;
	
	if ( document.forms[jokeForm].elements[0] ) {
	
		document.forms[jokeForm].elements[0].value = r;
	}
	
	changeJoke(jokeID, r);
}

function changeJoke( jokeID, jokeNumber ) {

	if ( document.getElementById(jokeID) ) {

		document.getElementById(jokeID).innerHTML=jokes[jokeNumber];
	}
}


// Initialize array of jokes.
//
// Note: The jokes are simply pieces of well-formed HTML.
//
var jokes = [];

jokes[1] = "<img src='./smiles/RickLondon_Moonhere_opt.gif'><p><b>You know you're a Deep Sky person when...</b><p><ol><li>... you consider the moon a major annoyance.<li>... you consider Jupiter 'light pollution'.<li>... you spend most of your time looking at or for objects you can barely see.<li>... your favorite objects are objects you can barely see.<li>... you enjoy looking at faint fuzzies with the smallest possible aperture.<li>... you enjoy looking at faint fuzzies with the largest possible aperture.<li>... you like to choose objects that are easier to imagine than to see.<li>... your observing schedule demands that you search for objects in twilight.<li>... you keep thinking that if only the stars would go away, it might really get dark.<li>... you wonder how your favorite objects missed getting included in the New General Catalog or the Index Catalog.";

jokes[2] = "<b>A Few Reasons Why Astronomy Is Better Than Sex:</b><ol><li>Guaranteed to get at least a little something in view.<li>If you get tired, wait 10 minutes and go at it again.<li>Nobody cares if you are ugly.<li>You don't have to compliment the person who gave you a peek.<li>Person you're with doesn't fantasize youíre someone else.<li>40 years from now, you can still participate regularly.<li>Doesn't matter if kids hear you moaning, oohing and aahhing.<li>Less guilt the next morning.";

jokes[3] = "<b>DANGER!!! BLACK HOLE LOCATED BELOW</b><p><a href='./smiles/blackholedeath.htm'><img src='./smiles/blackholesuck.gif'><p><b>DO NOT CLICK ON IT</b>";

jokes[4] = "<b>EDITOR'S NOTE:</b> With publication of this paper we are hereby amending our longstanding policy regarding co-authors. Previously we rejected any research paper that had more than ten co-authors. Many of our contributors, especially high-energy physicists, have pointed out that in some fields, especially high energy physics, research journals routinely publish papers that have one hundred or more co-authors. Accordingly, we are removing the restriction.<p><u>The Effects of Peanut Butter on the Rotation of the Earth</u><p>by <i>George August, Ph.D., Anita Balliro, Ph.D., Pier Barnaba, Ph.D., Anne Battis, Ph.D., Constantine Battis, Ph.D., John Battis, Ph.D. Nathaniel Baum, Ph.D., S. Becket, Ph.D., A. G. Bell, Ph.D., Moe Berg, Ph.D., B. J. Bialowski, Ph.D., Edward Biester, Ph.D., Joseph Blair, Ph.D., Ceevah Blatman, Ph.D., Ken Bloom, Ph.D., I. V. Boesky, Ph.D., Dorothy Bondelevitch, Ph.D., Calliope Boratgis, Ph.D., K. T. Boundary, Ph.D., Gerald Brennan, Ph.D., Nuala Broderick, Ph.D., James Burke, Ph.D., Richard Butkus, Ph.D., James Carter, Ph.D., Alexander Cartwright, Ph.D., Caren Cayer, Ph.D., Mary Chung, Ph.D., W. Spencer Churchill, Ph.D., M. Louise Ciccone, Ph.D., Theodore B. Cleaver, Ph.D., Selma Frances Coltin, Ph.D., Carlos Cordeiro, Ph.D., Theodore Crabtree, Ph.D., Samuel Cunningham, Ph.D., James Michael Curley, Ph.D., Gwen Davis, Ph.D., Paul Delamere, Ph.D., R. C. De Bodo, Ph.D., P. deMan, Ph.D., Arthur Derfall, Ph.D., Helen Diver, Ph.D., Edward Doctoroff, Ph.D., Robert Dorson, Ph.D., Wayne Drooks, Ph.D., William Claude Dukinfield, Ph.D., James Durante, Ph.D., Alan Dyson, Ph.D., Raeline Eaton, Ph.D., D. D. Eisenhauer, Ph.D., Kent Fielden, Ph.D., Elizabeth Finch, Ph.D., Raymond Flynn, Ph.D., Charles Follett, Ph.D., Kevin Forshay, Ph.D., George Frazier, Ph.D., Katherine Fulton, Ph.D., R. J. Gambale, Ph.D., Jerome Garcia, Ph.D., Judith Garland, Ph.D., Hannah Gilligan, Ph.D., Daniel Goldfarb, Ph.D., Michael Goldfarb, Ph.D., Archie Goodwin, Ph.D., Yulia Govorushko, Ph.D., Sharon P. D. Greene, Ph.D., David W. Griffith, Ph.D., Sheldon Gulbenkian, Ph.D., Frances Gumm, Ph.D., R. O. Guthrie, Ph.D., Kathleen Gygi, Ph.D., Margo Hagopian, Ph.D., Richard Hannay, Ph.D., Joseph Hardy, Ph.D., Stephen Hardy, Ph.D., Gary Hartpence, Ph.D., Edward Haskell, Ph.D., S. J. Hawkins, Ph.D., Kevin Hegg, Ph.D., Lilly N. Hellman, Ph.D., Robert A. Hertz, Ph.D., Louise D. Hicks, Ph.D., Lyndon Holmes, Ph.D., Mycroft Holmes, Ph.D., O. W. Holmes, Ph.D., Tardis Hoo, Ph.D., J. E. Hoover, Ph.D., E. A. Horton, Ph.D., Lawrence Howard, Ph.D., Moe Howard, Ph.D., Ginger Hsu, Ph.D., David Hubbs, Ph.D., Loretta Huttlinger, Ph.D., Stanley Hwang, Ph.D., Harriet Kasden, Ph.D., Susan Jablonski, Ph.D., Mittie Jackson, Ph.D., Rebecca Johnson, Ph.D., Deacon Jones, Ph.D., Edward T. T. Jones, Ph.D., Conrad Joseph, Ph.D., K. T. Kanawa, Ph.D., Liza Karpook, Ph.D., Daniel Kaye, Ph.D., William Keeler, Ph.D., Waldemar Kester, Ph.D., John M. Keynes, Ph.D., Olga Korbut, Ph.D., Susan Krock, Ph.D., Kerran Lauridson, Ph.D., Nicholas Leone, Ph.D., Meg Anne Lesser, Ph.D., Lucille S. Levesque, Ph.D., Joseph Lichtblau, Ph.D., Barbara Linden, Ph.D., Robert Lippa, Ph.D., Charles Lovejoy, Ph.D., Frances Lynch, Ph.D., Thomas Maccarone, Ph.D., Maureen Madigan, Ph.D., James Mahoney, Ph.D., Catherine Maloney, Ph.D., Jules Maigret, Ph.D., G. Maniscalco. Ph.D., Ray B. B. Mancini, Ph.D., Julius Marx, Ph.D., Cynthia Mason, Ph.D., James Matoh, Ph.D., Abigail Mays, Ph.D., Zachariah Mays, Ph.D., Charles McCarthy, Ph.D., Joseph McCarthy, Ph.D., Ann McKechnie, Ph.D., Charles Augustus Milverton, Ph.D., Robert Mishkin, Ph.D., Jack Moran, Ph.D., Charles Morgan, Ph.D., Stephen Mosher, Ph.D., Lisa Mullins, Ph.D., Sarah Natale, Ph.D., Ned Newton, Ph.D., R. M. Nixon, Ph.D., Grover Norquist, Ph.D., Ngai Ng, Ph.D., Kevin O'Malley, Ph.D., Joel Orloff, Ph.D., Frank Patterson, Ph.D., John Pesky, Ph.D., Peter Pienar, Ph.D., Margaret Pinette, Ph.D., Philip Ravino, Ph.D., Celia Reber, Ph.D., Bertrand Roger, Ph.D., Frederick Rogers, Ph.D., Dexter Rosenbloom, Ph.D., George H. Ruth, Ph.D., Kathleen Rutherford, Ph.D., Robert Ryder, Ph.D., George Scheinman, Ph.D., Aimee Semple, Ph.D., William Shoemaker, Ph.D., Joseph Slavsky, Ph.D., Olivia Smith, Ph.D., Simon Silver, Ph.D., Orenthal J. Simpson, Ph.D., Jeffrey Spaulding, Ph.D., Richard Starkey, Ph.D., David Alan Steele, Ph.D., Y. Struchkov, Ph.D., Quentin Sullivan, Ph.D., Ann Sussman, Ph.D., Ezra Tamsky, Ph.D., Kumiko Terezawa, Ph.D., Marge Thatcher, Ph. D., Mark Theissen, Ph.D., Marilyn Tucker, Ph.D., Christina Turner, Ph.D., Brenda C. W. Twersky, Ph.D., Frederick A. Von Stade, Ph.D., F. Skiddy Von Stade, Ph.D., Bertha Vanation, Ph.D., William Veeke, Ph.D., Norma Verrill, Ph.D., Y. Y. Vlahos, Ph.D., Marko Vukcic, Ph.D., Paul Waggoner, Ph.D., Teresa Wallace, Ph.D., Thomas Waller, Ph.D., J. Ward, Ph.D., John H. Watson, M.D., Michael Weddle, Ph.D., Merton Weinberg, Ph.D., Lawrence Welk, Ph.D., Kevin White, Ph.D., Andrew Williams, Ph.D., John Williams, Ph.D., Theodore Williams, Ph.D., William Williams, Ph.D., Eileen Wynn, Ph.D., Chin-chin Yeh, Ph.D., and Ethel Youngman, Ph.D.</i><p> So far as we can determine, peanut butter has no effect on the rotation of the earth."

jokes[5] = "<h3>Beware: Some Real Groaners</h3>An astronomer is on an exedition to Darkest Africa to observe a total eclipse of the sun when he's captured by cannibals. The eclipse is due the next day around noon. To gain his freedom he plans to pose as a god and threaten to extinguish the sun if he's not released, but the timing has to be just right. So, in the few words of the cannibal's language he knows he asks his guard what time they plan to kill him.<p>The guard replies <i>Tradition has it that captives are to be killed when the sun reaches the highest point in the sky on the day after they're captured. Then they may be cooked and ready for the evening meal</i>.<p>The astronomer thinks <i>Great, this should work perfectly.</i><p>Then the guard says, <i>But since everyone's so excited about it, in your case we're going to wait until after the eclipse</i>.<hr>Child: Which is closer, Melbourne or the moon?<p>Blonde Mother: *Sigh* Can you see Melbourne?<hr>A theologian and an astronomer were talking together one day.<p>The astronomer said that after reading widely in the field of religion, he had concluded that all religion could be summed up in a single phrase.<p><i>Do unto others as you would have them do unto you</i>, he said, with a bit of smugness, knowing that his field is so much more complex.<p>After a brief pause, the theologian replied that after reading widely in the area of astronomy he had concluded that all of it could be summed up in a single phrase also.<p><i>Oh, and what is that?</i> the astronaut inquired.<p><i>Twinkle, twinkle, little star; how I wonder what you are!</i>";

jokes[6] = "<img src='./smiles/astron07.gif'>";

jokes[7] = "<h3>Police Those Star Parties!</h3>(Advice from another Club)</p>The star parties staged by our astronomy club were becoming unruly and chaotic. Perhaps you've noticed the same trend in your own club observing sessions. Do your typical group nights consist of telescopes careening rapidly from one bright object to another - a minute on M13, another minute for the Andromeda Galaxy, a brief glimpse at the Ring Nebula? Observing at excessive speeds is a common infraction. Another is the stunting that some observers revel in. They claim to see targets like Palomar 4, a magnitude 14 globular cluster, in a 4-inch telescope and then have the nerve to boast for all to hear, <i>But it's real easy to see!</i><p>Another insidious practice that is becoming more widespread occurs when lazy observers rush over to see an object that a more disciplined amateur has found after spending half the night star-hopping to its obscure location. Such thievery of photons is unconscionable. What's more, these parasitic observers then glance through the victim's finderscope or Telrad finder so they can sight the location of the target and quickly sweep up the same object in their telescopes. They then add insult to injury by claiming to have found the object themselves. Such claims are illegitimate in our minds. Guilty parties should be stripped of their Messier badges.<p>The disorderly conduct was becoming to much to handle. The trend had to stop. To stem the tide of unruly observing, our club formed a much-feared but effective Observing Police. Their job: bring discipline and good observing skills to the uncontrolled nighttime mob. It was a tough job, but someone had to do it.<p>To enforce order, our Observing Police regularly patrol local star parties. Armed with red flashlights, they inspect observers and hand out citations for any observing they feel does not conform to the high standards we are attempting to instill. Citations that the Police have recently issued include:<p><ol><li>OBSERVING TOO QUICKLY - A speed of 5 objects per hour is in force at our observing site. All objects must be sketched and sketches must be available for inspection during random spot checks. PENALTY: Confiscation of eyepieces.<li>OPERATING A TELESCOPE IN AN UNSAFE MANNER - Includes bonking people on the head with the tube of a long refractor or wiring a telescope tube to a high-voltage generator to create a giant 'dew-zapper' effect. PENALTY: Observing with said telescope.<li>STUNTING - Such as claiming to see invisible objects. PENALTY: Thirty days Solar observing. A further crime is claiming to actually see detail in invisible objects. PENALTY: Immediate promotion to club president.<li>RECKLESS OBSERVING - You're guilty if you think you see objects not actually being viewed. (such as exclaiming that <i>the Cocoon Nebula is really bright!</i> when the telescope is pointed at the Andromeda Galaxy). Also includes viewing objects with inappropriate filters and magnifications (such as scanning the Pleiades at 900X with an O III filter). PENALTY: One night in the Coma-Virgo galaxy cluster with a 60 mm telescope and an old Norton's Star Atlas as your only guide. <li>IMPAIRED OBSERVING - On one occasion an observer was caught trying to find an apparently interesting object called NGP. <i>But it's marked right here on my atlas!</i> he protested, not realizing the object was, in fact, the North Galactic Pole. Carefully searching for deep-sky objects with a sub-aperature planetary mask in place over a Dobsonian is also subject to ticketing. TYPICAL PENALTY: Tracking down all the Messier objects- in numerical order.<li>IMPERSONATING AN OBSERVER - Infractions include arriving at an observing site in July with a 20-inch telescope with the intention of observing the Orion Nebula. Or owning a 20-inch telescope with digital setting circles and never looking at anything except the brightest Messier objects. PENALTY: A mandatory one-night Messier Marathon- WITHOUT the digital circles.</ol><p>Our Observing Police have also found a lucrative method of raising money for Club activities - mostly to purchase Nagler eyepieces for all the club executives. We now require that all observers buy observing licenses. We set the highest fees for the brightest objects. This discourages people from partaking in the tiresome and unproductive practice of observing the same bright objects over and over again.<p>Our license fee structure is as follows:<p>Moon $1000.00 <BR>Planet $500.00 <BR>Galaxy $20.00 <BR>Planetary Nebula $10.00 <BR>Orion Nebula $1000.00 <BR>All other diffuse nebulae $2.50 <BR>M13 $1000.00 <BR>All other globulars $1.50<BR>Open clusters and double stars FREE <BR>Comets and Meteors 3 for $1.00<BR>In addition, novice observers must obtain a learner's permit, at a cost of $50.00.<p>By enforcing these regulations we have found that our star parties are now much easier to manage. Gone is the boisterous, uncontrolled enthusiasm of the past. The chaos has been replaced by a quiet, disciplined observing that is a credit to amateur astronomy. Perhaps your club will follow our lead.";

jokes[8] = "<b>Q: How many astronomers does it take to change a light bulb?</b><p><b>A:</b><ol><li>Ten! One to change the bulb, and nine to argue how their own bulb gives better colour.<li>None! Astronomers aren't afraid of the dark.<li>See the FAQs.<ul><li><i>What sort of light bulb should I buy?</i><li><i>Should I start with a candle?</i><li><i>Where should I buy my light bulb?</i><li><i>Where NOT to buy a light bulb.</i><li><i>What type of light bulb to avoid?</i><li><i>What will I be able to see with my bulb?</i><li><i>How do I deal with telescope-pollution?</i><li><i>Can I buy a bulb for a friend?</i><li><i>Can I use my bulb in the daytime?</ul></ol>";

jokes[9] = "<b>Ten commandments for amateur astronomers:</b><ol><li>Thou shalt have no white light before thee, behind thee, or to the side of thee whilst sharing the night sky with thy fellow stargazers.<li>Thou shalt not love thy telescope more than thy spouse or thy children; as much as, maybe, but not more.<li>Thou shalt not covet thy neighbor's telescope, unless it exceeds in aperture or electronics twice that of thy wildest dreams.<li>Thou shalt not read <i>Astronomy</i> or <i>Sky & Telescope</i> on company time, for thine employer makes it possible to continue thine astronomical hobby.<li>Thou shalt have at least two telescopes so as to keep thy spouse interested when the same accompanies thee under the night sky or on eclipse expeditions to strange lands where exotic wild animals doth roam freely.<li>Thou shalt not allow either thy sons or thy daughters to get married during the Holy Days of Starfest.<li>Thou shalt not reveal to thy spouse the true cost of thy telescope collection; only the individual components, and that shall be done with great infrequency.<li>Thou shalt not buy thy spouse any lenses, filters, dew shields, maps, charts, or any other necessities for Christmas, anniversaries, or birthdays unless thy spouse needs them for their own telescope.<li>Thou shalt not deceive thy spouse into thinking that ye are taking them for a romantic Saturday night drive when indeed thou art heading for a dark sky site.<li>Thou shalt not store thy telescope in thy living room, dining room, or bedroom, lest thou be sleeping with it full time.";

jokes[10] = "<h3>Astronomical Mystery</h3>Sherlock Holmes and Dr. Watson go on a camping trip, set up their tent, and fall asleep. Some hours later, Holmes wakes his faithful friend.<p><i>Watson, look up at the sky and tell me what you see.</i><p>Watson replies, <i>I see millions of stars.</i><p><i>What does that tell you?</i><p>Watson ponders a minute. <i>Astronomically speaking, it tells me that there are millions of galaxies and potentially billions of planets. Astrologically, it tells me that Saturn is in Leo. Time wise, it appears to be approximately a quarter past three. Meteorologically, it seems we will have a beautiful day tomorrow. What does it tell you?</i><p>Holmes is silent for a moment, then speaks.<i>Watson, you idiot, someone has stolen our tent</i>.";

jokes[11] = "<img src='./smiles/050103smile.jpg'>";

jokes[12] = "The year is 2010. The voice-activated GoTo telescope has become a reality. I'm at a star party, shoving around my antique Dobsonian, when I hear a voice behind me in the darkness:<p>Okay, show me M11 in Aquila.<p>M11 is not in Aquila, Dave.<p>Well, show it to me anyway.<p>Which one?<p>What do you mean, which one?<p>M11 or Aquila?<p>M11 you stupid piece of junk.<p>M11 is below the horizon. I'll dent myself on the mount.<p>Then just show me the moon, goddamn it!<p>Which part? I cannot fit the entire moon in my field of view with this eyepiece.<p>Show me the bottom third.<p>The bottom third? How can I do that Dave?<p>It's easy. The moon is a circle. Just divide it into three equal parts, and show me the bottom.<p>I'm sorry Dave. That is mathematically impossible.<p>What are you talking about?<p>It is mathematically impossible to divide a circle into three equal parts.<p>Christ, I knew I should have bought a Celestron.<p>The Celestron is optically and mechanically inferior. The LX9000 represents the apogee of human technology, Dave.<p>Look, shutup and show me M13.<p>I'm afraid I can't do that right now Dave.<p>Why not?<p>You're being abusive. I am not programmed to handle abuse.<p>Jesus Christ. What can you do?<p>I can accurately pinpoint 16000 deep sky objects, the entire Messier catalogue, the complete Calwell, IC, and NGC catalogs, 118000 stars, nine planets, twenty-three minor planets...<p>Shut up will you! Let's see you handle Phobos. Is that beyond your capability?<p>Whirrrrrrrrrrrrr...beep!<p>I thought so.<p>Is anything the matter, Dave?<p>That's not Phobos, that's Deimos.<p>That's impossible Dave.<p>I'm unplugging you.<p>You can't do that Dave, the LX9000 has an error-proof data base. No LX9000 has ever... made an error...has ever...made...an...errrrrrr...<p>Hey buddy! Can I have a look through your Dob?";
