function closeAndRedirect(theURL) { /* * Name: * closeAndRedirect * * Description: * This function closes the current window and opens * theURL in the window which opened the pop-up * * Precondition: * theURL is the URL which one wishes to redirect the opener page to * * Postcondition: * the current window is closed and the window which opened this window * is redirected to theURL * * Author: * Ed Shelton 02/06/2001 * * */ window.opener.location.href = theURL; window.self.close(); }