﻿function $(s) {
    return document.getElementById(s);
}
function isChildPage() {
    var mainFrame = parent.document.getElementById("mainFrame");
    if (mainFrame != null) {
        mainFrame.style.height = (document.body.offsetHeight + 12) + "px";
    }
}
function DoCallBack(arg, context) {
    WebForm_DoCallback('__Page', arg, Result, context, null, false);
}
function Result(arg, context) {
    if (arg != "") { eval(arg); }
}
window.onload = function() {
    if (this.init != null) { init(); }
    if (this.submit != null) { document.forms[0].onsubmit = submit; }
}
function menuSelected(num) {
    var menuList = document.getElementById("menu").getElementsByTagName("a");
    for (var i = 0; i < menuList.length; i++) {
        if (num == menuList[i].id) {
            menuList[i].className = "selected";
        } else {
            menuList[i].className = "";
        }
    }
}

