function add_event_user(Bid,srv,module_name) 
{
	get_page(srv+'modules/mod_event_search/mod_event_search_add_event_user.php?event_id='+Bid+'&module_name='+module_name+'', function() { add_event_user_post(Bid); }); 
}


function add_event_user_post(Bid)
{
	if ((xmlhttp.readyState == 4) && (xmlhttp.status == 200))
	{
      var window1 = document.getElementById("add_user_event");
	  var window2 = document.getElementById("add_user_event_txt");
	  window1.style.display = 'block';
      window2.innerHTML = xmlhttp.responseText;
	}
}


function mod_profile_event_info(srv)
{
var req = new Request({
		method: 'get',
		url:srv,
		data: { 'do' : '1' },
		onRequest: function() { 
			var window2 = document.getElementById("content_1");
			window2.style.display = 'block';
			$(window2).innerHTML = "<img src='images/loading.gif' />";  },	
		onFailure: function() { $("content_2").set('text', 'The request failed.') },				
		onComplete: function(response) { 
			$("content_1").set('html', response);	
  	$$('div.event_content_go_to_0').each(function(element) {
		var effect = new Fx.Slide(element).hide();
		element.style.display = 'block';				
			});	  			
		}
	 }).send();
}	


function open_windows_event_users(Bid)
{
      var window1 = document.getElementById("event_users_"+Bid);
	  var elm = new Fx.Slide(window1).slideIn();	
}

function close_windows_event_users(Bid)
{
      var window1 = document.getElementById("event_users_"+Bid);
	  var elm = new Fx.Slide(window1).slideOut();	
}

function close_windows_event()
{
	var window1 = document.getElementById("content_1");
		window1.style.display = 'none';
}

