// verzoegerung des ansprechverhaltens, zb. fuer keyUp Event
function oneshot(){
	var timer;
	return function(fun,time){
		clearTimeout(timer);
		timer=setTimeout(fun,time)
	}
}
// popup window, bring to front
function px_openWin(theURL,winName,features) {
	fenster = window.open(theURL,winName,features);
	fenster.focus();
}

// tabs seitenende
function selectTab(tab,url){
	$.cookie('tabs', tab, { path: '/', expires: 30 });
	$('#tabcontent').load(url,{tab:tab});
	$('.tab a').css({'background-color' : '#e3e3e3'});
	$('#hreftab'+tab).css({'background-color' : '#ffffff'});
}

