these functions are not quite the same as window.open. window.open returns a
handle to the window. To make these funtions the same you need to add the
following line at the end of the function; "return popupWins;" to the first
function, or "return popupWins[name];" to the second.