function DoUrl() {

    var w1 = frames['iframe1'];
    var w2 = frames['iframe2'];

    // Display a search link and all URLs and Titles in the current page

//    newWindow=window.open("urls.htm","NAT32","menubar=yes,toolbar=yes,location=yes,scrollbars=yes,status=yes,resizable=yes,width=632,height=226");

//    newWindow.document.close();
//    newWindow.document.open();
    w2.document.write("<html><head><title>NAT32</title></head><body>");
    w2.document.write("<b>URL: " + unescape(document.URL) + "</b> ");
    w2.document.write('<a href="http://127.0.0.1:8080/shell?cmd=find">[Search]</a> ');
    w2.document.write('<a href="http://127.0.0.1:8080/shell?cmd=clr">[Clear]</a><br>');

//    w1.onError = "alert('Error in Window 1'); return 0;";

    try {
        for (var i=0; i < w1.document.links.length; i++) {
            var x = w1.document.links[i];
            var y = w1.document.links[i].title;
            var j = i+1;
            w2.document.write('<b>' + j + ' </b>' + x.href.link(x) + '<br>' + y + '<br>');
//            alert('<b>' + j + ' </b>' + x.href.link(x) + '<br>' + y + '<br>');
        }
    }
    catch(er) {
        w2.document.write("<b>ERROR:</b> "+ er + " <b>Tip:</b> Try the URL context menu item in the above frame");
    }
    w2.document.write("</body></html>");
    w2.document.close();
}

