		
	function fjsM123Email(iInfoId,iCategoryId,iDisplayType)
	    {
		    var strURL;
		    var iWidth  = 416;
            var iHeight = 330;
            var iLeft   = (screen.width  - iWidth)/2;
            var iTop    = (screen.height - iHeight)/2;
            var strParams = 'width='+iWidth+', height='+iHeight;
    		
		    strURL = strApplicationRoot + "modules/module_123/include/email.asp?I=" + iInfoId + "&C=" + iCategoryId + "&D=" + iDisplayType;
    		    		        
            var popUpsBlocked;   
            var oTestWin = window.open('','','width=1,height=1,left=0,top=0,scrollbars=no');
            
            if(oTestWin)
            {
                popUpsBlocked = false;
                oTestWin.close()
            }
            else{
                popUpsBlocked = true
            }
             		        
            if(popUpsBlocked)
            {
                alert("Denne funksjonen bruker en popup som du dessverre har blokkert.");
            }
            else{		        
                strParams += ', top='+iTop+', left='+iLeft;
                strParams += ', directories=no';
                strParams += ', location=no';
                strParams += ', menubar=no';
                strParams += ', resizable=no';
                strParams += ', scrollbars=no';
                strParams += ', status=no';
                strParams += ', toolbar=no';
                newwin=window.open(strURL,'winM123Email', strParams);
                if (window.focus) {newwin.focus()}
            }
	    }
	
	
