I was curious if there is an easier way to make multiple pop-up windows without having such a long code as this:

<script type="text/javascript">
function openwindow2()
{
window.open("april.jpg","my_new_window","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width=500,height=390,border=0")
}
</script>
<script type="text/javascript">
function openwindow3()
{
window.open("may.jpg","my_new_window","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width=500,height=390,border=0")
}
</script>

Here I am calling bigger pictures but it gets to be a pain when you have 30 or 40 images. Is there an easier way to do this in javascript or php? Any help would be great! Thanks.