function blur_user() {
	if(document.login.username.value=="") {
		document.login.username.value='Benutzername';
	}
}

function blur_pass() {
	if(document.login.password.value=="") {
		document.login.password.value='Passwort';
	}
}

function focus_user() {
	if(document.login.username.value=="Benutzername") {
		document.login.username.value='';
	}
}

function focus_pass() {
	if(document.login.password.value=="Passwort") {
		document.login.password.value='';
	}
}

function event_details(id) {
	fenster = window.open('module/termine/event_details.php?id='+id, 'eventdetails', 'width=300, height=300');
	fenster.focus();
}

function meldung(text, loc) {
	alert(text);
	if(loc) {
		document.location = loc;
	}
}


function video_win(vid) {
		video = window.open(vid, 'eventdetails', 'innerWidth=320, innerHeight=260, width=320, height=259');
		video.focus();
}

function info_win(url,width,height) {
	win = window.open(url, 'infowin', 'width='+width+',height='+height+',scrollbars=yes');

}

function toogle(id) {
	var old_style = document.getElementById(id).style.display;
	var new_style = 'table-row';
	if(document.all) var new_style = 'block';
	
	if(old_style == 'table-row') new_style = 'none';
	
	document.getElementById(id).style.display = new_style;
	window.setTimeout('', 1000);
}

function gehzumdatum(date, cat) {
	if(cat == '') {
		document.location = 'termine.php?datum='+date;
	} else {
		document.location = 'termine.php?cat='+cat+'&datum='+date;
	}
}

function event_goToCat(date) {
	document.location = 'termine.php?cat='+document.categories.categorie.value+'&datum='+date;
}


Normal1 = new Image();
Normal1.src = "images/header_02.gif";     /* erste Standard-Grafik */
Highlight1 = new Image();
Highlight1.src = "images/headr_02.gif"; /* erste Highlight-Grafik */

Normal2 = new Image();
Normal2.src = "images/header_03.gif";     /* zweite Standard-Grafik */
Highlight2 = new Image();
Highlight2.src = "images/headr_03.gif"; /* zweite Highlight-Grafik */

Normal3 = new Image();
Normal3.src = "images/header_04.gif";     /* dritte Standard-Grafik */
Highlight3 = new Image();
Highlight3.src = "images/headr_04.gif"; /* dritte Highlight-Grafik */

/* usw. fuer alle weiteren zu benutzenden Grafiken */

function Bildwechsel (Bildnr, Bildobjekt) {
  window.document.images[Bildnr].src = Bildobjekt.src;
}


		
		
	
		
