// Roll-Over und Status-Text
window.defaultStatus = "*";
function wechsel(was,modus,wtext) {
document.images[was].src = "gfx/"+modus;
window.status = wtext;
return true;
}

// Pop-up Aufruf mit zentrieren -----------------------------------------------------------------------------------------
function popup(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll;
win = window.open(mypage, myname, winprops);
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

// TD-Farbwechesel
function active(td){
if(document.getElementById||(document.all && !(document.getElementById))){
td.style.backgroundColor="#F7F7F8";
}
}
function inactive(td){
if(document.getElementById||(document.all && !(document.getElementById))){
td.style.backgroundColor="#FFFFFF";
}
}


// Bookmark Funktion
function lesezeichen() {
window.external.addfavorite('http://www.christiankuechler.de', 'Christian Küchler - Design, Programmierung');
}


// Form-Check
function pruefen() {
	var fehler = "";
	var f = document.Mailformular
	if (f.name.value == "") {
		fehler = "Der Name\n";
	}
	if (f.email.value == "") {
		fehler += "Die Email-Adresse\n";
	}
	if (f.text.value == "") {
		fehler += "Die Nachricht\n";
	}

	if (fehler!="") {
	alert('Hmm, jetzt fehlt nur noch:\n\n'+fehler);
	return false;
	} else {
	return true;
	}
}


