function txtOnFocus(obj, defaultText, clearText) {
    if (clearText == null) clearText = true;
    obj.className += " idc-focus";
    if (obj.value == defaultText) {
        if (clearText) obj.value = "";
        obj.style.color = "black";
    }
};

function txtOnBlur(obj, defaultText, colorChange) {
    if (colorChange == null) colorChange = true;
    obj.className = obj.className.replace(/idc-focus/g, "");
    if (obj.value == "") {
        obj.value = defaultText;
        if (colorChange) obj.style.color = "#CCC";
    }
};
