
        // -----------------------------------------------------------------------------------
        // This file contains common JavaScripts
        // -----------------------------------------------------------------------------------
        // 
        // :: BrowserDetection       -> returns some variables, which browser is used
        // :: MM_openBrWindow        -> opens new browserwindow
        // :: deblur		         -> nach anklicken eines Links deblur(this);
        //
        // -----------------------------------------------------------------------------------

		
        // Browserdetection
        MAC_NS 	= false; 	MAC_IE 			= false; 
        PC_NS  	= false; 	PC_IE  			= false;
        IE     	= false; 	NS     			= false;
        PC_MOZ  = false; 	MAC_MOZ			= false; 
        MOZ		= false;	BROWSERVERSION 	= 0;
        
        p 		= parent;
        
        BROWSERVERSION = navigator.appVersion.substring(0,1);
        
        if((navigator.userAgent.indexOf("Gecko")!= -1)) { 
        	if((navigator.appVersion.indexOf("Mac")!= -1)) {
        		MAC_MOZ = true;
        		MOZ  	= true;
        	} else {
        		PC_MOZ 	= true;
        		MOZ		= true;
        	}
        }
        
        if((navigator.appVersion.indexOf("Mac")!= -1)){
                if(navigator.appName=="Netscape") {
                        MAC_NS = true;
                        NS     = true;
                } else {
                        MAC_IE = true;
                        IE     = true;
                }
        } else {
                if(navigator.appName=="Netscape") {
                        PC_NS = true;
                        NS    = true;
                } else {
                        PC_IE = true;
                        IE    = true;
                }
        }

        // Opens New BrowserWindow
        function MM_openBrWindow(theURL,winName,features) { 
                
                // neues Fenster oeffnen
                OpenWin = window.open(theURL,winName,features);
                
                // eigene Instanz an neues Fenster ¸bergeben
                OpenWin.opener = self; 
                
                // neues Fenster fokussieren
                OpenWin.focus();    
		} 	

		// HideScrollbar
   		function HideScrollBar() {
   			if( IE ) document.body.scroll = "no"; 
		}
		
		// Deblur nach Anklicken eines Links
		function deblur(x) {
			if ( IE || MOZ ) x.blur();
		}


function showPic(id)
{
  MM_openBrWindow('/ergebnisse/pic.php?id='+id,'PopupStatus','toolbar=no,location=no,status=no,menubar=yes,scrollbars=yes,resizable=yes, width=600,height=500');
}

        // -----------------------------------------------------------------------------------
        // EOF
        // -----------------------------------------------------------------------------------

