﻿function clearTextbox(boxId) {
    var txtBox = document.getElementById(boxId);
    if (txtBox.value == "e.g. 01635550124") {
        txtBox.value = "";
        txtBox.style.color = "#000000";
    }
}

function populateTextbox(boxId) {
    var txtBox = document.getElementById(boxId);
    if (txtBox.value == "") {
        txtBox.value = "e.g. 01635550124";
        txtBox.style.color = "#C0C0C0";
    }
}

function removeEg(boxId, egValue, radId) {
    var txtBox = document.getElementById(boxId);
    var phoneRadBox = document.getElementById(radId);
    if (txtBox.value == egValue) {
        txtBox.value = "";
        txtBox.style.color = "#000000";
    }
}