var remote = null;
/*
 * Method to open pop up window with specified URL, width and height.
 */
function rs(u,w,h) {
   var leftX = screen.width / 2 - w / 2;
   var topY = screen.height / 2 - h / 2;
   winStats='toolbar=no,location=no,directories=no,menubar=no,resizable=yes'
   winStats+=',scrollbars=yes'
   if (navigator.appName.indexOf("Microsoft")>=0) {
      winStats+=',left=' + leftX + ',top=' + topY + ',width=' + w + ',height=' + h;
    }else{
      winStats+=',screenX=' + leftX + ',screenY=' + topY + ',width=' + w + ',height=' + h;
    }
   remote=window.open(u,"_blank",winStats);   
   remote.focus();
}