// (c) 2008, Dan Craft, Duck Soup Sites, all rights reserved

/**
 * Common - Library for all DSS.com pages
 */

var dbgHandlers = false;
    // for debugging event handlers; log entry/exit and thrown errs


/* ================================  OnLoad  ================================ */

function prepPage (pageName) {
    if (dbgHandlers) dbgPr("prepPage(\""+pageName+"\") {");
    try {

        document.getElementById("MenuChoice_"+required(pageName))
                .className = "Choice Selected";

    } catch (e) { 
        if (dbgHandlers) 
            try { dbgPrObj("EventHandler error", e); } catch (e2) {}; 
        throw e;
    }
    if (dbgHandlers) dbgPr("} prepPage");
} // prepPage()


function required (o) {
    if (o === undefined) throw new Error("required object undefined");
        // this at least flags the error; printing stack trace would
        // be helpful; for now, comment out test above and try to track
    return o;
}


function supportComing () {
    alert("On-line support for existing DuckSoupSite customers is coming soon.");
    return false; /* don't continue */
}
