﻿// JScript 文件
function window.onbeforeunload()
{
    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 = parseInt( document.getElementById("tblshow").offsetHeight );
    var width = parseInt( document.getElementById("tblshow").offsetWidth );
    if(height<300) height=300;
    parent.document.getElementById("main").height=height+20;
    parent.document.getElementById("main").width=width;
}
