function load(f, a, m) {
    menu = (m!=null) ? "&activemenu="+m : "";
    document.location.href = "index.php?action=show"+menu+"&file="+f+"&args=" + escape(a);
}
function switchLanguage(lang) {

    loc = document.location.href;
    if (loc.indexOf("?") > 0)
        location.href = loc + "&language=" + lang;
    else
        location.href = loc + "?language=" + lang;
}

function openAdmin() {
	window.open('../../admin/php/index.php', document.location.hostname.split(".")[document.location.hostname.split(".").length-2],'toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=no,width=1000,height=700');
}
