﻿// JScript 文件
window.onbeforeunload=function()
{
 if(typeof(event)!='undefined')
    if(event.clientX>document.body.clientWidth && event.clientY<0 || event.altKey || self.screenTop>9000 )
    {
        location.href = '../ClearSession.aspx';
        alert('退出成功,欢迎您使用网上交易系统!');
    }
}
function openfull(){
    try
    {
        window.moveTo(0,0);
        window.resizeTo(screen.width,screen.height-27);
    }
    catch(e)
    {
        return false;
    }
}
function winsize()
{
    var height = 400;
    var width = 980;
    try
    {
        height = parseInt( document.getElementById("tblshow").offsetHeight );
        width = parseInt( document.getElementById("tblshow").offsetWidth );
    }
    catch(ex)
    {}
    
    if(height<300) height=300;
    parent.document.getElementById("main").height=height+20;
    parent.document.getElementById("main").width=width;
}

