 var story=""
function CkNme(XNme)  {
  var UcNme = XNme.toUpperCase()
  var LcNme = XNme.toLowerCase()
    
  if (XNme==UcNme || XNme==LcNme){
      XNme = LcNme;
      XNme = XNme.charAt(0).toUpperCase() + XNme.substring(1,15);
    }  
 return XNme;
 }
function compute(fern)  {
if(fern.gender.value == "Male"){
 var boyGirl = "boy"
 var heShe = "he"
 var heSheCap = "He"
 var hisHer = "his"
 var hisHerCap = "His"
 var himHer = "him"
 var himherSelf = "himself"
} 
else {
 var boyGirl = "girl"
 var heShe = "she"
 var heSheCap = "She"
 var hisHer = "her"
 var hisHerCap = "Her"
 var himHer = "her"
 var himherSelf = "herself"
};
var x = fern.relative.selectedIndex
var z = x+1
if(z/2 == Math.floor(z/2)){
var RheShe = "he"
var RhisHer = "his"
}
else {
var RheShe = "she"
var RhisHer = "her"
};
var stateparks= new Array("Mount Rainier National Park", "Crater Lake National Park", "Yosemite National Park", "Grand Canyon National Park", "Zion National Park", "the Rocky Mountain National Park", "Yellowstone National Park", "Glacier National Park");
var statepics= new Array("snow-capped mountain in Washington", "deep blue lake in Oregon", "waterfall in California", "sunset in Arizona", "red rock canyon in Utah", "Rocky Mountains in Colorado", "herd of bison in Wyoming", "horseback riders in Montana");
var statesmall= new Array("at Mount Rainier", "at Crater Lake", "at Yosemite", "at the Grand Canyon", "at Zion", "in the Rocky Mountains", "at Yellowstone", "at Glacier National Park");

var statepara= new Array("Mount Rainier must be the perfect mountain. Actually, it's a volcano, 14,410 feet high, and snow-capped all year round. We went fishing, hiking, and on nature walks. We saw thousands of wildflowers. We walked beside a glacier and heard it move. We touched trees that are a thousand years old. But, that takes me away from the story.", "Crater Lake should be in your dreams, too. I didn't know that blue could be so blue! We had a boat tour on the lake. They said it is about 1,900 feet deep. When you stand on the rim around the crater, you can see for 100 miles. We went on great nature walks. Some were easy going down, but really hard coming back. I got excited about bird watching. We saw falcons, hawks and eagles. But, that takes me away from the story.", "Yosemite was better than I could imagine. The waterfalls were spectacular! The rangers said the late snows made them a show stopper this year. Half Dome and El Capitan were gorgeous. I even saw a 2,700 year old redwood named the Grizzly Giant. I could tell you about the photography class, horseback riding, rock climbing, hiking, fishing and swimming. But, that takes me away from the story.", "The Grand Canyon is amazing. The first few days, I took more than thirty-six pictures. We were lucky our trip was to the North Rim because the air was so clean and fresh. The sunrises and sunsets were awesome. I never got tired of hearing about the rocks being millions and billions of years old. We even went on a mule trip down into the canyon. But, that takes me away from the story.", "Zion National Park must be the most beautiful place in the whole world. We went on a hike through a canyon and the trail was a river! Walking in water is hard work so I stopped a lot to look at the canyon walls. Wow! They were pretty! We went rock climbing and river rafting. But, that takes me away from the story.", "I loved the Rocky Mountain National Park. We went on a different hike almost every day. Lots of times we were 11,000 feet above sea level. That's two miles high! We saw bighorn sheep, elk, and beavers. We went horseback riding and rock climbing. But, that takes me away from the story.", "Yellowstone National Park was better than I could imagine. The geyser, Old Faithful, really does go off on schedule. There were lots of other interesting geysers, hot springs, and boiling mud pots to visit. We saw herds of bison in the morning and heard wolves howling at night. We went boating and horseback riding. One day we went on a stagecoach ride. But, that takes me away from the story.", "Glacier National Park was better than I dreamed. It's enormous. The rangers told us there are more than one million acres and more than thirty glaciers in it. Part of it is in Canada. We saw a huge grizzly bear and a snowy white mountain goat with her kid. We went trout fishing and horseback riding. But, that takes me away from the story.");

var x = fern.state.selectedIndex
var park= stateparks[x]
var photo= statepics[x]
var small= statesmall[x]
var para= statepara[x]

var firstNme = fern.firstNme.value
        firstNme = CkNme(firstNme);
var lastNme = fern.lastNme.value
        lastNme = CkNme(lastNme);
var midNme = fern.midNme.value
	midNme = CkNme(midNme);
 var friend = fern.friend.value
       friend = CkNme(friend);
var place2= new Array("under my bed", "in the back of my closet", "in my bookcase", "in my bottom drawer", "in my top drawer", "in my toy box", "in my trunk", "behind my clothes");
var x= fern.place.selectedIndex
var KidPlace= place2[x]
var collectplural= new Array("baseball cards", "marbles", "stamps", "snake skins", "butterflies", "coins", "beads", "shells", "rocks", "stickers");
var x= fern.collect.selectedIndex
var collection=collectplural[x]

/* SELECT class= Gtxt Name="shiny"*/
var glimray=new Array()
 glimray[0]= new Array("a broken mirror","a screw","a piece of wire")
 glimray[1]= new Array("a big safety pin","a silver nail file","a screw")
 glimray[2]= new Array("a piece of wire","some strands of tinsel","nail clippers")
 glimray[3]= new Array("a broken mirror","a large paper clip","a jelly jar lid")
 glimray[4]= new Array("a screw","a large paper clip","a lipstick case")
Z=Math.floor(Math.random()*4)
 gleam1=glimray[Z][0]
 gleam2=glimray[Z][1]
 gleam3=glimray[Z][2]
/* document.write(gleam1 +","+gleam2+","+gleam3+"<hr> Z="+Z+"<br>") */

/*SELECT class= Gtxt Name="bright"*/
var beamray=new Array()
 beamray[0]= new Array("a red checker","a AAA battery","a white golf tee")
 beamray[1]= new Array("a yellow bottle cap","a suitcase tag","a red checker")
 beamray[2]= new Array("an orange golf tee","a pencil sharpener","an empty coin purse")
 beamray[3]= new Array("a AAA battery","half a tube of toothpaste","a violet gel pen")
 beamray[4]= new Array("a pink gel pen","a suitcase tag","a pencil sharpener") 
Z=Math.floor(Math.random()*5)
 beam1=beamray[Z][0]
 beam2=beamray[Z][1]
 beam3=beamray[Z][2]
/* document.write(beam1 +","+beam2+","+beam3+"<hr> Z="+Z+"<br>") */
/* end experiment */

var arty= new Array("stayed balanced when a breeze turned it.", "looked great from all sides.", "looked great from across the room.");
var x= fern.art.selectedIndex
var art2= arty[x]


var art = fern.art.value
var relative = fern.relative.value
var state = fern.state.value
var camp = fern.camp.value
var pack = fern.pack.value
var collect = fern.collect.value
var stuff = fern.stuff.value
var place = fern.place.value
var snack = fern.snack.value
var light = fern.light.value
var excite = fern.excite.value
var treasure = fern.treasure.value
var extratreasure = fern.extratreasure.value
var shiny = fern.shiny.value
var bright = fern.bright.value
var ordinary = fern.ordinary.value
var report = fern.report.value


 var story = ("<html><HEAD><TITLE> " + firstNme +"\'s Keeper</TITLE>  <LINK REL=stylesheet Type='text/css' HREF='SansTxt.css'></HEAD>");

story = (story +"<BODY text='#000000' BGCOLOR = '#6699FF'><Font size='+2'>");
story = (story +"<H1 align=center>" + firstNme +"\'s Keeper!<br><sup>by " + firstNme + " " +midNme+ " "+ lastNme + "</sup></h1><P>");

story=(story+"");
story=(story+"<P>Hi! You know me. I\'m "+firstNme+" "+midNme+" "+lastNme+"! I like to trade things and I must be the luckiest "+boyGirl+ " around. I have a great tale for you. It\'s a long one with a few twists. So, fasten your seat belt. Here we go!");

story=(story+"<P>One wet Saturday morning last spring, I was cleaning my room. I wasn\'t in a hurry to finish because the rain was going to keep me indoors anyway. I was really getting into it. I was digging deep - even cleaning "+place+". That's where I keep all my see-you-later-may-come-in-handy stuff.");

story=(story+"<P>Good fortune was smiling on me that day. I stopped to examine a crumpled up, dog-eared, old announcement that my teacher had passed out. It was stuck behind a ratty old sock and between my "+collect+" collection and some "+stuff+" I had forgotten I had.");

story=(story+"<P>Funny thing is I don't usually do contests. I think the photo of the "+photo+" just grabbed hold of me. The deadline to enter was Monday. All I had to do was write a short essay on why a summer camping trip to "+park+" would be my dream vacation. Writing it was a snap because "+camp+".");
 
story=(story+"<P>I wrote the whole thing that afternoon. My family couldn\'t believe I stayed with it. I bet they thought I didn\'t have a chance. They were happy with me, I know. I was quietly entertaining myself on a rainy day. My "+relative+" read my essay that night and only helped me a little. I mailed it the next morning." );

story=(story+"<P>Actually, I had forgotten all about the contest until we got that phone call. I was going to "+park+" to camp for two weeks in August! Better yet, my best friend "+friend+" was going with me.");

story=(story+"<P>Deciding what to pack was hard. But, my  "+relative+" supervised. Without "+RhisHer+" help, I would have forgotten "+pack+" and a warm jacket for cool nights. At the last minute, I stuck a few "+collection+", "+snack+", crackers and candy bars in all those extra spaces. You never know when you might want to trade something, right? And, you never know when you might get hungry." );

story=(story+"<P>"+para+"");

story=(story+"<P>The weather was perfect. It never rained. Every night was clear and dark. You wouldn\'t believe there are so many stars. "+excite+"! We really were star struck!");

story=(story+"<P>Our campsite was annoying only at first. We had to walk a bit to get to the bathroom and the campfire. After we discovered the first treasure, we forgot about that little problem. You see, when the others were asleep, we got our jackets and flashlights and went for another look at those stars. We stared at the sky and ate "+snack+" from my stash. We felt totally nocturnal and alone.");

story=(story+"<P>But... someone knew we were there.");

story=(story+"<P>The very next night I discovered "+treasure+" right where I had been standing. The following night, in the same spot, there was "+extratreasure+". Then every night after that someone left us something. We didn\'t even need our flashlights to find the gifts. Most of them were so shiny and bright. There was "+gleam1+", "+gleam2+", "+gleam3+", and "+shiny+". On other nights, we found "+beam1+", "+beam2+", "+beam3+", and "+bright+".");

story=(story+"<P>Each night held a different surprise for us. "+friend+" said I should keep all the stuff because I was the one who won the trip. Some of it was so cool that I would have traded my best "+collect+" for it. Some of it was ordinary - like the "+ordinary+" - but I kept those things too. My "+relative+" says one person's trash is another's treasure. I\'m a trader and I know that\'s true.");

story=(story+"<P>Not once did we hear or see anything. Of course, we didn\'t tell anyone either. I just kept stashing those free treasures in my suitcase where the snacks had been.");

story=(story+"<P>Two days before we had to leave, I discovered the hole in my jacket pocket. Later that night at the campfire circle, the ranger talked about animals in the area. He mentioned pack rats. "+light+"! I had been trading stuff all along. I couldn\'t wait to tell "+friend+" what I figured out.");

story=(story+"<P>Every night we had taken treats to our secret place. A pack rat must have happened upon the food that dropped through the hole in my jacket pocket. The rat could only carry one thing at a time. He had to put down what he was carrying to pick up the snack I had dropped. What a great deal I had made, without even knowing it! I knew two traders who were going to miss each other a lot.");

story=(story+"<P>Once home, even to me, the treasures began to look like junk. I saved them anyway in a shoebox "+KidPlace+". Then school started. You know, that\'s always exciting. I forgot all about our secret summer pal.");

story=(story+"<P>One of the first big assignments was an animal report. We could work with a partner and choose any animal native to the United States. Again... "+light+"! I lost no time in suggesting to "+friend+" that we do one together on pack rats.");

story=(story+"<P>Our report turned out to be "+report+" pages long. Everyone said it was outstanding. But, the best part of the project happened last.");

story=(story+"<P>The idea came to me just before the report was due. I would make a "+art+" with all twenty-one items the pack rat left. The different objects just worked well together. The "+art+" even "+art2+" The shiny stuff made it sparkle. The bright stuff made it fun and the ordinary stuff added interest. Everyone smiled and loved my "+art+" right away. You might  even look at it yourself and say, \""+excite+"!\"");

story=(story+"<P>The "+art+" stayed at school for a long time. First, my teacher kept it in our room. Then, our librarian had it in the library. After that, the principal put it in the office near the secretary\'s desk. I even brought it back for the Spring Art Show.");

story=(story+"<P>The "+art+" is in my bedroom now. Funny, I never get tired of looking at it. So far, I haven\'t added to or taken away anything from it. My "+relative+" says it has the longest life of any possession I\'ve ever had. I know "+RheShe+"'s right about that. I also know my trading days may never be over, but this "+art+" is a keeper!");

story=(story+"<P>One last thing - I\'m sure that the "+state+" pack rat is still finding and losing treasures. And, that, according to the park ranger  "+small+", is a tale a lot of folks in the old west could tell.");

story=(story+"<hr><font color='blue' size='-4'>&copy;2003 Kay Wittes</font>"); 
msgWindow=window.open("","displayWindow","toolbar=yes,width=640,height=400,directories=no,status=no,scrollbars=yes,resizable=yes,menubar=yes")

msgWindow.document.write(story)
msgWindow.focus()
msgWindow.document.close()
}
