/* COMMON */
/* Javascript files used both by admin site and public sites. */
/*********/

/* FORM VALIDATION */
document.write("<script type=\"text/javascript\" src=\"/styles/js/forms_interaction.js\"></script>");
/********************/


/* POP-UP CALENDAR */
document.write("<script type=\"text/javascript\" src=\"/styles/js/lw_layers.js\"></script>");
document.write("<script type=\"text/javascript\" src=\"/styles/js/lw_menu.js\"></script>");
document.write("<script type=\"text/javascript\" src=\"/styles/js/popcalendar.js\"></script>");
/********************/


/* OPEN TARGET IN NEW WINDOW */
/* For opening a new browser window. */
function externalLinks() {
    if (!document.getElementsByTagName) return;
    var anchors = document.getElementsByTagName("a");
    for (var i = 0; i < anchors.length; i++) {
        var anchor = anchors[i];
        if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external")
        anchor.target = "_blank";
    }
}
window.onload = externalLinks;
/********************/