function unloadWindow() {            
		if (window.opener!=null) {
		    var URL = unescape(window.opener.location);                
		    window.opener.location.href = URL;        
		} 
	    }    
	    
	    function resizeWin(w,h) {
	     if (parseInt(navigator.appVersion)>3 && w > 0 && h > 0) {
	       sw = screen.width;
	       sh = screen.height;
		 
	       l = sx = top.screenLeft; if (l == undefined) l = window.screenX;
	       t = sy = top.screenTop;  if (t == undefined) t = window.screenY;
	       
	       if (w > sw) {
		 h = sh * (w / h);
		 w = sw;
	       }
	       
	       if (h > sh) {
		 w = sw * (w / h);
		 h = sh;
	       }
	       
    //           if (l + w > sw)
		 l = (sw - w) / 2;
    //           if (t + h > sh)
		 t = (sh - h) / 2;

	       if (l != sx || t != sy)
		 top.moveTo(l, t);
	     
	       if (navigator.appName=="Netscape") {
		top.innerWidth=w;
		top.innerHeight=h;
	       } else {
		 top.resizeTo(w, h);
		 
		 if (navigator.appName=="Microsoft Internet Explorer") {
		   b = document.body;
		   top.resizeBy(w - b.clientWidth, h - b.clientHeight);
		 }
	       }
	     }
	    }
