function StartMovie(theURL,h,w) {       

        var hw= h + 100

        var ww= w + 50

        var mov=theURL;

        var features='scrollbars=no,status=no,toolbar=no,resizable=1,location=no,menu=no,width=' + ww + ',height=' + hw + ', screenX=0, ScreenY=0'

        h=h+16

        var win=window.open("","Movie",features);

        win.moveTo(50,50)

        win.document.open();

        win.document.writeln('<HTML><BODY bgcolor="#FFFFFF">')  

        win.document.writeln('<CENTER><EMBED SRC="' + mov + '" HEIGHT=' + h + ' WIDTH=' + w + 'CONTROLLER = TRUE PLAYEVERYFRAME = TRUE SCALE="TOFIT"></EMBED></CENTER>')

        win.document.writeln('<CENTER><FORM><INPUT TYPE=button VALUE="Close Window" onClick="window.close()"></FORM></CENTER>')

        win.document.writeln('</BODY></HTML>')

        win.document.close();

}



function StartPicture(theURL) {

        if (window.innerWidth == null) {

                iw = document.body.clientWidth;

                ih=document.body.clientHeight; 

        }

        else {

                iw = window.innerWidth;

                ih = window.innerHeight;

        }

        

        screenw=screen.availWidth

        screenh=screen.availHeight



        var pict=theURL;

                

        var

features='scrollbars=no,status=no,toolbar=no,resizable=1,location=no,menu=no,width=200,height=80'

        var win=window.open("","Figure",features);

                

        win.document.open();

        win.document.writeln('<HTML><HEAD>')    

        win.document.writeln("\<SCRIPT\>")

        win.document.writeln('funct'+'ion Test\(\)\{base=""')

//      win.document.writeln('var im=self.document.images.length')

//      win.document.writeln('if (im=0){w='+iw+'; h='+ih+';} else')

        win.document.writeln('var w=self.document.images[0].width')

        win.document.writeln('var h=self.document.images[0].height')

        

        win.document.writeln('var iw=' +screenw)

        win.document.writeln('var ih=' +screenh)

        

        win.document.writeln('var ratio=h/w')

        win.document.writeln('if (w+25>iw || h+75>ih){if ((w/iw)>(h/ih)){w=iw-50; h=h+75; if(h+75>ih){h=ih-100; w=w+25;}}')

        win.document.writeln('else {h=ih-130; w=w+25;}}')



        win.document.writeln('var winh=h+70; var winw=w+10;')

        win.document.writeln('h=Math.round(h); winh=Math.round(winh); w=Math.round(w); winw=Math.round(winw);')

        win.document.writeln('var features=\'scrollbars=yes,status=no,toolbar=no,resizable=1,location=no,menu=no,width=\' + winw + \',height=\' + winh +\'\'')

        

        win.document.writeln('var doit=window.open\("","",features\);')

        win.document.writeln('doit.document.write\(\'<HTML><BODY bgcolor=\"#FFFFFF\"><FORM><INPUT TYPE=button VALUE=\"Close Window\" onClick=\"window.close()\"></FORM><CENTER><IMG SRC=\"' + pict + '\" ></CENTER>\')')

        win.document.writeln('doit.document.write\(\'<FORM><INPUT TYPE=button VALUE=\"Close Window\" onClick=\"window.close()\"></FORM>\'\)')

        win.document.writeln('doit.document.write\(\'</BODY><\/HTML>\')')

                

        win.document.writeln('doit.document.close\(\)')

        

        win.document.writeln('doit.moveTo(20,20)')

        win.document.writeln('doit.focus()')

        win.document.writeln('self.close()')

        win.document.writeln('}')

        

        win.document.writeln('\<\/SCRIPT\></HEAD><BODY bgcolor="#FFFFFF">')

        win.document.writeln('<CENTER>LOADING......<br><bR><br><br><br><IMG SRC="' + pict + '" onload="Test()"></CENTER>')

        win.document.writeln('</BODY></HTML>')

        win.document.close();

}



function StartQuote(theURL){

        if (window.innerWidth == null) {

                iw = document.body.clientWidth;

                ih=document.body.clientHeight; 

        }

        else {

                iw = window.innerWidth;

                ih = window.innerHeight;

        }



        var pict=theURL;

                

        var features='scrollbars=yes,status=no,toolbar=no,resizable=1,location=no,menu=no,width=' + iw/2 +',height='+ih/2

        var win=window.open(theURL,"Figure",features);  

        win.moveTo(20,20)

}