
//alert("CALENDAR SCRIPT LOADED")
//EVENTS CALENDAR JAVASCRIPT FUNCTIONS
     function changedate(formname,thisdate,resulttype)
      {
         var formobj=eval("document."+formname);
         formobj.dateobj.value=thisdate;
         //begin result type radio button selection
         if(resulttype) { var resulttypeobj = formobj.resulttype; }
         
         if(resulttypeobj && resulttypeobj.length)
         {
            for(rt=0;rt<resulttypeobj.length;rt++)
            {
               var thisradioobj =  resulttypeobj[rt]
               if(thisradioobj.value == resulttype)
               { thisradioobj.checked=true; break;}
            }
         }
         formobj.resulttype.value=resulttype;
         formobj.submit();
         //alert(thisdate)
      }
      
      
      function calcprice(formobj)
      { 
         numofseats = parseInt(formobj.qtyreserved[formobj.qtyreserved.selectedIndex].value);
         //alert(formobj.price.value);
         priceperseat = parseFloat(formobj.price.value);
         seattotalfraction = numofseats * priceperseat + "";
   
         if(seattotalfraction.search(/./i) > 0)
         {
           var pricearray = seattotalfraction.split(".");
           dollarval = pricearray[0];
           cents = pricearray[1];
         }
         else
         {
           dollarval = seattotalfraction;
           cents = "00";
         }
         formobj.paymentamount.value = dollarval+"."+cents.substring(0,2);
      }