//   Popup window with hyperlink

//   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//  Typical calling sequence from <BODY>

//   <script
//   t1 = "Pop Window Hi "
//   t2 = "New JavaScripts"
//   h1 = "http://javascript.internet.com/new"
//   popupWin(t1, t2, h1)
//   </script>

//   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


function popupWin(text1, text2, href1) {

    text =  "<html>\n<head>\n<title>" + text1 + "</title>\n<body>\n";
    text += "<center>\n<br>";
    text += "<a href='../%22%20%2B%20href1%20%2B%20%22' target='_blank'><h2>" + text2 + "</h2></a>";
    text += "</center>\n</body>\n</html>\n";
    
    setTimeout('windowProp(text)', 3000);       // delay 3 seconds before opening
}

function windowProp(text) {
    newWindow = window.open('','newWin','width=300,height=100');
    newWindow.document.write(text);
    setTimeout('closeWin(newWindow)', 5000);    // delay 5 seconds before closing
    }
    function closeWin(newWindow) {
    newWindow.close();              // close small window and depart
}


