   
function feedback_form(){
	var like = 0;
	var topic = 0 ;
	var content = "";
	
	$("a[rel='feedback_form']").colorbox({
		opacity: 0.5,
		inline: true,
		href: "#myFeedbackForm",
		innerWidth: 880,
		innerHeight: 620,
		rel: "nofollow",
		scrolling: false,
		overlayClose: false
	});
	
	
	$("a.auswahl").click(function(){
		$("a[class='auswahl active']").removeClass("active");
		$(this).addClass("active");
		return false;
	});
	
	
	$("#send_feedback").click(function() {
		$('#send_feedback').attr("disabled", true);
		
		content = $("#textarea_feedback").val();
		email = $("#email_feedback").val();
		
		//prüfe ob ausgefüllt
		$.post("http://lernenhoch2.de/wp-content/themes/lernenhoch2_main/feedback/send_fb.php", { content: content, email: email }, function() {
			$("#myFeedbackForm").html("<div style=\"text-align: center; font-size: 2em; font-weight: bold; font-family:Georgia; margin-top: 200px; color: #777;\">Vielen dank für dein Feedback!</div><div style=\"text-align: center; font-size: 1em; font-family:Georgia; color: #999;\">(Fenster schließt in 2 Sekunden)</div>");
				
			clearTimeout($.data(this, "timer"));
			var ms = 2000; //milliseconds
			var val = this.value;
			var wait = setTimeout(function() {
				//set_focus();
				$.fn.colorbox.close();  
			}, ms);
			$.data(this, "timer", wait);
		});	
		
		return false;
	});
}
