function update_info(id) {
	var termin_id = id.split("-")[0];
	var special = id.split("-")[2];
	
	//informationen zum stueck anzeigen
	new Ajax.Updater('news', 'wp-content/themes/tig7_theme/ajax_termin_info.php', { parameters: { id: termin_id } });
	
	//anzahl verfuegbarer karten updaten
	new Ajax.Updater('menge_box', 'wp-content/themes/tig7_theme/ajax_available_tickets.php', { parameters: { id: termin_id }, onComplete: function(e) {
		if($('submit').disabled == true) {
			//re-enable the button
			var check = $('menge_box').innerHTML.indexOf('option');

			if(check > 0) {
				$('submit').disabled = false;
			} else {
				$('submit').disabled = true;
			}
		}		
	} });
	
	if(special == '1') {
		$('special_box').show();
	} else {
		$('special_box').hide();
		//maybe uncheck the checkbox again?
	}
	
	track('/ajax_termin_info.php?id='+id);
	return false;
}

function member_info(person_id) {
	//informationen zur person anzeigen
	new Ajax.Updater('news', 'wp-content/themes/tig7_theme/ajax_member_info.php', { parameters: { id: person_id} });
	
	track('/ajax_member_info.php?id='+person_id);
	return false;
}

function track(what) {
	/* google analytics helper. switch of tracking here if you want. */
	pageTracker._trackPageview(what);
	return false;
}