// dW newsletter subscription/response Javascript
// Adapted from the email-it script.
// Adapted from Danny Goodman's
// "JavaScript Bible, 3rd Edition" (www.dannyg.com)

// Initialize global var for new window object
var responsewindow

//make new window for response
function openResponseWindow(){
responsewindow = window.open('', 'responsewindow','HEIGHT=250,WIDTH=600,resizable');
       // take care of Navigator 2
        if (responsewindow.opener == null) {
                responsewindow.opener = window
        }
 
}

function subscribe(){
  openResponseWindow();
  document.topicaform.submit();
}

// close window (used for closing responsewindow)
function closeWindow() {
        window.close();
} 
