//DO NOT REMOVE THIS COPYWRITE INFO!
//Personalized Short Story
//By Daniel C. Peterson
//Web Winder Website Services, 1997-2009  All Rights Reserved.
//Distribution, editing or reselling of this script is strictyly prohibited
//without expressed written permission from Daniel C. Peterson.
//For commercial grade (professional) versions of this and many other
//calculators, visit http://www.webwinder.com.

function compute(form)  {
    form.title.value = ("\"AN INSPIRATIONAL SHORT STORY,\" by " + form.firstName.value + " " + form.lastName.value);
    if(form.gender.value == "Male" || form.gender.value == "male") {var boyGirl = "boy"} else {var boyGirl = "girl"};
    if(form.gender.value == "Male" || form.gender.value == "male") {var heShe = "he"} else {var heShe = "she"};
    if(form.gender.value == "Male" || form.gender.value == "male") {var hisHer = "his"} else {var hisHer = "her"};
    if(form.gender.value == "Male" || form.gender.value == "male") {var himHer = "him"} else {var himHer = "her"};
    
 var pet = form.color.value + " " + form.animal.value

form.story.value = ("Once upon a time, some-when between the past and the future there was a young " + boyGirl + " named " + form.firstName.value + ".   " + form.firstName.value + " was " + form.age.value + " years old and lived in " + form.city.value + ", " + form.state.value + ".  While walking home from school  " + heShe + " was thinking about the assignment just given by " + hisHer + " favorite teacher, " + form.friend.value + ".  " + form.friend.value + " announced that the last project of the term was a human communications project called 'smile'.  All the students were asked to go out and smile at three people, write down their reactions, and report back to class.  " + form.firstName.value + " was a very friendly person and usually smiled at people and said hello anyway.  Having to document it and report back to class sounded like a fun twist.  And " + heShe + " was looking forward to see who " + heShe + " might meet and be able to play this new game with.    \r\rUpon arriving home " + hisHer + " father, " + form.dad.value + ", said that as a celebration for end of term he was taking the family for dinner to " + form.store.value + ".   " + form.firstName.value + "'s mother, " + form.mom.value + ", said \"I'll feed " + form.drink.value + " quickly before we go. We have to take care of our dear " + form.room.value + "s, they're part of the family too!\"  " + form.firstName.value + " thought this was great, responsibilities were taken care of and it was to be a night away from homework! The family all bundled up in their " + form.hobby.value + "s and headed out on this crisp clear winters eve.   \r\rIt was a short drive in their "+ form.tv.value + " till they arrived at " + form.store.value + " and they quickly joined the line up for the counter service. All of a sudden everyone around began to back away, and then even " + hisHer + " father did.  " + form.firstName.value + ", being a rather independent teen and not one to quickly follow the herd, didn't move an inch, but swiveled sideways to see why everyone else had moved.  A little inner gasp rose in " + hisHer + " throat. At the same moment that " + heShe + " saw the reason, " + hisHer + " nostrils were assaulted with a rancid dirty body odor. \r\rThere, standing behind " + himHer + " were two bedraggled and filthy homeless men. You could barely make out beneath the dirt and tatters that what they wore on their heads had once been brilliant " + pet + "s. The one closest was the same height as young " + form.firstName.value + " and looked at " + himHer + " with a meek smile on his face.  \r\r" + form.firstName.value + "'s mind was swirling with what to do, and then " + heShe + " remembered " + form.friend.value + "s assignment. That memory prompted " + form.firstName.value + " to look straight back into the strangers gentle sky blue eyes, and smile warmly at him. You could see the relief of being accepted wash over the homeless man's face as he said \"" + form.cuss.value + ".\"  His eyes then smiled just a little careful smile too. It looked like he bowed his head in thanks as he looked down to count the few coins he had been clutching. The second man fumbled with his hands as he stood behind his friend. It was obvious the second man was mentally challenged, and the blue-eyed gentleman was his salvation.  \r\rThe young lady at the counter asked him what they wanted. He said, \"" + form.plant.value + " is all Miss\", because that was all they could afford. If they wanted to sit in the restaurant and warm up, they had to buy something, and they very much wanted to be warm.  \r\r" + form.firstName.value + " turned and grabbed " + hisHer + " father's arm.  \"Dad\" " + heShe + " quickly blurted out, \"If I pay half with my allowance will you pay the rest and we can buy them two big " + form.furn.value + " sandwiches for their dinner?!\"  All eyes in " + form.store.value + " were set on " + form.firstName.value + ", curious about what " + heShe + " was up to.  " + form.firstName.value + " looked up at the young lady behind the counter, smiled and asked for two more " + form.furn.value + " sandwiches on a separate tray.  \r\rThen " + heShe + " walked around the corner to the table the men had chosen as a resting spot.  As " + heShe + " put the tray on the table " + heShe + " reached over and touched the blue-eyed gentleman's cold hand. He looked up at " + himHer + " with a tear in his eye and said  \"thank you.\"  " + form.firstName.value + " leaned over and said \"thank you too, you've taught me a lot about a smile.\"  " + form.firstName.value + " knew " + hisHer + " eyes were moist as " + heShe + " walked away to rejoin the family.  And " + heShe + " was so glad " + heShe + " had a family and a warm home to go back to! When " + heShe + " sat down with " + hisHer + " parents they smiled and said \"That's why God gave you to us " + form.butt.value + ", to give us hope and make the world a kinder place.\"  \r\r" + form.firstName.value + " returned to school on Monday with this story in hand.  " + form.friend.value + " read it and then asked to share it with the class. As she got everyone's attention and began to read, the class fell silent. Some of the students started to look around and glance at a couple of the poorer kids in the class, the ones that were often scruffy and occasionally even smelt a bit dirty.  " + form.firstName.value + " recognized that in " + hisHer + " own way " + heShe + " had positively touched people at " + form.store.value + ", within the family, and every person in the classroom that day.  \r\r" + form.firstName.value + " knew at that moment that we as human beings need to heal and be healed, and we can all help along the way. The power is with us, and sometimes it all begins with a smile.");

   
   } 

function ClearForm(form)  {
   form.story.value = "";
   form.title.value = "";
   }

function ClearData(form) {
   form.firstName.value = "";
   form.lastName.value = "";
   form.color.value = "";
   form.drink.value = "";
   form.city.value = "";
   form.state.value = "";
   form.mom.value = "";
   form.dad.value = "";
   form.animal.value = "";
   form.friend.value = "";
   form.store.value = "";
   form.furn.value = "";
   form.hobby.value = "";
   form.room.value = "";
   form.cuss.value = "";
   form.plant.value = "";
   form.age.value = "";
   form.gender.value = "";
   form.butt.value = "";
   form.tv.value = "";
   }