     function validate()
     {  f = document.forms[0];
        errorMesg = '';
        if(f.elements['name'].value == '')
        {  errorMesg += 'You must enter your name.  \n';
        }
        if(f.eventname.value == '')
        {  errorMesg += 'Please enter a name for your event.  \n';
        }
        if(f.eventcity.value == '')
        {  errorMesg += 'Please enter the city in which your event will be held. \n';
        }
        if(f.eventstate.value == '' & f.eventstate.value == '')
        {  errorMesg += 'Please select a state in which you would like to hold your event. \n';
        }
		    if(f.contactname.value == '')
        {  errorMesg += 'Please enter the name of a person that may be contacted about your event.  \n';
        }
        email = f.email.value;
        if(email == '' || email.indexOf('@') < 0 || email.length < 5)
        {  errorMesg += 'You must enter a valid e-mail address\n';
        }
        if(f.contactareacode.value == '')
        {  errorMesg += 'Please enter an areacode for your contact.  \n';
        }
        if(f.contactphone1.value == '')
        {  errorMesg += 'Please enter the telephone exchange for your contact.  \n';
        }
        if(f.contactphone2== '')
        {  errorMesg += 'Please enter the last 4 numbers of the phone number for your contact. .  \n';
        }
        email = f.contactemail.value;
        if(email == '' || email.indexOf('@') < 0 || email.length < 5)
        {  errorMesg += 'Please enter a valid email address for your contact.  \n';
        }
        if(errorMesg != '')
        {  errorMesg = 'Please correct the following errors\n\n' + errorMesg;
           alert(errorMesg);
           return(false);
        }else
        {
			return(true);
      }
    }

    function countrySelect(whichSelect)
    {  f=document.forms[0];
   	  if(whichSelect == 67)
    	   {  f.eventcountry[2].checked = true;
    	   }else if(whichSelect >= 54 && whichSelect <= 65)
     	   { f.eventcountry[1].checked = true;
    	   }else
    	   {  f.eventcountry[0].checked = true;
    	   }
    }

    function countrySelectcontact(whichSelect)
    {  f=document.forms[0];
   	  if(whichSelect == 67)
    	   {  f.contactcountry[2].checked = true;
    	   }else if(whichSelect >= 54 && whichSelect <= 65)
     	   {  f.contactcountry[1].checked = true;
    	   }else
    	   {  f.contactcountry[0].checked = true;
    	   }
    }


