        
        function openWindow(datei, breite, hoehe, typ)
        {
                 bild = datei.split('/');
                 bild = bild[(bild.length - 1)];
                 bild = bild.replace(/.jpg/,'');
                 namen = bild.replace(/-/,'');
                 window.open ('detail.php?pic=' + bild + '&typ=' + typ , namen, 'scrollbars=no, width=' + breite + ', height='+ hoehe);
        }
        
        function openMovie(datei, breite, hoehe, typ)
        {
                 window.open (datei , 'Fenster' + typ, 'scrollbars=no, width=' + breite + ', height='+ hoehe);
        }
        
        function setPDF(pdf)
        {
                var ajax_obj = null;
                var logger = '/twatch/jslogger.php';
                var ref = '?ref=' + escape(window.location);
                var pg = '&pg=' + pdf;

                if (window.XMLHttpRequest)
                {
                    ajax_obj = new XMLHttpRequest();
                }
                else if (window.ActiveXObject)
                {
                    ajax_obj = new ActiveXObject("Microsoft.XMLHTTP");
                }
                if (ajax_obj != null)
                {
                    ajax_obj.open("GET", logger + ref + pg);
		 	        ajax_obj.send(null);
		 	    }
        }