First, I highly recommend that you stop using eval. This is very unsafe and not good to use.
Secondly, you can do this without eval like this:
function openWindow(URL) { day = new Date(); id = day.getTime(); windowCol[id] = window.open(URL, id, 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=800,left = 650,top = 250'); }
And just to avoid confusion, although the "window" works as the name of a function, I would suggest changing it to make the code more readable, since it can get confused with the global window object.
source share