

function ShowContent( originalRequest ) {
  document.getElementById( 'output' ).innerHTML = originalRequest.responseText;
}


function ShowMoreEvents(i, id, uid){
	document.getElementById( 'AjaxLoader1' ).style.display = 'block';
	/*document.getElementById( 'AjaxShowMore1' ).style.display = 'none';*/


	var myAjax = new Ajax.Request(
	  "/fileadmin/tauchbar/kalender/mod.ajax.events.php?lim=" + i + "&id=" + id + "&uid=" + uid,
	  { method: 'get', onComplete: ShowContent }
	);

}

function CheckEventDate(Param1){
	
	new Ajax.Request('/fileadmin/tauchbar/kalender/mod.ajax.checkdate.php?par=' + Param1,
	  {
	  	method: 'get', 
		onSuccess: function(transport){
	  	 document.getElementById( 'ErrEventDate' ).innerHTML = transport.responseText;
		},
    	onFailure: function(){ alert('Something went wrong...') }
	  });

}

function ShowWallPosts(i, id, uid){
	
	new Ajax.Request('/fileadmin/tauchbar/kalender/mod.ajax.showposts.php?lim=' + i + '&id=' + id + "&uid=" + uid,
	  {
	  	method: 'get', 
		onSuccess: function(transport){		 
	  	 document.getElementById( 'WallPosts' ).innerHTML = transport.responseText;
		},
    	onFailure: function(){ alert('Something went wrong...') }
	  });
}

function ShowMoreWallPosts(i, id, uid){
	document.getElementById( 'AjaxLoader2' ).style.display = 'block';
	ShowWallPosts(i, id, uid);
}

