// JavaScript Document
function MM_setTextOfTextfield(objId,x,newText) { //v9.0
  with (document){ if (getElementById){
    var obj = getElementById(objId);} if (x==obj.value) obj.value = newText; else if (obj.value=="") obj.value=x;
  }
}
function Routesubmit(strasseID,ortID,sendformID,targetID) {
	with (document){ if (getElementById){
		var strasseobj = getElementById(strasseID);
		var ortobj = getElementById(ortID);
		var sendformobj = getElementById(sendformID);
		var targetobj = getElementById(targetID);}
		var string = strasseobj.value + " " + ortobj.value;
		targetobj.value = string;
			strasseobj.style.borderColor="#0538cd";
			strasseobj.style.borderWidth="1px";
			strasseobj.style.backgroundColor="#b8d3f0";
			ortobj.style.borderColor="#0538cd";
			ortobj.style.borderWidth="1px";
			ortobj.style.backgroundColor="#b8d3f0";
		if (strasseobj.value == "Geben Sie hier Ihre Strasse ein") {
			strasseobj.style.borderColor="#ff0000";
			strasseobj.style.borderWidth="2px";
			strasseobj.style.backgroundColor="#fff";}
		else if (ortobj.value =="Geben Sie hier Ihren Ort ein"){
			ortobj.style.borderColor="#ff0000";
			ortobj.style.borderWidth="2px";
			ortobj.style.backgroundColor="#fff";}
		else
		sendformobj.submit();
	}
}
function rueckrufvalues(el1,el2,formel){
	with (document){ if (getElementById){
		var obj1 = getElementById(el1);
		var obj2 = getElementById(el2);
		var formobj = getElementById(formel);}
		obj1.style.borderColor="#0538cd";
		obj1.style.borderWidth="1px";
		obj1.style.backgroundColor="#b8d3f0";
		obj2.style.borderColor="#0538cd";
		obj2.style.borderWidth="1px";
		obj2.style.backgroundColor="#b8d3f0";
		if(obj1.value=="Telefonnummer") {
			obj1.style.borderColor="#ff0000";
			obj1.style.borderWidth="2px";
			obj1.style.backgroundColor="#fff";}
		else if (obj2.value=="Name") {
			obj2.style.borderColor="#ff0000";
			obj2.style.borderWidth="2px";
			obj2.style.backgroundColor="#fff";}
		else
		formobj.submit();
	}
}
