function openWindow(url, extern) {
	
	settings = "width=800,height=600,top=150,left=100"
	
	if (extern) {
		url = "http://" +url;
		settings = settings + "location=yes,menubar=yes,resizable=yes,scrollbars=yes,status=yes,toolbar=yes";
	} else {
		settings = settings + "location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no";
	}
	newWindow = window.open(url,"Fenster",settings);
	if(parseInt(navigator.appVersion) >= 4){newWindow.window.focus();}
}

function openInfo(url, wi, he) {
	settings = "width=" + wi + ",height=" + he +",top=150,left=100,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no";
	newWindow = window.open(url,"Fenster",settings);
	if(parseInt(navigator.appVersion) >= 4){newWindow.window.focus();}
}

function sendTo(name) {
	if(name=="bu") {
		window.location.href = "mailto:markus.buehler@gruene-wiesenbach.de";
	}
	if(name=="wa") {
		window.location.href = "mailto:wolfgang.arnold@gruene-wiesenbach.de";
	}
	if(name=="ko") {
		window.location.href = "mailto:matthias.koestle@gruene-wiesenbach.de";
	}
	if(name=="ma") {
		window.location.href = "mailto:matthias@mkoestle.de";
	}
	if(name=="no") {
		window.location.href = "mailto:heinz-ludwig.noellenburg@gruene-wiesenbach.de";
	}
}

function checkForm() {
	returnFlag = false;
	if(document.getElementById("b90dG_vorname").value == "") {returnFlag = false;} else {returnFlag = true;}
	if(document.getElementById("b90dG_name").value == "") {returnFlag = false;} else {returnFlag = true;}
	if(document.getElementById("b90dG_email").value.length > 4 && document.getElementById("b90dG_email").value.indexOf("@") > -1 && document.getElementById("b90dG_email").value.indexOf(".") > -1) {returnFlag = false;} else {returnFlag = true;}
		
	return returnFlag;
}
