function AbrePopup(lugar,w,h,v,x,y,scroll) { var floater= null if ( x + w/2 == 400) { x = x - 405 + screen.availwidth / 2 ; y = y - 315 + screen.availheight / 2 } else { if (x != 0) { x = x - 810 + screen.availwidth } if (y != 0) { y = y - 630 + screen.availheight } } floater = window.open(lugar, 'blank'+v , 'width='+w+',height=' + h +',top='+ y +',left=' + x + ',resizable=no,status=no,scrollbars='+scroll+',directories=no' ) if (floater !=null) { if (floater.opener == null) { floater.opener = self } floater.location.href =lugar } }