function openWindow(ref,w,h) {
   var window_left = (screen.width-640)/2;
   var window_top = (screen.height-580)/2;
   window.open(ref,"research",'width=' + w + ',height=' + h + ',status=yes,scrollbars=yes,resizable=yes,top=' + window_top + ',left=' + window_left + '');
}

