
if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ //test for MSIE x.x;
    var ieversion=new Number(RegExp.$1) // capture x.x portion and store as a number
    if (ieversion < 7) {
        window.location = "/unsupported_browser.html";
//    } else if (ieversion == 7) {
//        if (!getCookieValue("badbrowser")) {
//            writeSessionCookie("badbrowser", true)
//            window.location = "/bad_browser.html";
//        }
    }
}

function posttopage(page, args){

    var cmd = '<form id="dynForm" action="' + page + '" method="post">';
    var c = args.length;
    var a = '';
    for (i = 0; i < c; i++) {
        a = args[i].split('=');
        cmd += '<input type="hidden" name="' + a[0] + '" value="' + a[1] + '">';
    }
    cmd += "</form>";
    document.body.innerHTML += cmd;
    document.getElementById("dynForm").submit();
}

function cmdAbout(baseurl){
    var a = new Array();
    a = new Array("doab=0");
    posttopage(baseurl, a);
}
