// javascript DHMTL - funktionen
// author: alexander stier, cuti & stier gbr
// datum: 09.08.2004

var isW3C = (document.getElementById) ? true : false;
var isAll = (document.all) ? true : false; 

function myFunc(elemID) {
    var elem = (isW3C) ? document.getElementById(elemID) : ((isAll) ? document.all[elemID] : null);
    if (elem) {
        // act on element
    }
}

function rollover(Bild)
{
	with (document.images[Bild])
	src = (src.indexOf("0") != -1) ? src.replace(/0/, "1") : src.replace(/1/, "0");
}

function togglePoint(point) {
	document.images[point].src = document.images[point].src.replace(/0/, "2");
}

function openPopUp(url,name,top,left,width,height,scrollbars,toolbar,status,location)
{
	thirdParameter = 'top=' + top + ',left=' + left + ',width=' + width + ',height=' + height + ',scrollbars=' + scrollbars + ',toolbar=' + toolbar + ',status=' + status + ',location=' + location + ',resizable=1,menubar=no';
	openpUpObj = window.open(url,name,thirdParameter);
	openpUpObj.focus();
}

function validateAnfrage(form)
{
	if (form.nachname.value == "")
	{ alert("Bitte geben Sie Ihren Namen an !"); form.nachname.focus(); return false; }

	if (form.email.value == "")
	{ alert("Bitte geben Sie Ihre e-mail-Adresse an !"); form.email.focus(); return false; }
	if (form.email.value.indexOf('@', 0) == -1 ||	form.email.value.indexOf('.', 0) == -1)
	{ alert("Bitte geben Sie ein gültige E-Mail-Adresse an !"); form.email.focus(); return false; }

	return true;
}

