<!--	
ns = (document.layers)? true:false
ie = document.all||document.getElementById
// ie = (document.all)? true:false


var obligatory = new Array();
obligatory[0] = "anrede";
obligatory[1] = "name";
obligatory[2] = "vorname";
obligatory[3] = "strasse";
obligatory[4] = "plz";
obligatory[5] = "telefon";
obligatory[6] = "email";

var anruf = new Array(0,1,2,5);
var katalog = new Array(0,1,2,3,4);
var newsletter = new Array(0,1,2,4,6);

function init() {
	checkAuswahl();
}

function getFeldCode(name) {
	if (ns) {
		return "";
	} else if (ie) {
		return "<div id=\"" + name + "\" style=\"position:relative;left:0px;top:0px\"></div>";
	}
}

function checkAuswahl() {
	initObligatory();
	if (document.form.anruf.checked == true) {
		activateObligatory(anruf);
	} 
	if (document.form.katalog.checked == true) {
		activateObligatory(katalog);
	}
	if (document.form.newsletter.checked == true) {
		activateObligatory(newsletter);
	}
}

function initObligatory() {
	for (i = 0; i < obligatory.length; ++i) {
		clearStar(obligatory[i]);
	}
}

function activateObligatory(liste) {
	for (i = 0; i < liste.length; ++i) {
//		alert(obligatory[liste[i]] + " wird aktiviert");
		writeStar(obligatory[liste[i]]);
	}	
}

// Navigator - Stars in input-Feldern entfernen
function clearNStar(bezeichner) {
	if (ns) {
		// Netscape 4
		feld = eval("document.form." + bezeichner);
		if (feld.value == "*") {
			feld.value = "";
		}
	} 
}

function clearStar(bezeichner) {
	if (ns) {
		// Netscape 4
		feld = eval("document.form." + bezeichner);
		if (feld.value == "*") {
			feld.value = "";
		}
	} else if (ie) {
		// IE und NS 6
		feld = document.getElementById ? eval("document.getElementById(\"" + bezeichner + "\")") : eval("document.all." + bezeichner);
		feld.innerHTML = ""
	}
}

function writeStar(bezeichner) {
	if (ns) {
		// alert("Netscape");
		feld = eval("document.form." + bezeichner);
		if (feld.value == "") {
			feld.value = "*";
		}
	} else if (ie) {
		// alert("IE");
		feld = eval("document.form." + bezeichner);
//		if (feld.value == "") {
		feld = document.getElementById ? eval("document.getElementById(\"" + bezeichner + "\")") : eval("document.all." + bezeichner);
		feld.innerHTML = "<font color='FF0000'>*</font>"
//		}
	}
}



//-->