function DefaultSubmit(e,id) {
    var eventHandled=false;
    if(e.keyCode==13){
        var src=(e.srcElement||e.target).tagName; //e.target||e.srcElement;
        if(src&&(src.toLowerCase()!="textarea")) {
            var obj = document.getElementById(id);
            if (obj && obj.tagName.toLowerCase() == "a") {
                    if (obj.href.indexOf("javascript:") == -1) location.href = obj.href;
                    else eval(obj.href.replace(/^javascript:/, ""));
                    eventHandled = true;
            }
            if(eventHandled) {
                e.cancelBubble=true;
                if(e.stopPropagation) e.stopPropagation();
                return false;
            }
        }
    }
    return true;
}


var page = {

    // run initialization functions from here (.net equiv of page_load)
    init: function() {

        // all faqs have a clickable image with this class, collapse to start with | set its click event to togglePanel() function.
        if ($(".openFaq").length > 0) {
            page.collapseFaqs();
            $(".openFaq").click(page.togglePanel);
        }

    },

    // collapses all faq panels
    collapseFaqs: function() { 
        $(".collapsible").hide(); 
    },

    // this function toggles the faq panels visiblity
    togglePanel: function() {
        // this line gets the clickable images closest <dt> (its parent), and finds that dts sibling (the dd)
        var $objToExpand = $(this).closest("dt").next()
        var COLLAPSED_SRC = '/images/FAQ_Arrow_Open.png'
        var EXPANDED_SRC = '/images/FAQ_Arrow_Close.png'

        // switch arrow image and toggle visibility with a slide animation
        $(this).attr("toggle") == 'open' ? $(this).attr({ toggle: "closed",
            src: COLLAPSED_SRC
        })
                                         : $(this).attr({ toggle: "open",
                                             src: EXPANDED_SRC
                                         });

        $objToExpand.slideToggle(function() {
            $("dt").css("margin", "0").css("margin", "5px 0");
        });

    }

}


// calls the page load function (note this is outside the 'page = {}' object).
$(document).ready(page.init);
