<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  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();
}
MM_reloadPage(true);


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function MM_findObj(n, d) { //v4.01
  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 && d.getElementById) x=d.getElementById(n); return x;
}


function toggleswitch(div)
{
var option=['div01','div02','div03','div04','div05']; // nach belieben fortsetzen ...
for(var i=0; i<option.length; i++)
{ obj=document.getElementById(option[i]);
obj.style.display=(option[i]==div) && !(obj.style.display=="block")? "block" : "none"; }
}



function checkForm()
{
doSubmit = true;
//firmaA = document.forms[0].firma.value;
emanA = document.forms[0].eman.value;
//numA = document.forms[0].num.value;
liameA = document.forms[0].liame.value;
egassemA = document.forms[0].egassem.value;

if (doSubmit == true) 	{ 
if (emanA== "" ) 	{
alert("Bitte geben Sie Ihren Namen ein\nDanke!");
document.forms[0].eman.focus();
doSubmit = false;
}
}

if (doSubmit == true) 	{ 
if ( (liameA.indexOf('@')==-1 ) || (liameA.indexOf('.')==-1))	{
alert("Bitte geben Sie Ihre korrekte E-Mailadresse ein.\nDanke!");
document.forms[0].liame.focus();
doSubmit = false;
}
}
if (doSubmit == true) 	{ 
if (egassemA=="" ) 	{
alert("Bitte geben Sie eine Nachricht ein.\nDanke!");
document.forms[0].egassem.focus();
doSubmit = false;
}
}
if (doSubmit == true)	{
document.forms[0].submit(); 
}
}


function checkEmpf()
{
doSubmit = true;
emanB = document.forms[0].emansen.value;
liameB = document.forms[0].liamesen.value;
emanC = document.forms[0].emanempf.value;
liameC = document.forms[0].liameempf.value;


if (doSubmit == true) 	{ 
if (emanB== "" ) 	{
alert("Bitte geben Sie Ihren Namen ein\nDanke!");
document.forms[0].emansen.focus();
doSubmit = false;
}
}

if (doSubmit == true) 	{ 
if ( (liameB.indexOf('@')==-1 ) || (liameB.indexOf('.')==-1))	{
alert("Bitte geben Sie Ihre korrekte E-Mailadresse ein.\nDanke!");
document.forms[0].liamesen.focus();
doSubmit = false;
}
}
if (doSubmit == true) 	{ 
if (emanC== "" ) 	{
alert("Bitte geben Sie den Empfängernamen ein\nDanke!");
document.forms[0].emanempf.focus();
doSubmit = false;
}
}

if (doSubmit == true) 	{ 
if ( (liameC.indexOf('@')==-1 ) || (liameC.indexOf('.')==-1))	{
alert("Bitte geben Sie die korrekte E-Mailadresse des Empfängers ein.\nDanke!");
document.forms[0].liameempf.focus();
doSubmit = false;
}
}
if (doSubmit == true)	{
document.forms[0].submit(); 
}
}

function checkUser()

{
doSubmit = true;
usernameA = document.forms[0].username.value;
passwortB = document.forms[0].passwort.value;


if (doSubmit == true) 	{ 
if (usernameA== "" ) 	{
alert("Bitte geben Sie Ihren Namen ein\nDanke!");
document.forms[0].username.focus();
doSubmit = false;
}
}

if (doSubmit == true) 	{ 
if (passwortB== "" ) 	{
alert("Bitte geben Sie Ihr Passwort ein\nDanke!");
document.forms[0].passwort.focus();
doSubmit = false;
}
}

if (doSubmit == true)	{
document.forms[0].submit(); 
}
}










//-->
