    function NewWindow(urltxt,title)
    {
        //Open Screenshot in floating window
        if (title != null)
        {
            title = "Screen Shot of " + title;
        }
        else
        {
            title = "Screen Shot";
        }

        //Open Window
   	    popUp = window.open("",'Pix','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=440,height=345');
   	    popUp = window.open("",'Pix','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=440,height=345');

        //Make sure document is empty
        popUp.document.close();
        popUp.document.open();

        //Write HTML to display requested image
        popUp.document.writeln("<html><head><title>" + title + "</title></head><body bgcolor=#000000>");
        popUp.document.writeln('<p align=center><img src="'+urltxt+'">');
        popUp.document.writeln('<br><a href="javascript:window.close();">Close This Window</a></p>');
        popUp.document.writeln("</body></html>");
	    popUp.focus();
    }

    function modified()
    {
        document.write("Last updated on : " + document.lastModified);
    }

    function check()
    {
        url = document.URL;
        pos = url.lastIndexOf("html");

        //Always load the main page, stop sneaky so and so stealing my contents
        if (self.parent.frames.length == 0)
        {
            if (pos != -1)
            {
                self.parent.location = url.substring(0,pos)+"index.htm";
            }
            else
            {
                self.parent.location = url.substring(0,pos)+"index.htm";
            }
        }
        else
        {
            //Check for stealing from within a frame
            if (self.parent.document.URL.lastIndexOf("doomheaven") == -1 &&
                self.parent.document.URL.lastIndexOf("file") == -1)
            {
                self.parent.location = url.substring(0,pos)+"index.htm";
            }
        }
    }
//check();
