/*Input-Felder ändern die Farbe*/
function marker(id, color)
{
	if(id == "nr")
		if(document.anfrage.nr.value == "Telefonnummer")
			document.anfrage.nr.value = "";
	if(id == "name")
		if(document.anfrage.name.value == "Name")
			document.anfrage.name.value = "";
	
	document.getElementById(id).style.backgroundColor = color;
	document.getElementById(id).style.color = '#000000';
}
function umarker(id, color)
{
	document.getElementById(id).style.backgroundColor = color;
	document.getElementById(id).style.color = '#000000';
}

/* Rueckruf-form angeklickt */
function callback(subdomain)
{
	var n = escape(document.forms['anfrage'].name.value)
	var t = escape(document.forms['anfrage'].nr.value)
	if(t == "" || t == "Telefonnummer")
	{
		alert("Bitte geben Sie die Telefonnummer ein.")
		document.forms['anfrage'].nr.focus()
		return false
	}
	else if(n == "" || n == "Name")
	{
		alert("Bitte geben Sie ihren Namen ein.")
		document.forms['anfrage'].name.focus()
		return false
	}
	else
	{
		var s = escape(subdomain)
		window.open("http://www.steuerlex.de/callback.html?t=" + t + "&n=" + n + "&s=" + s, "callback", "width=400,height=220,toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=0,resizable=0")
		return false
	}
}

// Create user-defined popup window
function popupURL(url, w, h) {
	var options = "toolbar=no,";
	options += "location=no,";
	options += "directories=no,";
	options += "status=no,";
	options += "scrollbars=yes,";
	options += "resizable=yes,";
	options += "width=" + w + ",";
	options += "height=" + h;
	window.open(url, "popup", options);
}

