function apri(url, w, h) { var windowprops = "width=" + w + ",height=" + h; popup = window.open(url,'remote',windowprops); }