﻿function OpenWindow() {
    if (arguments[0] == null) return false;
    var winW = arguments[1];
    var winH = arguments[2];
    var leftPos = (screen.width - winW) / 2;
    var topPos = (screen.height - winH) / 2 - 50;
    var fullUrl = arguments[0];
    var cur_date = new Date();
    var win_name = "window" + cur_date.getFullYear() + cur_date.getMonth() +
    cur_date.getDay() + cur_date.getHours() +
    cur_date.getMinutes() + cur_date.getSeconds() +
    cur_date.getMilliseconds();
    var win = window.open(fullUrl, win_name, "height=" + winH + ", width=" + winW + ", " +
    "top=" + topPos + ", left=" + leftPos + ", menubar=0, resizable=1, " +
    "scrollbars=1, status=0, toolbar=0");
}

function IsIe6()
{
    if (jQuery && jQuery.browser.msie && jQuery.browser.version=='6.0')
        return true;
    else
        return false;
}
