function AW_BustFrames() { //v1.0
 if (self.parent.frames.length!=0){       self.parent.location.replace(document.location.href) } }

 function reloadIt() {document.location = document.location;}

 if (document.layers) {window.onResize = reloadIt;}

function tmt_print() {
    if (document.all) {
        var OLECMDID_PRINT = 6;
        var OLECMDEXECOPT_DONTPROMPTUSER = 2;
        var OLECMDEXECOPT_PROMPTUSER = 1;
        var WebBrowser = "<OBJECT ID=\"WebBrowser1\" WIDTH=0 HEIGHT=0 CLASSID=\"CLSID:8856F961-340A-11D0-A96B-00C04FD705A2\"></OBJECT>";
        document.body.insertAdjacentHTML("beforeEnd", WebBrowser);
        WebBrowser1.ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_PROMPTUSER);
        WebBrowser1.outerHTML = "";
    } else {
        self.print();
    }
}

function AW_PersistLayer(layerName,NSpath,IEpath,firstTime){

        NSpath = NSpath.replace(/!!/g,"'")
        IEpath = IEpath.replace(/!!/g,"'")



        var offset;
        var isIE=(document.all) ? 1 : 0;
        var isNav=(document.layers) ? 1 : 0;

        if(NSpath =='') {
                if(isIE){ eval('var theLayer='+layerName)}
                else{ eval('var theLayer=document.'+layerName)  }
                }
        else{
                if(isIE){ eval('var theLayer='+IEpath)}
                else{ eval('var theLayer='+NSpath)      }
                }

                if(eval(firstTime)){
                        theLayer.XPOS = 0;
                        theLayer.YPOS = 0;
                }


        if(isNav){
                offset = self.pageXOffset
                if (offset != theLayer.XPOS){
                        offset=offset-theLayer.XPOS
                        theLayer.left+=offset
                        theLayer.XPOS = theLayer.XPOS + offset;
                        }

                offset = self.pageYOffset
                if (offset != theLayer.YPOS){
                        offset=offset-theLayer.YPOS
                        theLayer.top+=offset
                        theLayer.YPOS = theLayer.YPOS + offset;
                        }

        }
        else{
                offset = window.document.body.scrollLeft
                if (offset != theLayer.XPOS){
                        offset=offset-theLayer.XPOS
                        theLayer.style.pixelLeft+=offset
                        theLayer.XPOS = theLayer.XPOS + offset;
                        }

                offset = window.document.body.scrollTop
                if (offset != theLayer.YPOS){
                        offset=offset-theLayer.YPOS
                        theLayer.style.pixelTop+=offset
                        theLayer.YPOS = theLayer.YPOS + offset;
                        }

        }

        theLayer.timerid = setTimeout("AW_PersistLayer(\""+layerName+"\",\""+NSpath+"\",\""+IEpath+"\",'false')",50);

document.MM_returnValue=false;
theLayer.document.MM_returnValue=false;

}

