function openUrl(url) {
    var win = window.open(url, '_blank');
    win.focus();
    return true;
}

function openUrlNoMenu(url, vaildatePopup) {
    var popupFailure = true;

    var screenSize= getPhysicalScreenDimensions();
    var win = window.open(url, '_blank', "resizable=yes,menubar=no,status=no,titlebar=no,toolbar=no,channelmode=yes,width=" + screenSize.width + ",height=" + screenSize.height);
    if (win) {
        popupFailure = false;
        win.focus();
    }
    if (vaildatePopup) {
        var app = getFlashAppInstance();
        app.popupFailure(popupFailure);
    }
    return true;
}

function checkIE() {

    var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;

    return isIE;
}


function getPhysicalScreenDimensions(){
     var winW = 1024, winH = 768;
     if (checkIE()) {
         winW = document.body.width;
         winH = document.body.height;
     } else {
         winW =  screen.width;   //window.width;
        winH = screen.height; //window.height;
     }
     return {width: (winW ), height: (winH )};
 }


