function clearText(selector) {
	var inputValue = document.getElementById(selector).value;
	
	if((inputValue == 'Name') || (inputValue == 'E-mail address (if applies)') || (inputValue == 'Telephone Number')) {
		document.getElementById(selector).value = "";
	}
}

function replaceText(selector) {
	var inputValue = document.getElementById(selector).value;
	
	if(selector == 'txtName') {
		if((inputValue == 'Name') || (inputValue == '')) {
			document.getElementById(selector).value = 'Name';
		}
	} else if(selector == 'txtEmail') {
		if((inputValue == 'E-mail address (if applies)') || (inputValue == '')) {
			document.getElementById(selector).value = 'E-mail address (if applies)';
		}
	} else if(selector == 'txtPhone') {
		if((inputValue == 'Telephone Number') || (inputValue == '')) {
			document.getElementById(selector).value = 'Telephone Number';
		}
	}
}

