//
// File : comingevents.js
//
// Description : Javascript functions for Coming Events
//
// Contents    : 
//               audienceChanged
//               initAudience
//               setAudience
//               loadAudiences
//               getCookie
//               setCookie

  
  //
  // The event location (filter) value was changed
  //
  function eventLocationChanged() {
    var options = document.getElementById("eventlocalityselect").options;
  	var index = document.getElementById("eventlocalityselect").selectedIndex;
  	  	
  	if(index != 0) {  	 	
		var location = options[index].value;	
    	setCookie("locality", location);
    } else {
    	setCookie("locality", "");
    }
    
    document.location.reload();
  }

