
<script language="JavaScript">
<!--

/*#####################################################################################################
  #   Author : Khaled Elmougey   Email : khaled@futurecompany.com   Website: www.futurecompany.com    #
  #   Title  : JavaScript Text Displayer     Version: 1.0       Date: December,10,98                  #  
  #                                          Version: 1.1.0     Date: November,25,99                  #  
  #   Bugs   : I did not encounter any bugs                                                           #
  #   compatibility: It has been tested with MSIE 4.0, 5.0 and Netscape 3.0, 4.0., 4.6                #
  #   Copyrights: you can copy and paste it in to your website as along as this copyright is intact.  #
  #               do not modify the script.                                                           #
  #   Comments: 1)When You enter your text be sure there are in one line, no breakage in line.        #
  #             2)if you want to use ' single quote or " double quote in your text be sure they       # 
  #               proceeded by a back slash, like this \' or \"                                       #
  #             3) Parameters to be modified:                                                         #
  #                2) displayAll : Set to true to display all the previous joke                       #
  #                3) pauseTime  : How long each text to be displayed(if you set displayAll to true). #
  #             4) Please do email me for any bugs you encounter.                                     # 
  #####################################################################################################*/

var displayAll    = true;
var pauseTime     = 10000;
function setJokes()
  {
  this.joke[0]  = "";  // should be empty
  this.joke[1]  = "Sherlock Holmes and Dr Watson went on a camping trip. After a good meal and a bottle of wine they were exhausted and went to sleep. Some hours later, Holmes awoke and nudged his faithful friend Watson, look up at the sky and tell me what you see. Watson replied, I see millions and millions of stars.What does that tell you?Watson pondered for a minute. Astronomically, it tells me that there are millions of galaxies and potentially billions of planets. Astrologically, I observe that Saturn is in Leo.Timewise, I deduce that the time is approximately a quarter past three.Theologically, I can see that The lord is all powerful and that we are small and insignificant. Meteorologically, I supect that we will have, a beautiful day tomorrow. What does it tell you?Holmes was silent for a minute, then spoke. Watson, you idiot, Some bastard has stolen our tent."
  this.joke[2]  = "At a college with a shady reputation, the new dean responded to investigations into the basketball team by suspending any basketball player who wasn\'t maintaining a passing average. Furious, the coach came storming into the dean\'s office, followed by one of his star players.You can\'t keep him from playing! the coach roared. We won\'t win this weekend without him! I do not care, the dean said. Things have gotten out of hand at this college.What do you mean, out of hand? the coach demanded. I will show you what I mean, the dean said. He turned to the basketball player and said, Tell me, how much is six times seven? The player thought for several seconds. Then he said, Thirty one? The dean turned to the coach and said, I rest my case. Oh, come on now, the coach said. Why are you making such a big deal of it? After all, he only missed it by one."
  this.joke[3]  = "A building contractor was being paid by the week for a job that was likely to stretch over several months. He approached the owner of the property and held up the check he had been given. This is two hundred dollars less than we agreed on, he said. I know, the owner said. But last week I overpaid you two hundred dollars, and you never complained.The contractor said. Well, I don\'t mind an occasional mistake. But when it gets to be a habit, I feel I have to call it to your attention."
  this.joke[4]  = "One night a wife found her husband standing over their baby\'s crib. Silently she watched him. As he stood looking down at the sleeping infant, she saw on his face a mixture of emotions: disbelief, doubt, delight, amazement, enchantment, skepticism. Touched by this unusual display and the deep emotions it aroused, with eyes glistening she slipped her arm around her husband. A penny for your thoughts, she said. It\'s amazing! he replied. I just can\'t see how anybody can make a crib like that for only $46.50."
  this.joke[5]  = "Saddam Hussein and Bill Clinton meet up in Baghdad for the first round of talks in a new peace process. When Bill sits down, he notices three buttons on the side of Saddam\'s chair. They begin talking. After about five minutes Saddam presses the first button. A boxing glove springs out of a box on the desk and punches Clinton in the face. Confused, Clinton carries on talking as Saddam laughs. A few minutes later the second button is pressed. This time a big boot comes out and kicks Clinton in the shin. Again Saddam laughs, and again Clinton carries on talking, not wanting to put off the bigger issue of peace between the two countries.But when the third button is pressed and another boot comes out and kicks Clinton in the privates, he is finally had enough, knowing that he can not do much without them functioning well. I am going back home! he tells the Iraqi. We will finish these talks in two weeks! A fortnight passes and Saddam flies to the United States for talks. As the two men sit down, Hussen  notices three buttons on Clinton\'s chair and prepares himself for the Yank\'s revenge.They begin talking and Bill presses the first button. Saddam ducks, but nothing happens. Clinton snickers. A few seconds later he presses the second button. Saddam jumps up, but again nothing happens. Clinton roars with laughter. When the third button is pressed, Saddam jumps up again, and again nothing happens. Clinton falls on the floor in a fit of hysterics.Forget this, says Saddam. I am going back to Baghdad! Clinton says through tears of laughter, What Baghdad?"
  this.joke[6]  = "Fresh out of business school, the young man answered a want ad for an accountant. Now he was being interviewed by a very nervous man who ran a small business that he had started himself. I need someone with an accounting degree, the man said. But mainly, I\'m looking for someone to do my worrying for me. Excuse me? the accountant said. I worry about a lot of things, the man said. But I don\'t want to have to worry about money. Your job will be to take all the money worries off my back. I see, the accountant said. And how much does the job pay? I\'ll start you at eighty thousand. Eighty thousand dollars! the accountant exclaimed. How can such small business afford a sum like that? That, the owner said, is your first worry."
  this.joke[7]  = "Giuseppi walks into work, and he says, Ey, Tony! You know who\'s-a George Washington? Tony says, No, Giuseppi, who\'s-a George Washington? He says, Hah! George-a Washington\'s the first-a President of- a United States. I\'m-a go to night school, learn all about-a United States, and become-a U.S.-a citizen. A couple of days later, Giuseppi walks into work and says. Ey, Tony, you know who\'s-a Abraham Lincoln? Tony says, No, Giuseppi, who\'s-a Abraham Lincoln? He says, Hah! Abaham-a Lincoln is-a sixteenth President of-a the United States. I\'m-a go to night school, learn all about-a United States, and become-a U.S.-a citizen. A guy in the back of the shop yells, Yo, Giuseppi . . . you know who Fishlips Lorenzo is? He says, No. Who\'s-a Fishlips Lorenzo is? The guy yells, That\'s the guy who\'s banging your wife while you\'re in night school."
  this.joke[8]  = "Arnold and his wife were cleaning out the attic one day when he came across a ticket from the local shoe repair shop. The date stamped on the ticket showed that it was over eleven years old. They both laughed and tried to remember which of them might have forgotten to pick up a pair of shoes over a decade ago. Do you think the shoes will still be in the shop? Arnold asked. Not very likely, his wife said. It\'s worth a try, Arnold said, pocketing the ticket. He went downstairs, hopped into the car, and drove to the store.With a straight face, he handed the ticket to the man behind the counter. With a face just as straight, the man said, Just a minute. I\'ll have to look for these. He disappeared into a dark corner at the back of the shop. Two minutes later, the man called out, Here they are! No kidding? Arnold called back. That\'s terrific! Who would have thought they\'d still be here after all this time. The man came back to the counter, empty-handed. They\'ll be ready Thursday, he said calmly."
  this.joke[9]  = "Junior had just received his brand new drivers license. The family trooped out to the driveway, and climbed into the car, where he was about to take them for a ride for the first time. Dad immediately headed for the back seat, directly behind the newly minted driver. I\'ll bet you\'re back there to get a change of scenery after all those months of sitting in the front passenger seat teaching me how to drive, said the beaming boy to the ol\' man. Nope, came dad\'s reply, I\'m gonna sit here and kick the back of your seat as you drive, just like you\'ve been doing to me all these years."
  this.joke[10] = "Waiting in line outside of St. Peter\'s gate one day were three men and their daughters who all died in a huge car accident. There was a Jew, and Irishman and a Greek. The Jew was first in line, and as he came up to the desk, St. Peter shook his hand effusively and welcomed him to Heaven. Ah, Isaac! I am so glad to see you here. You have been a good man in your life, you have abstained from liquor and been kind to people. You may go on in. Oh, by the way, what is the name of your lovely daughter? The Jew proudly replied, Penny. St. Peter exploded. All you Jews are the same. All you do is think about money. You even name your kids after it! Go to hell. And the Jew and his daughter began to walk dejectedly to hell. Next in line was the Irishman, who was also greeted with a friendly handshake. Patrick, my friend, you have been a good, kind man in your life -- giving freely to the poor, I would like to welcome you to Heaven. By the way, what is your daughter\'s name? Brandy, the Irishman replied. Once again, St. Peter exploded. All you Irishmen are the same! All you think about is liquor! You even name your kids after it! Go to Hell. As the Irishman and his daughter started on the path to Hell, the Greek turned to his daughter and said, Fanny, I think we\'re in trouble now!"
  this.joke[11] = "During the Mexican/American war, an intense long standoff occured along the front. For days and days neither side made any advances. Finally, an American general had a bright idea. He aimed his rifle to the Mexican trenches and yelled Hey Juan!.....A soldier jumped up and replied What? The general shot him dead. This continued for three days. A Mexican general decided that two could play this game and decided to try it out. He called out Hey John!! An American replied John isn\'t here......is that you Juan? The Mexican general stood up, Yeah?!....."
  this.joke[12] = "A guy wants to buy  a head of lettuce, so he goes to the market and asks the clerk if he can purchase  a head of lettuce. The clerk says I don\'t think so! So the man says Let me talk to the manager. The clerk says, The manager is in the back. The clerk then proceeds to go to the back of the store to find the manager. The clerk finds the manager and says, There is some #%@& idiot up front who wants to buy  a head of lettuce! The clerk suddenly realizes through his peripheral view that he was followed by the client, so the clerk adds, and this nice gentleman would like to purchase the other half."
  this.joke[13] = "This man in a Ford Granada pulls up next to a guy in a Rolls Royce at a stop sign. Their windows are open and he yells at the guy in the Rolls: Hey, you got a telephone in there? The guy in the Rolls says, Yes, of course I do. I got one too... see? Uh, huh, yes, that\'s very nice. Then the man in the Granada says, You got a fax machine? Why, actually, yes, I do. I do too! See? It\'s right here! Uh-huh. The light is just about to turn green and the guy in the Granada says, So, do YOU have a double bed in back there? And the guy in the Rolls says, NO! Do you? Yep, got my double bed right in back here  see?! The light turns and the man in the Granada takes off. Well, the guy in the Rolls is not about to be one-upped, so he goes immediately to a customizing shop and orders them to put a double bed in back of his car. About two weeks later, the job is finally done and he picks up his car and drives all over town looking for the Granada. He finally finds it parked alongside the road so he pulls his Rolls up next to it. The windows on the Granada are all fogged up and he feels a little awkward about it, but he gets out of his newly modified Rolls and taps on the foggy window of the Granada. The man in the Granada finally opens the window a crack and peeks out. The guy in the Rolls says, Hey. Remember me? Yeah, yeah, I remember you. What\'s up? Check this out  I got a double bed installed in my Rolls. And the man in the Granada says, YOU GOT ME OUT OF THE SHOWER TO TELL ME THAT?!"
  this.joke[14] = "Three lunatics approach their Asylum doctor with a request for a weekend pass to the local city. That\'s impossible says the doctor. You\'re all nuts. You\'ll get lost and never come back. But, the lunatics wouldn\'t relent until finally, exasperated, the doctor says OK! If you can answer a simple question I\'ll sign the pass. He turns to the first lunatic and says What\'s three times three? The lunatic starts counting on his fingers 3, 7, 19, 38?. Is it 128? The doctor shakes his head and turns to the next lunatic: What\'s three times three? The lunatic immediately shouts WEDNESDAY! The doctor, beginning to get disgusted turns to the last lunatic: What\'s three times three? The lunatic thinks for a moment and then asks for a pencil and a piece of paper. That provided, she writes for some time furiously, and finally looks up and says Nine. The doctor is amazed, but true to his word he begins filling out the pass. As he\'s writing he says This is incredible, you\'ve always been thoroughly insane. How\'d you do it? The lunatic responds, Oh, it was easy I divided 128 by Wednesday!"
  this.joke[15] = "An elderly lady decided she wanted the inside of her home painted so she looked in the newspaper and found an ad that said no indoor house paining to small or large, call such and such number. So the woman gave the man a call and the next day he came to her house. the woman showed him the bedroom and said she wanted it painted light blue, he measure the room, wrote down the color. then he went to the front door and yelled out green side up, then they went to the kitchen and she asked for a light yellow, the man wrote it down, went to the front door and again yelled, green side up this went on for two other rooms with the man always going to the door and yelling green side up. after they were done getting everything on paper, the woman asked the man how come after every room was finished he would go the front door and yell green side up? the man laughed and told her that he also does landscaping and that he had just hired three idiots to lay sod across the street."
  this.joke[16] = "During the first day of Hannukah, two elderly Jewish men were sitting in a wonderful deli frequented almost exclusively by Jews in New York City. They were talking amongst themselves in Yiddish - the colorful language of Jews who came over from Eastern Europe. A Chinese waiter, only one year in New York, came up and in fluent impeccable Yiddish asked them if everything was okay and if they were enjoying the holiday. The Jewish men were dumbfounded. Where did he ever learn such perfect Yiddish? they both thought. After they paid the bill they asked the restaurant manager, an old friend of theirs, Where did our waiter learn such fabulous Yiddish? The manager looked around and leaned in so no one else will hear and said...Shhhh. He thinks we\'re teaching him English."
  this.joke[17] = "At a jury trial with the jury consisting of 8 men and 4 women:<BR>Defendant: Your Honor, I wish to change my plea.<BR>Judge: Is someone using undue influence to prompt you to change your mind?<BR>Defendant: No sir, when I pleaded Not Guilty I didn\'t know there would be women on the jury. Since I can\'t even fool my wife, I\'ll never be able to fool the four women jurors."
  this.joke[18] = "Jon and Amanpreet were in a mental institution. This place had an annual contest picking two of the best patients and gives them two questions. If they got them correct, they\'re deemed cured and free to go. Jon was called into the doctor\'s office first and asked if he understood that he\'d be free if he answered the questions correctly. The doctor said, Jon, what would happen if I poked out one of your eyes? Jon said, I\'d be half blind. That\'s correct. What if I poked out both eyes? I\'d be completely blind. The doctor stood up, shook Jon\'s hand, and told him he was free. On Jon\'s way out, as the doctor filled out the paperwork, Jon mentioned the exam to Amanpreet. He told him what questions were going to be asked and gave him the answers. So Amanpreet came in. The doctor went thru the formalities and asked, What would happen if I cut off one ear? Amanpreet, remembering what Jon had said was the correct answer said, I\'d be half blind. The doctor looked a little puzzled, but went on. What if I cut off the other ear? I\'d be completely blind, Amanpreet answered. Amanpreet, can you explain how you\'d be *blind*? My hat would fall down over my eyes."
  this.joke[19] = "A corporate executive received a monthly bill from the law firm that was handling a big case for his company. It included hourly billing for conferences, research, phone calls, and everything but lunch hours. Unhappy as he was, the executive knew that the company would have to pay for each of these services. Then he noticed one item buried in the middle of the list:<BR> FOR CROSSING THE STREET TO TALK TO YOU, THEN DISCOVERING IT WASN\'T YOU AT ALL -- $125."
  this.joke[20] = "Three guys enter a disabled swimming contest. The first has no arms. The second no legs and the third has no body, just a head. They all line up, the whistle blows and (splash) they\'re all in the pool. The guy with no arms takes the lead instantly but the guy with no legs is closing fast. The head of course sank straight to the bottom. Ten lengths later and the guy with no legs finishes first. He can still see bubbles coming from the bottom of the pool, so he decides he had better dive down to rescue him. He picks up the head, swims back up to the surface and places the head at the side of the pool, where-upon the head starts coughing and spluttering. Eventually the head catches his breath and shouts: <BR>Three years I\'ve spent learning to swim with my fu??ing ears, then two minutes before the whistle, some as?hole puts a swimming cap on me!"
  this.joke[21] = "An artist asked the gallery owner if there had been any interest in his paintings on display at that time. I have good news and bad news, the owner replied. The good news is that a gentleman inquired about your work and wondered if it would appreciate in value after your death. When I told him it would, he bought all 15 of your paintings. That\'s wonderful, the artist exclaimed. What\'s the bad news? The guy was your doctor."
  this.joke[22] = "A journalist assigned to the Jerusalem bureau takes an apartment overlooking the Wailing Wall. Every day when she looks out, she sees an old Jewish man praying vigorously. So the journalist goes down and introduces herself to the old man. She asks: You come every day to the wall. How long have you done that and what are you praying for? The old man replies, I have come here to pray every day for 25 years. In the morning I pray for world peace and then for the brotherhood of man. I go home have a cup of tea and I come back and pray for the eradication of illness and disease from the earth. The journalist is amazed. How does it make you feel to come here every day for 25 years and pray for these things? she asks. The old man looks at her sadly. Like I\'m talking to a wall."
  this.joke[23] = "Iraqi leader Saddam Hussein says he will back down from a confrontation over UN weapons inspections in exchange for Monica Lewinsky. From what I\'m hearing coming out of the White House, she is nutty and slutty which is just the way I like my mistresses. My SCUD missile is waiting for her, Hussein said from his bunker in Baghdad. National Security advisors to the president were intrigued by the offer. Monica\'s case is definitely distracting the president from properly focusing on the situation with Iraq and this may be a way to kill to two loony birds with one stone. Besides our intelligence reports indicate that Saddam\'s need for sex makes Clinton look like a monk, one of the advisors said."
  this.joke[24] = "Amidst the bombing, Saddam Hussein was heard wimpering that he was defying the US led embargo of his country only because it prevented him from getting his prescription for Prozac refilled. He is suffering the mother of all snits now that his medication has run out. We are fearful to be around him. It would be in the best interest of world peace to get him a megadose of Prozac so he returns to his happy, cheerful self before it\'s too late, one of Saddam\'s close advisors said after being assured anonymity. A White House source admitted that the President had previously considered the option of a Prozac airdrop over Hussein\'s bunker, but he decided against it, imagining the world with a smiling happy-go-lucky Saddam was just too much."
  this.joke[25] = "Two young boys were spending the night at their grandparents. At bedtime, the two boys knelt beside their beds to say their prayers when the youngest one began praying at the top of his lungs.<BR>I PRAY FOR A NEW BICYCLE...<BR>I PRAY FOR A NEW NINTENDO...<BR> I PRAY FOR A NEW VCR... <BR>His older brother leaned over and nudged the younger brother and said, Why are you shouting your prayers? God isn\'t deaf. To which the little brother replied, No, but Gramma is!"
  this.joke[26] = "In a small Southern town there was a Nativity Scene that showed great skill and talent had gone into creating it. One small feature bothered me. The three wise men were wearing firemen\'s helmets. Totally unable to come up with a reason or explanation, I left. At a (Quick Stop) on the edge of town, I asked the lady behind the counter about the helmets. She exploded into a rage, yelling at me, You damn Yankees never do read the Bible! I assured her that I did, but simply couldn\'t recall anything about firemen in the Bible. She jerked her Bible from behind the counter and ruffled through some pages, and finally jabbed her finger at a passage. Sticking it in my face she said See, it says right here, The three wise man came from afar."
  this.joke[27] = "A sixth grade class is doing some spelling drills. The teacher asks Tommy if he can spell (before). He stands up and says, (Before), B-E-P-H-O-R. The teacher says, No, that\'s wrong. Can anyone else spell before? Another little boy stands up and says, (Before), B-E-F-O-O-R. Again the teacher says, No, that\'s wrong. The teacher asks, Little Johnny, can you spell (before)? Little Johnny stands up and says, (Before), B-E-F-O-R-E. Excellent Johnny, now can you use it in a sentence? Little Johnny says, That\'s easy. Two plus two be fore."
  this.joke[28] = "The new Ensign was assigned to subs, where he\'d dreamed of working since a young boy. He was trying to impress the Master Chief with his expertise learned in Sub School. The Master Chief cut him off quickly and said, Listen, sir, it\'s real simple. Add the number of times we dive to the number of times we surface. Divide that number by two.If the result doesn\'t come out even, don\'t open the hatch."
  this.joke[29] = "An airliner was having engine trouble, and the pilot instructed the cabin crew to have the passengers take their seats and get prepared for an emergency landing. A few minutes later, the pilot asked the flight attendants if everyone was buckled in and ready. All set back here, Captain, came the reply, except one lawyer who is still going around passing out business cards."
  this.joke[30] = "Information. Can I help you?<BR>I\'d like the number of the Theater Guild, please.<BR>One moment, please. Pause. I\'m sorry sir, I have no listing for a Theodore Guild.<BR>No, no. It isn\'t a person. It\'s an organization. It\'s Theater Guild.<BR>I told you, sir. I have no listing for a Theodore Guild.<BR>Not *Theodore*! *Theater*! The word is *theater*. <BR>T-H-E-A-T-E-R!<BR>That, *sir*, is NOT the way you spell Theodore."
  this.joke[31] = "Two lawyers, Jon and Amanpreet, head out for their usual 9 holes of golf. Jon offers Amanpreet a bet. Let\'s say we bet $50. Amanpreet agrees and they\'re off. They do a great game. After the 8th hold, Amanpreet is ahead by one stroke, but cuts his ball into the rough on the 9th. Help me find my ball. Look over there, he said to Jon.<BR>After a few minutes, neither have any luck and a lost ball carries a four point penalty, Amanpreet pulls a ball from his pocket and tosses it to the ground. I\'ve found my ball!!! \"he announces\".<BR>Jon looks at him. After all of the years we\'ve been partners and playing together, you\'d cheat me out of a lousy 50 bucks?<BR>What do you mean, cheat? I found my ball sitting right there! And you\'re a liar, too! Jon said. I have you know I\'ve been STANDING on your ball for the last five minutes!"
  }
/**********************Nothing Below this line need to be modified******************************/

var num       = 32;              // number of text to be diplayed
var index     = 0;
var timerId   = null;
var newWindow = null;
var timerRunning = false;
var d = new Date();
var joke = new initJokes();
joke.setJokes();

function initJokes()
  {
  this.todayDay   = d.getDate();
  this.jMonth     = d.getMonth();
  this.year       = d.getYear();
  this.month      = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
  this.joke       = new Array(num);
  this.setJokes   = setJokes;
  this.getOldJoke = getOldJoke;
  this.writeNewJoke = writeNewJoke;
  this.writePreviousDates = writePreviousDates;
  }

function writeNewJoke()    
  {document.write("<TD BGCOLOR=\"#8D9DC9\"><STRONG><FONT FACE=\"Times New Roman\" SIZE=\"2\" COLOR='#FFFFFF'>" + this.joke[this.todayDay] + "</FONT></STRONG></TD></TR>");}

function getOldJoke(num) {return (this.joke[num]);}

function writePreviousDates()
  {
  if (this.todayDay != 1)
    {
    document.writeln("<TD ALIGN='CENTER'>");
    document.writeln("<SELECT NAME='whichJoke'>");
    for (var i = 0; i < (this.todayDay - 1); i++)
      {document.writeln("<OPTION VALUE=" + (i + 1)  + ">" + this.month[this.jMonth] + " " + (i + 1));} 
    document.writeln("</SELECT>");
    document.write("<INPUT class=\"b\" TYPE='BUTTON' NAME='preDates' VALUE='Previous Jokes' onClick='displayPastJoke(PreviousJokes)'\">");
    if (displayAll) {document.write(" <INPUT class=\"b\" TYPE='BUTTON' NAME='preJoke' VALUE='Display All' onClick='openDisplayAllJokeWindow()'\">");}
    document.writeln("</TD>");
    }
  } 

function displayPastJoke(PreviousJokes)
  {
  var index = document.PreviousJokes.whichJoke.selectedIndex;
  var num   = document.PreviousJokes.whichJoke.options[index].value;
  if (timerRunning) {clearTimeout(timerId);}
  openJokeWindow();
  showPreviousJoke(joke,num);
  }

function openDisplayAllJokeWindow()
  {
  index = 0;
  openJokeWindow();
  displayAllJokes();
  }

function openJokeWindow()
 {newWindow = window.open("","jokeWindow",'toolbar=no,location=no,status=no,scrollbars=yes,resizable=no,width=536,height=300');}

function displayAllJokes()
  {
  if (newWindow.closed)
    {
    if (timerRunning) {clearTimeout(timerId);}
    }
  else {
       index++;
       if (index == joke.todayDay) {index = 1;}
       showPreviousJoke(joke,index);
       timerRunning = true;
       timerId = setTimeout("displayAllJokes()",pauseTime); 
       }
  }

function showPreviousJoke(joke,num)
  {
  var win = newWindow.document;
  win.open();
  win.writeln("<HTML>");
  win.writeln("<HEAD>");
  win.writeln("<TITLE>Display Previous Jokes</TITLE>");
  win.writeln("</HEAD>");
  win.writeln("<BODY TEXT='#FFFF00' BGCOLOR='#000000'>");
  win.writeln("<CENTER>");
  win.writeln("<TABLE ALIGN='CENTER' CELLPADDING='7' CELLSPACING='2' BORDER WIDTH='500' HEIGHT='300' BORDERCOLOR='#DA70D6' BGCOLOR='#FFFFF0'>");
  win.writeln("<TR>");
  win.writeln(" <TH BGCOLOR='#C0C0FF' HEIGHT='20'><FONT FACE=\"Times New Roman\" SIZE='3' COLOR=000000>Joke Of The Day On: " + joke.month[joke.jMonth] + " " + num + ", " + joke.year + "</FONT></TH>");
  win.writeln("</TR>");
  win.writeln("<TR>");
  win.writeln(" <TD BGCOLOR='#8D9DC9' VALIGN='TOP'><FONT FACE=\"Helvetica\" SIZE='2'>" + joke.getOldJoke(num) + "</FONT></TD>");
  win.writeln("</TR></TABLE>");
  win.writeln("</CENTER>");
  win.writeln("</BODY>");
  win.writeln("</HTML>");
  win.close();
  }
<!-- End -->
</SCRIPT>
</HEAD>


<FORM NAME="PreviousJokes">
  <script language="JavaScript">
  <!--
  joke.writeNewJoke();
  joke.writePreviousDates();
  // End -->
  </script>
</form>