Hola thrash.
Prueba alterando la función de la siguiente manera:
Código PHP:
function popUp(URL){
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=" + String(screen.width) + ",height=" + String(screen.height) + ",left=0,top =0');");
}
Saludos.