﻿// JScript 文件
if (parseInt(navigator.appVersion.charAt(0))>=4){ 
var isNN=(navigator.appName=='Netscape')?1:0; 
var isIE=(navigator.appName.indexOf('Microsoft')!=-1)?1:0; 
} 
if (isNN) 
{
 function resize_rect()
        {
        
            var o  = document.getElementById("rect");           
            var tb1 = document.getElementById("table1");          
            var t_right = (document.body.clientWidth - tb1.offsetWidth)/2;           
            o.style.left =( t_right+30)  +"px";
           
            o.style.top = 10 + "px";
            if(o.style.left<"0px")
             o.style.left="40px";                   
        }
        
        window.onresize = resize_rect;
}

if (isIE) 
{
 
 function resize_rect()
        {
        
            var o  = document.getElementById("rect");           
           
            var tb1 = document.getElementById("table1");     
                 
            var t_right = (document.body.clientWidth - tb1.offsetWidth)/2;           
            o.style.left =( t_right+30)  +"px";
         
            o.style.top = 10 + "px";
            if(o.style.left<"0px")
            o.style.left="30px"; 
                     
        }
        
        window.onresize = resize_rect;
}
