﻿function ShowHide(divId) {

    if ($("#ReadMoreDiv").is(":visible")) {
        $("#ReadMoreDiv").hide();
    }
    else {
        $("#ReadMoreDiv").show();
    }
        

    $("#" + divId).slideToggle("slow");
}

function toggleLI(oDiv,oLI) {


    if ($("#" + oDiv).is(":visible")) {
        $("#" + oLI).removeClass("down");
    }
    else {
        $("#" + oLI).addClass("down");
    }

    theHeight = $("#" + oDiv).height() + 10;
    $("#" + oDiv).css({ height: theHeight });    
    $("#" + oDiv).slideToggle("slow");

}


function DefaultTextFocus(txtElem, strDefaultText) {
    if (txtElem.value == strDefaultText) txtElem.value = ''; 
}

function DefaultTextBlur(txtElem, strDefaultText) {
    if (txtElem.value == '') txtElem.value = strDefaultText;
}

function SubmitThisForm(myform,ctl) {


    if (window.event && window.event.keyCode == 13) {
        WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(ctl, "", true, "", "", false, false));
    }
    else
        return true;
}

