/* Für den Newsletter */
function controlNews()
{
	var ns="Netscape";
	if((navigator.appName==ns) && (navigator.appVersion.substring(0,1) >= "4"))
	{
	commando=document.formNews;
	}
	else
	commando=document.formNews;
	/* Mail Check */

	if(commando.email.value == "")
	{
	alert("Bitte geben Sie Ihre E-Mail ein !");
	commando.email.focus();
	return false;
	}
}
/*  Ende Newsletter */

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function NewWindow(mypage, myname, w, h, scroll) 
{
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+''
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
/*
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
*/
function je_nach_Groesse(URLderSeite,NAMEdesFensters,EIGENSCHAFTdesFensters){
	window.open(URLderSeite,NAMEdesFensters,EIGENSCHAFTdesFensters);
}

/*  Angebote */
function controlANG()
{
var commando, plzl="0123456789",datl="0123456789.",datl2="0123456789., ",telfax="0123456789-/+ ",c , d, L, E, indexZ;
var ns="Netscape";
if((navigator.appName==ns) && (navigator.appVersion.substring(0,1) >= "4"))
{
commando=document.formANG;
}
else
commando=document.formANG;

/* Anrede Check */

if(commando.anrede[0].checked==false && commando.anrede[1].checked==false)
{
	alert("Bitte Anrede auswählen");
	return false;
}

/* Name Check */

if(commando.name.value == "")
{
alert("Bitte geben Sie Ihren Zunamen an !");
commando.name.focus();
return false;
}

/* Vorname Check */

if(commando.vorname.value == "")
{
alert("Bitte geben Sie Ihren Vornamen an !");
commando.vorname.focus();
return false;
}

/* Straße Check */

if(commando.str.value == "")
{
alert("Bitte geben Sie Straße und Hausnummer mit an !");
commando.str.focus();
return false;
}

/* PLZ Check */

if(commando.plz.value == "")
{
alert("Bitte geben Sie Ihre Postleitzahl mit an !");
commando.plz.focus();
return false;
}
E=commando.plz.value;
L=E.length;
for(c=0;c<L;c++)
{
d=E.charAt(c);
if(plzl.indexOf (d) == -1)
{
alert("Bitte verwenden Sie für die Postleitzahl nur Zahlen !");
commando.plz.focus();
commando.plz.select();
return false;
}
}

/* Ort Check */

if(commando.ort.value == ""){
alert("Bitte geben Sie Ihren Wohnort an !");
commando.ort.focus();
return false;
}
}
