function flipImage(obj, objName) {
	if (document.images) {
		if(currentRot!=objName)
			obj.src = eval(objName + ".src");
	}
}
    
    
function loadInto(selectObj) {
	document.location.href = "../../referenzen/alphabetischeListe/"+selectObj;
}
   
function validate() {
	var error_fields = "";

	if(!document.kontaktForm.name.value) error_fields += "Name, ";
	if(!document.kontaktForm.telefon.value) error_fields += "Telefon, "; else
		if(!document.kontaktForm.telefon.value.match(/^[0-9\/\+\(\)\W]+$/)) error_fields += "Telefon, ";
	if(document.kontaktForm.eMail.value && !document.kontaktForm.eMail.value.match(/^[A-Za-z0-9_.-]+@[A-Za-z0-9_.-]+.\w{2,}$/i)) error_fields += "E-Mail, ";
	if(!document.kontaktForm.nachricht.value) error_fields += "Nachricht, ";
	if(error_fields != "") {
		alert('Die folgenden Felder waren fehlerhaft: ' + error_fields.substring(0,error_fields.length-2));
		return false;
	}
	return true;
}
 
function vas() { //-V-alidate -a-nd -s-end
	if(validate()) document.kontaktForm.submit();
}

function setForm() {
	document.kontaktForm.name.value = "";
	document.kontaktForm.firma.value = "";
	document.kontaktForm.strasse.value = "";
	document.kontaktForm.plzOrt.value = "";
	document.kontaktForm.telefon.value = "";
	document.kontaktForm.eMail.value = "";
	document.kontaktForm.nachricht.value = "";
}