


// function for showing and hiding default texts in inputs
function inputDefaultShowHide(inputId, defaultText, isBlurAction)
{
    var obj = document.getElementById(inputId);
    
    if (isBlurAction)
    {
        if (obj.value == "")
            obj.value = defaultText;
    }
    else
    {
        if (obj.value == defaultText)
            obj.value = "";
    }
}

// showing and hiding some DIV element
function showOrHide(elementId)
{
    var obj = document.getElementById(elementId);
    if (obj.style.display == "block")
    {
        obj.style.display = "none";
    }
    else
    {
        obj.style.display = "block";
    }
}