//
function cOn(td){
if(document.getElementById||(document.all && !(document.getElementById))){
td.style.backgroundColor="#F4F4F7";
}
}

function cOut(td){
if(document.getElementById||(document.all && !(document.getElementById))){
td.style.backgroundColor="#BEDCD9";
}
}

function vs_open_window(openbrse, openbrna, openbrop) {
	var windowname = window.open(openbrse,openbrna,openbrop)
	if (windowname){
	if (windowname.focus){
	windowname.focus();}}
	return windowname;
}


function mailertest(){var activeform = document.mailer; var formtestok = true;
	if (activeform.name.value=="" && formtestok == true){alert("Bitte Name eingeben"); activeform.name.focus(); formtestok = false;}
	if (activeform.vorname.value=="" && formtestok == true){alert("Bitte Vorname eingeben"); activeform.vorname.focus(); formtestok = false;}
	if (activeform.geburtsdatum.value=="" && formtestok == true){alert("Bitte das Geburtsdatum eingeben"); activeform.geburtsdatum.focus(); formtestok = false;}
	if (activeform.strasse.value=="" && formtestok == true){alert("Bitte die Strasse eingeben"); activeform.strasse.focus(); formtestok = false;}
	if (activeform.plz.value=="" && formtestok == true){alert("Bitte die Postleitzahl Ihre Wohnortes eingeben"); activeform.plz.focus(); formtestok = false;}
	if (activeform.ort.value=="" && formtestok == true){alert("Hier fehlt die Ortschaft oder Stadt"); activeform.ort.focus(); formtestok = false;}
	var etsuche = activeform.email.value.indexOf('@',2); if (etsuche == -1 && formtestok == true){alert("und wie lautet Ihre richtige Mail Adresse?"); activeform.email.focus(); formtestok = false;}
	if (activeform.email.value.indexOf('.',etsuche+2) == -1 && formtestok == true){alert("und wie lautet Ihre richtige E-Mail Adresse?"); activeform.email.focus(); formtestok = false;}
	var etsuche = activeform.mailto_cc.value.indexOf('@',2); if (etsuche == -1 && formtestok == true){alert("Nochmals Ihre richtige Mail Adresse?"); activeform.mailto_cc.focus(); formtestok = false;}
	if (activeform.mailto_cc.value.indexOf('.',etsuche+2) == -1 && formtestok == true){alert("Nochmals Ihre richtige E-Mail Adresse?"); activeform.mailto_cc.focus(); formtestok = false;}
	if (activeform.zugestimmt.checked==false && formtestok == true){alert("Bitte, mit Haken setzen die Lizenz und Bedingungen als zugestimmt erklären."); activeform.zugestimmt.focus(); formtestok = false;}

	return formtestok;}



