//打开新窗体
function openwin(url, sheight, swidth) {
    var top, left;
    var height = 480, width = 800
    //if(sheight!=null)
    //    height=sheight;
    //if(swidth!=null)
    //    width=swidth;
    top = (screen.availHeight - height) / 2 - 10;
    left = (screen.availWidth - width) / 2 - 10;
    window.open(url, "", "Height=" + height.toString() + ",Width=" + width.toString() + ",top=" + top.toString() + ",left=" + left.toString() + ",resizable=yes,status=no,scrollbars=yes");
}
// JavaScript Document
function redirect(url) {
    if (window.opener != undefined) {     //弹出界面
        var str = window.opener.location.href;
        var ipos = str.indexOf("/Pages/");
        str = str.substring(0, ipos)
        window.opener.location.href = str + "/Pages/" + url
        window.close()
    }
    else {
        //window.parent.location.href = "/#/XFSilverSite;component/Pages/"+url
        var str = window.parent.location.href;
        var ipos = str.indexOf("/Pages/");
        str = str.substring(0, ipos)
        window.parent.location.href = str + "/Pages/" + url
    }
}

function click() {
    //alert('南昌赛乐氏科技有限公司！') 
    return false;
}

function CtrlKeyDown(){
    if (event.ctrlKey) {
        //alert('为了防止非法拷贝信息，我们暂时禁止了CTRL键！') 
        return false;
    }
}
document.onkeydown=CtrlKeyDown;
document.onselectstart=click;