       document.write('<hr><p><b> &copy; 2007  by MDM, Inc.</b></p>');
       document.write('<b><a class="footer" HREF="privacy.htm" STYLE="text-decoration: none">privacy policy</a></b>&nbsp; &nbsp;|&nbsp; &nbsp;');
       document.write('<b><a class="footer" HREF="terms.htm" STYLE="text-decoration: none">terms and conditions</a></b>&nbsp; &nbsp;|&nbsp; &nbsp;');
       document.write('<b><a class="footer" HREF="mailto:webmaster@topdogcontest.com" STYLE="text-decoration: none">contact webmaster</a></b>&nbsp; &nbsp;|&nbsp; &nbsp;');
       document.write('<b><a class="footer" HREF="http://www.topdogcontest.com/site_map.htm" STYLE="text-decoration: none">site map</a></b>&nbsp; &nbsp; &nbsp; &nbsp;<BR>');

        // extract proper URL from this file name, assuming this file
       // is "proj_footer.html" or "proj_footer.htm"
       // and the proper URL for the frameset is "proj.html" or "proj.htm"
       myURL = document.location.href;

       // Get the suffix on the file name (everything after "_footer")
       myExt = myURL.substring(myURL.indexOf("_footer") + 7, myURL.length) 

       // Get the part of the URL that goes up to "proj"
       myUrl = myURL.substring(0,myURL.indexOf("_footer"))

       // Assemble the appropriate string
       document.write('<p><b>URL: ' + myUrl + myExt + '</b></p>');
