// Make some changes to the INPUT box when activating it.
function ActivateInputBox() {
	var cbw = document.getElementById("cbw_phonenumber");

	cbw.style.color = "black";
	
	if (cbw.value=="< Ihre Rufnummer >" || cbw.value=="Keine Telefonnummer!" || cbw.value=="Anforderung erhalten.") {
		cbw.value = "";		
	}
}

// Restore the changes (or set new) if leaving then INPUT box
function DeactivateInputBox() {
	var cbw = document.getElementById("cbw_phonenumber");
	
	if (cbw.value=="") {
		cbw.value = "< Ihre Rufnummer >";
		cbw.style.color = "silver";		
	} else {
		cbw.style.color = "black";
	}
}

// Checking the Input just for numbers (all other characters will be deleted immediately while entering)
function Check4Value() {
	var cbw = document.getElementById("cbw_phonenumber");
	
	// Just allow numbers as input (0123456789)
	var rufn = String(cbw.value);
	var rufn_neu = rufn.replace(/[\Wa-zA-Z]/, '');
	
	cbw.value = rufn_neu;	
}

