﻿var isPass=false;
function setPass(bool){
    isPass=bool;
}
function warpUser_RefreshComplete(oPanel){
    if(isPass){
        showMsg('divPassword');
        isPass=false;
    }
}
function hideMsg(panel){
document.getElementById(panel).style.display="none";
document.getElementById("divLB").style.display = "none";
}
function OnLoad(){
document.getElementById("divLB").style.width=pageWidth() + "px";
document.getElementById("divLB").style.height=pageHeight() + "px";
}
function whichBrs() {
var agt=navigator.userAgent.toLowerCase();
if (agt.indexOf("opera") != -1) return 'Opera';
if (agt.indexOf("staroffice") != -1) return 'Star Office';
if (agt.indexOf("webtv") != -1) return 'WebTV';
if (agt.indexOf("beonex") != -1) return 'Beonex';
if (agt.indexOf("chimera") != -1) return 'Chimera';
if (agt.indexOf("netpositive") != -1) return 'NetPositive';
if (agt.indexOf("phoenix") != -1) return 'Phoenix';
if (agt.indexOf("firefox") != -1) return 'Firefox';
if (agt.indexOf("safari") != -1) return 'Safari';
if (agt.indexOf("skipstone") != -1) return 'SkipStone';
if (agt.indexOf("msie") != -1) return 'Internet Explorer';
if (agt.indexOf("netscape") != -1) return 'Netscape';
if (agt.indexOf("mozilla/5.0") != -1) return 'Mozilla';
if (agt.indexOf('\/') != -1) {
if (agt.substr(0,agt.indexOf('\/')) != 'mozilla') {
return navigator.userAgent.substr(0,agt.indexOf('\/'));}
else return 'Netscape';} else if (agt.indexOf(' ') != -1)
return navigator.userAgent.substr(0,agt.indexOf(' '));
else return navigator.userAgent;
}
function pageWidth(){
return window.innerWidth != null? window.innerWidth : document.documentElement && document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body != null ? document.body.clientWidth : null;} 
function pageHeight(){
return  window.innerHeight != null? window.innerHeight : document.documentElement && document.documentElement.clientHeight ?  document.documentElement.clientHeight : document.body != null? document.body.clientHeight : null;}
function showMsg(panel){
OnLoad()
var divLB=document.getElementById("divLB");
var divMsg=document.getElementById(panel);
divLB.style.display="inline";
divMsg.style.left = pageWidth() / 2 - 100 + "px";
divMsg.style.top = pageHeight() / 2 - 20 + "px";
divMsg.style.display="inline";
}
