wnd=0;
var ww=0;
var hh=0;

function openWnd(url, w, h, msg){
ww = 300;
hh = 400;

if (w!=undefined) {
 ww = w;
}
if (h!=undefined) {
 hh = h;
}



url=unescape(url);
      if(!wnd || wnd.closed) {
      wnd = open(url,null,"toolbar=0,status=1,resizable=1,scrollbars=1,width=" + ww + ",height=" + hh + ",top=10");


      }else{


    wnd.focus()
    if(flag || wnd.location.pathname+wnd.location.search!=url) wnd.location=url
}


        return false;
}

function banMove()
{
w=document.body.clientWidth;
h=document.body.clientHeight;

banH=70;
banW=400;

scrollA=document.body.scrollTop;
scrollB=document.body.scrollLeft;
if(document.getElementById('ban')) {
document.getElementById('ban').style.top=scrollA+((h/4)-(banH/4))
document.getElementById('ban').style.left=scrollB+((w/2)-(banW/2))
}
}
