function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function over(obj){
    x = MM_findObj(obj) ;
	pos = x.src.indexOf('n_') ;
	if(pos > 0)
		x.src = x.src.slice(0,pos) + 'a_' + x.src.slice(pos+2) ;
	x.alt = obj ;
}
function out(obj){
    x = MM_findObj(obj) ;
	pos = x.src.indexOf('a_') ;
	if(pos > 0)
		x.src = x.src.slice(0,pos) + 'n_' + x.src.slice(pos+2) ;
}

function toggle(name)
{
    var ans = document.getElementById(name);
    if (ans == null) return;
    if (ans.style.display == '')
    {
	     ans.style.display = 'none';
    }
    else
    {
	     ans.style.display = '';
    }
}

function check_date(date_string)
{
	var datp = date_string.split(".");

	if(datp.length != 3)
	{
		alert("Bitte geben Sie ein korrektes Datum ein.");
	  return(false);
	}
	
	var enter_date = new Date(datp[2], datp[1] -1, datp[0]);
	if(enter_date.getDate() == form1.day.value) { 
		return(true);
	} else {
		alert("Bitte geben Sie ein korrektes Datum ein.");
	  return(false);
	}
}

function go_link(dest)
{
	var z = dest;
	window.location.href=dest;
}