 function setInnerText (text, theId)
  {

      elementId = theId;

      if (document.all)
      {
         document.all[elementId].innerText = text;
      }
      else if (document.getElementById)
      {
        var el = document.getElementById(elementId);
        while (el.hasChildNodes())
        el.removeChild(el.lastChild);
        el.appendChild(document.createTextNode(text));
     }
  }
  var stext = '';
  var ttext = '';
  function getSpread()
  {
      var spread = "sDescrip";
      if(document.form.spread.options[document.form.spread.selectedIndex].value == "ac")
      {
        
        stext = "The All Cards Spread uses all 36 cards ";
        stext += "in the deck to create a spread for you.";
        setInnerText(stext,spread)
      }
      
      if(document.form.spread.options[document.form.spread.selectedIndex].value == "s")
      {
        
        stext = "This single card is meant to help you plan your day.";
        setInnerText(stext,spread)
      }
      if(document.form.spread.options[document.form.spread.selectedIndex].value == "n")
      {
        
        stext = "This spread counters 6 cards that are near you with 6 that are far from you.";
        setInnerText(stext,spread)
      }
      if(document.form.spread.options[document.form.spread.selectedIndex].value == "cy")
      {
        
        stext = "This spread explores key events you will encounter over the next year.";
        setInnerText(stext,spread)
      }
      if(document.form.spread.options[document.form.spread.selectedIndex].value == "p")
      {
        
        stext = "This spread builds a pyramid using a foundation of distant cards topped by 3 tiers of near cards.";
        setInnerText(stext,spread)
      }
      if(document.form.spread.options[document.form.spread.selectedIndex].value == "z")
      {
        
        stext = "This spread selects a card to represent each House of the Zodiac.";
        setInnerText(stext,spread)
      }






      
}

function page()
{
   if(document.form.spread.value == "ac")
   {
      document.form.action = "allcards.php";
   }
    if(document.form.spread.value == "s")
   {
      document.form.action = "single.php";
   }
   if(document.form.spread.value == "n")
   {
      document.form.action = "oppose.php";
   }
   if(document.form.spread.value == "cy")
   {
      document.form.action = "months.php";
   }
   if(document.form.spread.value == "p")
   {
      document.form.action = "pyramid.php";
   }
   if(document.form.spread.value == "z")
   {
      document.form.action = "zodiac.php";
   }



}