function openWindow(id,url2,obj3,obj4){ var width = screen.width; var height = screen.width; var url = "/room.php?id="+id; var hd = window.open(url,"","width="+(width)+",height="+(height)+",resizable=yes,scrollbars=yes,location=no,toolbar=no,menubar=no,status=yes"); hd.focus(); }