﻿
function restoreDefaultText(TextBox) {
    if(TextBox.value=='') TextBox.value = TextBox.getAttribute('defaultText');
}

function clearDefaultText(TextBox){
    if(TextBox.value==TextBox.getAttribute('defaultText')) TextBox.value='';
}

function resetAll() {

    if (typeof resetInputs != 'undefined' && resetInputs) {
        for (resetInput = 0; resetInput <= resetInputs.length; resetInput = resetInput + 1) {
            thisInput = document.getElementById(resetInputs[resetInputs]);
            if (thisInput) {
                thisInput.value = thisInput.getAttribute('defaultText');
            }
        }
    }
}