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"  
  var sonDaughter = "son"
  } 
  else {
  var boyGirl = "girl"
   var heShe = "she"
   var heSheCap = "She"
   var hisHer = "her"
   var hisHerCap = "Her"
   var himHer = "her"
   var himherSelf = "herself"
  var sonDaughter = "daughter";
 }

if  (fern.Pgender.value == "Male"){
  var PheShe = "he"
  var PheSheCap = "He"
  var PhisHer = "his"
  var PhisHerCap = "His"
  var PhimHer = "him"
  } 
  else {
   var PheShe = "she"
   var PheSheCap = "She"
   var PhisHer = "her"
   var PhisHerCap = "Her"
   var PhimHer = "her";
 }

if  (fern.boss.value == "father"){
  var BheSheCap = "He"
  var BhisHer = "his"
  } 
  else {
   var BheSheCap = "She"
   var BhisHer = "her";
 }

var x = fern.rel.selectedIndex
var z = x+1
	if(z/2 ==Math.floor(z/2)){
  var RheShe = "he"
  var RheSheCap = "He"
  var RhimHer = "him"
  var RhisHer = "his"
  } 
  else {
   var RheShe = "she"
   var RheSheCap = "She"
   var RhimHer = "her"
   var RhisHer = "her"
 };
var firstNme = fern.firstNme.value;
  firstNme = CkNme(firstNme);
var lastNme = fern.lastNme.value;
  lastNme = CkNme(lastNme);
var firstNmeCap = firstNme.toUpperCase();
var lastNmeCap = lastNme.toUpperCase();

var friend1 = fern.friend1.value;
  friend1 = CkNme(friend1);
var friend2 = fern.friend2.value;
  friend2 = CkNme(friend2);
var petNme = fern.petNme.value;
  petNme = CkNme(petNme);


var eyeCol=fern.eyeCol.value;
eyeColCap = eyeCol.charAt(0).toUpperCase() + eyeCol.substring(1,15);
var petSz = fern.petSz.value;
var petCol= fern.petCol.value;
var boss = fern.boss.value;
var rel= fern.rel.value;
relCap = rel.charAt(0).toUpperCase() + rel.substring(1,15);
var game=fern.game.value;
var toy = fern.toy.value;


var sand= fern.sand.value;
var fruit = fern.fruit.value;
var cookie= fern.cookie.value;
var takeout= fern.takeout.value;
var party= fern.party.value;
 
 var bossNkNme=fern.bossNkNme.value;
 var NkNme=fern.NkNme.value;
  if (NkNme=="none of these")
	{NkNme=""}
{
}
// arrrays:

var partywords = new Array("birthday cakes","a swimming pool","an ice skating rink","sleeping bags","a bowling alley","a roller skating rink","a great park for a picnic",+friend2+"\'s backyard")
var tiredwords = new Array("the dark circles under "+hisHer+" "+boss+"\'s eyes",hisHer+" "+boss+" frown and rub "+BhisHer+" forehead",hisHer+" "+boss+"\'s face was pale and drawn","that "+hisHer+" "+boss+" sighed and was slow to get out of bed",hisHer+" "+boss+"\'s red eyes","the tight muscles in "+hisHer+" "+boss+"\'s neck and shoulders")

var madwords1 = new Array(heSheCap+" rolled "+hisHer+" eyes this way and that after each slap", heSheCap+" stuck out "+hisHer+" lower lip and squeezed "+hisHer+" cheeks together tightly",heSheCap+" stamped one foot after each slap",heSheCap+" kept "+hisHer+" eyes half-shut and clenched "+hisHer+" teeth together","The scowl on "+hisHer+" face would wilt a field of sunflowers","The lines around "+hisHer+" mouth looked like creases in a crumpled shirt",heSheCap+" made "+hisHer+" best ugly face, saved for times when "+heShe+" was alone")
var madwords2 = new Array("started "+hisHer+" eyes rolling","made "+hisHer+" lower lip stick out","caused "+hisHer+" foot to twitch","made "+hisHer+" eyes close and "+hisHer+" teeth clench","brought back a scowl to "+hisHer+" face","brought back those crumpled shirt lines around "+hisHer+" mouth","brought back an ugly grimace")

var eyewords1 = new Array("bright, blue","warm, brown","sparkling, green","happy, gray","lively, hazel")
var eyewords2 = new Array("cold","dark","cold","sullen","sharp")
var toywords = new Array("those","that","that","that","that","those")


var relBoss = new Array("mother","father","ma","daddy","mom","pa","sister","dad","sister","brother")
var x = fern.rel.selectedIndex
	var bossboss = relBoss[x]


var x = fern.party.selectedIndex
   var party1 = partywords[x]
var x = fern.tired.selectedIndex   
  var tired = tiredwords[x]
var x = fern.mad.selectedIndex
   var mad1 = madwords1[x]
   var mad2 = madwords2[x]
var x =fern.eyeCol.selectedIndex
   var eyeCol1 = eyewords1[x]
   var eyeCol2 = eyewords2[x]
var x =fern.toy.selectedIndex
	var toy1 = toywords[x]


//***


var story ="<html><HEAD><TITLE>Just Two</TITLE> <LINK REL=stylesheet Type='text/css' HREF='SansTxt.css'></HEAD>";

story+="<BODY text='#000000' BGCOLOR = '#6699FF'><Font size='+2'>";
story+="<h1 align='center'>Just Two";
story+="<br><sup>by " + firstNme + " " + lastNme + "</sup></h1><P>";

story+="<P>"+firstNme+" slapped "+sand+" on the bread "+hisHer+" "+boss+" had set out. "+mad1+". No cheerful morning words were going to escape from this mouth. "+hisHerCap+" usually "+eyeCol1+" eyes had the "+eyeCol2+", fixed stare of someone doing an unwelcome task.";

story+="<P>Old "+petNme+" planted "+PhisHer+" "+petSz+", "+petCol+" body in the kitchen doorway. "+PhisHerCap+" graying muzzle rested on the floor. "+PhisHerCap+" patient eyes focused on "+firstNme+". "+PhisHerCap+" tail thumped every once in a while, as if to say I'm happy to be here.";

story+="<P>\"Oh, brother,\" muttered "+firstNme+". \"Just "+bossNkNme+" and "+petNme+" at the beach for three whole days. "+BheSheCap+" promised "+friend1+" could come.\"";

 story+="<P>From the next room, "+firstNme+"\'s "+boss+" announced, \"I finished packing. Your "+rel+" will be here shortly with the binoculars and the "+toy+". I'll help you in a moment.\"";

 story+="<P>"+firstNme+" went on grumbling. \"The beach without "+friend1+" won't be fun.\" "+heSheCap+"  threw a bag of chips into the picnic basket. \"Everybody, but me, is going to be at "+friend2+"\'s "+party+".\" "+heSheCap+" tossed a "+fruit+" on top of the poor chips. The crunch was ignored. \"Just the two of us will be so boring.\" "+heSheCap+" grabbed a box of "+cookie+" and started to flip it in next."; 

 story+="<P>"+firstNme+"\'s "+boss+" appeared just in time to rescue the cookies. \""+firstNme+NkNme+", I'll finish this. You wash up. I hear your "+rel+"\'s car and "+RheShe+" can't stay long.\""; 

story+="<P>"+petNme+" heard it too. "+PheSheCap+" slowly got to "+PhisHer+" feet and parked "+PhimHer+"self next to the picnic basket. "+PheSheCap+" wasn't going to be forgotten.";

 story+="<P>Before leaving, "+firstNme+" hugged "+hisHer+" "+rel+" but didn't look at "+RhimHer+". Then "+hisHer+" "+rel+" tucked something into "+firstNme+"'s jacket pocket saying softly, \"Here's something for you. Take good care of your "+boss+". "+BheSheCap+" needs just you for company right now. I'll miss you, "+eyeColCap+" Eyes.\"";
 
 story+="<P>On the road, "+firstNme+"\'s "+boss+" spoke. \""+firstNme+NkNme+", I know you're disappointed. But, I'm exhausted from working overtime. I just have to get away. I'm sorry it's the weekend of "+friend2+"\'s "+party+". And, we will bring "+friend1+" another time. Being together, just the two of us and "+petNme+", in the salty air will be perfect. You'll see.\""; 

 story+="<P>They didn't talk much. Both wrapped themselves in their own thoughts. "+petNme+" slept. The drone of the tires on the road was steady and low. Neither suggested turning on the radio or playing a CD. The gray morning clouds lifted only slightly. The two-hour trip was uneventful.";
 
story+="<P>As soon as they left the freeway, "+petNme+" sat up. "+PheSheCap+" sniffed the air and thumped "+PhisHer+" tail. "+firstNme+" gave "+PhimHer+" an understanding pat and let a little smile creep over "+hisHer+" face.";

story+="<P>Before long, they had settled into their weekend motel. The room was just big enough for their beds, a round table, two chairs, and a cabinet that held the TV. "+petNme+" could sleep under the table.";

story+="<P>\"It'll do,\" said "+firstNme+"\'s "+boss+" quietly. \"Let's eat here now. Then we'll walk down to the beach.\"";

 story+="<P>One touch of the cold, green seawater was enough. They listened to the gentle sound of a lazy surf roll across the sand. In and out, in and out, it breathed. Each breath left a lacy foam border in its wake. They watched silent, brown pelicans fly, wingtip to wingtip, just above the water. After a while, "+firstNme+"\'s "+boss+" suggested that they build something with the wet sand.";  

 story+="<P>\"Okay, why not,\" "+firstNme+" replied, making a small effort to please.";

story+="<P>"+firstNme+" did try. The problem was everything "+heShe+" built ended up looking like "+party1+". That  "+mad2+". The fog lingered and it was getting colder.";

story+="<P>"+firstNme+"\'s "+boss+" gave "+firstNme+" an understanding pat. \"Let's walk for a bit and turn in early.\"";

story+="<P>The next morning "+firstNme+" noticed "+tired+". \"I'll take "+petNme+" for "+PhisHer+" walk on the beach. You can stay in bed longer,\" "+heShe+" offered.";

story+="<P>"+petNme+" found things that interested "+PhimHer+" right away. "+PheSheCap+" sniffed under kelp that had bunched up on the sand. A nearby herring gull complained loudly. "+PheSheCap+" ignored the gull and trotted from dune to dune.";

story+="<P>"+firstNme+" looked around. They were mostly alone. Up the beach, a couple of surfers unpacked their gear. A jogger ran by. The overcast sky kept the world to dull shades of green, gray and brown. The surf sang its quiet, lip-lap song of the day before.";

story+="<P>Feeling aimless and withdrawn, "+firstNme+" stuck "+hisHer+" hands in "+hisHer+" pockets. Right away, "+heShe+" felt the forgotten something from "+hisHer+" "+rel+". It was a note. \"KEEP A SUNSHINE THOUGHT!\" "+heShe+" read aloud. Around the message, "+RheShe+" had carefully drawn an old, green bottle with a cork in it.";

story+="<P>A big smile spread across "+firstNme+"\'s face. Then, at that very moment, the morning sun broke through the fog. The perfect timing made "+firstNme+" laugh out loud. "+petNme+" heard it because "+PheShe+" came running with the nearest chunk of wood "+PheShe+" could find.";

story+="<P>The sun warmed "+firstNme+"\'s body. "+heSheCap+" stretched and noticed the sparkling ocean blues and greens. "+hisHerCap+" eyes followed the bright white edges of the fog now breaking apart. A breeze came from somewhere.";

story+="<P>"+firstNme+" sniffed the fresh air and called out, \"Come on, "+petNme+". Hurry. We have to get "+bossNkNme+" out here.\" They ran most of the way back to the motel.";

story+="<P>By the time "+boss+", "+sonDaughter+", and dog returned, the surf was lively. The seawater felt refreshing to "+firstNme+" as it wrapped around "+hisHer+" ankles and seeped out through "+hisHer+" toes.  Old "+petNme+" could have been mistaken for a puppy. "+PheSheCap+" greeted every dog on the beach with a wagging tail and an invitation to play. "+firstNme+"\'s "+boss+", busy with "+BhisHer+" "+bossboss+"\'s binoculars, scanned this way and that.";

story+="<P>Soon the three of them were walking toward a place "+firstNme+"\'s "+boss+" had spotted. They laughed at the noisy gulls. They paused to watch the sanderlings running back and forth just at the edge of the moving water line. They examined rocks worn smooth by countless tides. Every tide pool offered new discoveries. The walk back was a stroll as unhurried as the incoming tide.";

story+="<P>That night, the two sat at the round table playing "+game+". The TV was never turned on. "+petNme+" slept soundly, except for some happy moans and twitches as "+PheShe+" relived "+PhisHer+" day in dreams. Finally, they went to bed, too.";

story+="<P>In the darkened room, "+firstNme+" whispered, \“Thank you, "+bossNkNme+". Thank you, "+petNme+". Thank you, Sea and Sunshine. And, thank you, "+relCap+".\"";

story+="<P>Packing up the next day, "+firstNme+" discovered the forgotten "+toy+". "+hisHerCap+" "+boss+" laughed and said, \"I bet we'll have fun with "+toy1+" when we bring "+friend1+".\"";

story+="<P>"+firstNme+" realized that "+heShe+" hadn’t thought about "+hisHer+" friend for quite a while. \"Only if we have time, "+bossNkNme+". I know a lot of places we have to take "+friend1+" first.\"";

story+="<P>The three went down to the ocean for one last look around. Even though it was afternoon, the beach was cold, quiet and gray again. \"Still refreshing,\" pronounced "+firstNme+". Putting "+hisHer+" hands in "+hisHer+" pockets, "+heShe+" felt "+hisHer+" "+rel+"\'s message.";

story+="<P>Later, when checking out, the motel owner joked, \"Looks like you packed up the sunshine and are taking it home with you today.\"";

story+="<P>"+firstNme+" didn't hesitate. "+heSheCap+" pulled out the note and gave it to the friendly owner. \"Please, take this,\" "+heShe+" said. \"I bet another kid will come along who could use it.\"";

story+="<P>Without losing a beat, the woman replied, \"I know you're exactly right. A note like this should be passed on.\" Then she tacked it on her bulletin board right above the breakfast bar.";

story+="<P>"+relCap+" was at their house when they arrived. "+RheSheCap+" greeted them with a big smile, "+takeout+", and time to listen to their weekend tales. And, what's more, the sun was shining!";


//story+=notice;
story+="<br><br></font><font color='blue' size='-4'>&copy;2005 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()
}
