// JavaScript Document

function clearBox(id) {
    var el = document.getElementById(id);
    el.value = "";

}

function resetBox(id) {
    var el = document.getElementById(id);

    if (el.value == "")
        el.value = "Enter your email address";
}

function showText(divToShow) {
    // IE sucks so we have to use className not class
    if (divToShow == 'short') {
        document.getElementById('divShortText').setAttribute("className", "show");
        document.getElementById('divShortText').setAttribute("class", "show");
        document.getElementById('divLongText').setAttribute("className", "hide");
        document.getElementById('divLongText').setAttribute("class", "hide");
    }
    else {
        document.getElementById('divShortText').setAttribute("className", "hide");
        document.getElementById('divShortText').setAttribute("class", "hide");
        document.getElementById('divLongText').setAttribute("className", "show");
        document.getElementById('divLongText').setAttribute("class", "show");
    }
}

