/************************************

AJAXFUNCTIES

**************************************/

//-------------------------------------
// TIPS

	function showBox(){
		var selbox = $('datetype') ;
		divShow = escape(selbox.options[selbox.selectedIndex].value) ;
		$('s').className='hideTr';
		$('i').className='hideTr';
		$(divShow).className='showTr';
	}
	
	
	function showRitBox(){
		var selbox = $('rittype') ;
		divShow = escape(selbox.options[selbox.selectedIndex].value) ;
		$('r').className='hideTr';
		if (divShow=='r') $(divShow).className='showTr';
	}
	
	function emptyDate(){
		$('date').value='';
	}
	
	function SelectAll(id)
	{
		$(id).focus();
		$(id).select();
	}

/* show tabs */
	function showTabSearchName(subdomein){
		$('#showSearchName').addClass('active');
		$('#showSearchRitten').removeClass('active');
		$('#showSearchEvents').removeClass('active');
		//new Ajax('index.php', {method: 'post', postBody: 'action=showTabSearchByName&subdomein='+subdomein, update: $('contentTab')}).request();
		$.post("index.php" , { action: 'showTabSearchByName', subdomein: subdomein},
	            function(data) {
					$('#contentTab').html(data);
		         });
		
	}
	
	function showTabSearchRitten(subdomein){
		$('#showSearchName').removeClass('active');
		$('#showSearchRitten').addClass('active');
		$('#showSearchEvents').removeClass('active');
		//new Ajax('index.php', {method: 'post', postBody: 'action=showTabSearchRitten&subdomein='+subdomein, update: $('contentTab')}).request();
		$.post("index.php" , { action: 'showTabSearchRitten', subdomein: subdomein},
	            function(data) {
					$('#contentTab').html(data);
		         });
	}
	
	function showTabSearchEvents(subdomein){
		$('#showSearchName').removeClass('active');
		$('#showSearchRitten').removeClass('active');
		$('#showSearchEvents').addClass('active');
		//new Ajax('index.php', {method: 'post', postBody: 'action=showTabSearchEvents&subdomein='+subdomein, update: $('contentTab')}).request();
		$.post("index.php" , { action: 'showTabSearchEvents', subdomein: subdomein},
	            function(data) {
					$('#contentTab').html(data);
		         });
	}

