function eingabeCheck1()
{
// check for valide date

var idx = document.forms[0].date1.selectedIndex;
var cdate = document.forms[0].date1.options[idx].text;

idx = document.forms[0].date2.selectedIndex;
var cmonth = document.forms[0].date2.options[idx].text;

idx = document.forms[0].date3.selectedIndex;
var cyear = document.forms[0].date3.options[idx].text;


	// Is date valid for month?
	if (cmonth == 2) {
		// Check for leap year
		if ( ( (cyear%4 == 0)&&(cyear%100 != 0) ) || (cyear%400 == 0) ) { // leap year
			if (cdate > 29){ alert("Bitte überprüfen Sie das Datum. \n\nDer Monat Februar hat maximal nur 29 Tage."); return false; }
			}
		else {
			if (cdate > 28) { alert("Bitte überprüfen Sie das Datum. \n\nDer Tag für den Monat Februar ist für dieses Jahr nicht korrekt."); return false;  }
			}
		}
	if ((cmonth==4)||(cmonth==6)||(cmonth==9)||(cmonth==11)) {
		if (cdate > 30) {  alert("Bitte überprüfen Sie das Datum. \n\nDieser Monat hat keine 31 Tage."); return false; }
		}

		

return true;

}

function eingabeCheck()
{
// check for future date


now = new Date();
var curmonth = now.getMonth()+1;
var curday = now.getDate();
var curyear = now.getYear();

app=navigator.appName;
if (app.indexOf('Netscape') != -1) {
	curyear += 1900;
}

var idx = document.forms[0].date1.selectedIndex;
var cdate = document.forms[0].date1.options[idx].text;

idx = document.forms[0].date2.selectedIndex;
var cmonth = document.forms[0].date2.options[idx].text;

idx = document.forms[0].date3.selectedIndex;
var cyear = document.forms[0].date3.options[idx].text;

var curcomp = curyear*365 + curmonth*31 + curday*1;
var ccomp = cyear*365 + cmonth*31 + cdate*1;

	// Is the input date a future one
	if ( curcomp < ccomp ) 
		{ alert("Bitte überprüfen Sie das Datum. \n\nEs ist kein zukünftiges Datum möglich."); return false; }
	else
		return true;

}

function eingabeECheck1()
{
// check for valide date

var idx = document.forms[0].edate1.selectedIndex;
var cdate = document.forms[0].edate1.options[idx].text;

idx = document.forms[0].edate2.selectedIndex;
var cmonth = document.forms[0].edate2.options[idx].text;

idx = document.forms[0].edate3.selectedIndex;
var cyear = document.forms[0].edate3.options[idx].text;


	// Is date valid for month?
	if (cmonth == 2) {
		// Check for leap year
		if ( ( (cyear%4 == 0)&&(cyear%100 != 0) ) || (cyear%400 == 0) ) { // leap year
			if (cdate > 29){ alert("Bitte überprüfen Sie das Datum. \n\nDer Monat Februar hat maximal nur 29 Tage."); return false; }
			}
		else {
			if (cdate > 28) { alert("Bitte überprüfen Sie das Datum. \n\nDer Tag für den Monat Februar ist für dieses Jahr nicht korrekt."); return false;  }
			}
		}
	if ((cmonth==4)||(cmonth==6)||(cmonth==9)||(cmonth==11)) {
		if (cdate > 30) {  alert("Bitte überprüfen Sie das Datum. \n\nDieser Monat hat keine 31 Tage."); return false; }
		}

		

return true;

}

function eingabeECheck()
{
// check for future date


now = new Date();
var curmonth = now.getMonth()+1;
var curday = now.getDate();
var curyear = now.getYear();

app=navigator.appName;
if (app.indexOf('Netscape') != -1) {
	curyear += 1900;
}

var idx = document.forms[0].edate1.selectedIndex;
var cdate = document.forms[0].edate1.options[idx].text;

idx = document.forms[0].edate2.selectedIndex;
var cmonth = document.forms[0].edate2.options[idx].text;

idx = document.forms[0].edate3.selectedIndex;
var cyear = document.forms[0].edate3.options[idx].text;

var curcomp = curyear*365 + curmonth*31 + curday*1;
var ccomp = cyear*365 + cmonth*31 + cdate*1;

	// Is the input date a future one
	if ( curcomp < ccomp ) 
		{ alert("Bitte überprüfen Sie das Datum. \n\nEs ist kein zukünftiges Datum möglich."); return false; }
	else
		return true;

}

function window_news( newsitem )
{
	var thisWindow;
	thisWindow = window.open(newsitem,"News","width=667,height=550,scrollbars=yes,screenX=0,screenY=0");
	thisWindow.moveTo((screen.width-650)/2,(screen.height-550)/3);
 	thisWindow.window.focus();
}

function window_analysen( newsitem )
{
	var thisWindow;
	thisWindow = window.open(newsitem,"Analysen","width=780,height=550,scrollbars=yes,screenX=0,screenY=0");
	thisWindow.moveTo((screen.width-780)/2,(screen.height-600)/2);
 	thisWindow.window.focus();
}

function window_termine( newsitem )
{
	var thisWindow;
	thisWindow = window.open(newsitem,"termine","width=780,height=570,scrollbars=yes,screenX=0,screenY=0");
	thisWindow.moveTo((screen.width-780)/2,(screen.height-570)/3);
 	thisWindow.window.focus();
}

function window_interessantes( newsitem )
{
	var thisWindow;
	thisWindow = window.open(newsitem,"interes","width=780,height=570,scrollbars=yes,screenX=0,screenY=0");
	thisWindow.moveTo((screen.width-780)/2,(screen.height-570)/3);
 	thisWindow.window.focus();
}

function window_profile( newsitem )
{
	/*var thisWindow;
	thisWindow = window.open(newsitem,"profile","width=667,height=570,scrollbars=yes,screenX=0,screenY=0");
	thisWindow.moveTo((screen.width-650)/2,(screen.height-570)/3);
 	thisWindow.window.focus();*/

	var thisWindow;
	thisWindow = window.open(newsitem,"profile","width="+(screen.width-40)+",height="+(screen.height-220)+",scrollbars=yes,screenX=0,screenY=0,toolbar=no,location=no,menubar=no");
	thisWindow.moveTo(20,110);
 	thisWindow.window.focus();
}

function window_addata( newsitem )
{
	var thisWindow;
	thisWindow = window.open(newsitem,"Addata","width=767,height=550,scrollbars=yes,screenX=0,screenY=0");
	thisWindow.moveTo((screen.width-750)/2,(screen.height-550)/3);
 	thisWindow.window.focus();
}

function window_comdirekt( newsitem )
{
	var thisWindow;
	thisWindow = window.open(newsitem,'cck',"width="+(screen.width-40)+",height="+(screen.height-220)+",scrollbars=yes,screenX=0,screenY=0,toolbar=yes,location=yes,menubar=yes");
	thisWindow.moveTo(20,20); 
 	thisWindow.window.focus();
}

function window_new( newsitem, title )
{
	var thisWindow;
	thisWindow = window.open(newsitem,title,"width=780,height=550,scrollbars=yes,screenX=0,screenY=0,toolbar=no,location=no,menubar=no");
	thisWindow.moveTo((screen.width-780)/2,(screen.height-550)/3);
 	thisWindow.window.focus();
}

function window_new1( newsitem, title )
{
	var thisWindow;
	thisWindow = window.open(newsitem,title,"width=798,height="+(screen.height-220)+",scrollbars=yes,screenX=0,screenY=0,toolbar=no,location=no,menubar=no");
	thisWindow.moveTo((screen.width-798)/2,110);
 	thisWindow.window.focus();
}

function window_new_ken( newsitem, title )
{
	var thisWindow;
	thisWindow = window.open(newsitem,title,"width="+(screen.width-40)+",height="+(screen.height-220)+",scrollbars=yes,screenX=0,screenY=0,toolbar=yes,location=yes,menubar=yes");
	thisWindow.moveTo(20,40);
 	thisWindow.window.focus();
}

function window_kennzahlen( newsitem)
{
	var thisWindow;
	thisWindow = window.open(newsitem,'kennzahlen',"width="+(screen.width-40)+",height="+(screen.height-220)+",scrollbars=yes,screenX=0,screenY=0,toolbar=no,location=no,menubar=no");
	thisWindow.moveTo(20,110);
 	thisWindow.window.focus();
}

function window_dcf( newsitem, title )
{
	var thisWindow;
	thisWindow = window.open(newsitem,title,'width=667,height=550,scrollbars=yes,screenX=0,screenY=0,toolbar=no,location=no,menubar=no');
	thisWindow.moveTo((screen.width-650)/2,(screen.height-550)/3);
 	thisWindow.window.focus();
}

function window_small( newsitem )
{
	var thisWindow;
	thisWindow = window.open(newsitem,'small','width=667,height=550,scrollbars=yes,screenX=0,screenY=0,toolbar=no,location=no,menubar=no');
	thisWindow.moveTo((screen.width-480)/2,(screen.height-300)/3);
 	thisWindow.window.focus();
}


function window_smaller( newsitem )
{
	var thisWindow;
	thisWindow = window.open(newsitem,'small','width=550,height=450,scrollbars=yes,screenX=0,screenY=0,toolbar=no,location=no,menubar=no');
	thisWindow.moveTo((screen.width-560)/2,(screen.height-450)/3);
 	thisWindow.window.focus();
}

function window_finz( newsitem )
{
	var thisWindow;
	thisWindow = window.open(newsitem,'small','width=450,height=150,scrollbars=no,screenX=0,screenY=0,toolbar=no,location=no,menubar=no');
	thisWindow.moveTo((screen.width-460)/2,(screen.height-150)/3);
 	thisWindow.window.focus();
}

function stopErrors() {
	return true;
}

window.onerror = stopErrors;

