
/* 
* major.js
* Author : Beat Faeh beat@faeh.sh
* Date : 16. Januar 2005
*/

function myDate()
{

	var a;
	// a = new Date(document.lastModified);
	a = new Date();

	jahr = a.getYear();
	
	if (jahr < 1000){ 	
		if (jahr < 70){
		jahr = 2000 + jahr;
		}
		else jahr=1900+jahr;
	}						
	
	monat = a.getMonth() + 1;
	if (monat < 10){
		monat = '0' + monat;
	}
	tag = a.getDate();
	if (tag < 10){
		tag ='0' + tag;
	}
	document.write("aktuelles Datum: " + tag + '.' + monat + '.' + jahr);	
}

function pop_agb()
    {
    msg=open("","NewWindow","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=600,height=480,screenX=0,screenY=0");
    msg.location = "../html/agb.html";
    }
	
function MM_reloadPage(init) {
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

function delete_yes_no(url, get_vars)
{
	var msg = "Wollen Sie den Eintrag wirklich entfernen?";

	if(window.confirm(msg))
	{
		cschng="BEBD9E309";
	
		document.location.href = url + "?" + get_vars;
	}
}