function replmail( test ) {
	mail = test;
	var mail = mail.replace(/(<([^>]+)>)/ig,"");	
	var mail = mail.replace(/&nbsp;/g, "");
	return mail;
}

function loadinfo( id, obj ) {
	detailobj = '#res'+id+' div';
	$(detailobj).html('Moment bitte...');
	$(detailobj).fadeOut("slow", function() {
		$.ajax({
		  url: document.URL,
		  type: "POST",
		  cache: false,
		  async: false,
		  datatype: "html",
		  data: "ajax=1&details=1&id="+id,
		  success: function(htmlanswer){
			$(detailobj).html(htmlanswer).fadeIn("slow");
		  } 
		});
	});
}

function loadresults() {
	if( stillbusy == 0 ) {
		stillbusy = 1;
		$('#activeimg').show();
		$('#ergebnis').fadeOut("100", function() {
			$.ajax({ 
			url: document.URL,
			  type: "POST",
			  cache: false,
			  async: false,
			  data: "ajax=1&"+$("#dosearch").serialize(),
			  success: function(htmlanswer){
				$('#ergebnis').html(htmlanswer);
				$('#ergebnis').fadeIn("4000");
				stillbusy = 0;
				$('#activeimg').hide();
			  } 
			});
		});
	}
}

function web20( state ) {
	$('#navi ul li a').each(function(i) {
		$(this).click( function() {
			$(this).blur();
			$('#content').load(document.URL,
				{ page: $(this).attr('href') },
				function() {
				}
		);

		return false;
		});
	});
}

