// EVENTVAL.JS - May continually change depending on needs.  03/28/2001

//alert("EVENTVAL.JS is loading...");

// -------------------------------------------------------------------
// Checks the volunteer inputs to see if we have all we need
// inputs: Name, email
// inputs: Home_Phone, Work_Phone
// output: nothing
// Action: none
// return: (1/0) = (AOK/Bad)
// in
// -------------------------------------------------------------------
function Validate() {

   var Rtn = true;
   var me = -1;

//==========================================================
// Temp Test Section
//==========================================================

   if (document.CARETEvents.Name.value.length < 3) {
       alert("Please enter your name.");
       document.CARETEvents.Name.focus();
       Rtn = false;
       me = 0;
   }


   if (Rtn == true) {
      if(document.CARETEvents.Home_Phone.value == "" &&
         document.CARETEvents.Work_Phone.value == "" &&
         document.CARETEvents.Email.value == "") {
         
         alert("We need some way of contacting you.");
         document.CARETEvents.Home_Phone.focus();
         Rtn = false;
      }
   }


   // Load up the Events var:  (checkbox)
   if(document.CARETEvents.Event06.checked ||
      document.CARETEvents.Event07.checked || 
      document.CARETEvents.Event05.checked) {
      var Tmp = "";

      /*
      if(document.CARETEvents.Event01.checked)
         Tmp += "E: "+document.CARETEvents.Event01.value+"\n";
      if(document.CARETEvents.Event02.checked)
         Tmp += "E: "+document.CARETEvents.Event02.value+"\n";
      if(document.CARETEvents.Event03.checked)
         Tmp += "E: "+document.CARETEvents.Event03.value+"\n";
      if(document.CARETEvents.Event04.checked)
         Tmp += "E: "+document.CARETEvents.Event04.value+"\n";
      */
      if(document.CARETEvents.Event05.checked)
         Tmp += "E: "+document.CARETEvents.Event05.value+"\n";
      if(document.CARETEvents.Event06.checked)
         Tmp += "E: "+document.CARETEvents.Event06.value+"\n";
      if(document.CARETEvents.Event07.checked)
         Tmp += "E: "+document.CARETEvents.Event07.value+"\n";
      
      document.CARETEvents.Events.value = Tmp;
      //alert(Tmp);
   }
   
   
   // Load up the Events var:  (checkbox)
   if(document.CARETEvents.Cinfo.checked) {
      document.CARETEvents.CARETinfo.value = 'Please send me CARET information, thanks.';
      //alert("Yup, CARETInfo wanted!\n"+document.CARETEvents.CARETinfo.value);
   }

   return Rtn;
}


function click() {
  if ((event.button==2) || (event.button==3)) {
    var txt = "Sorry, that function is disabled! "
       txt += "If you want something, drop me a note.  KE3FL"
    window.alert(txt);
  }
    window.alert("Got here!");
}



// *******************************************************************************
// *******************************************************************************
//                         Calendar Functions below here
// *******************************************************************************
// *******************************************************************************

