diff --git a/lib/scripts/behaviour.js b/lib/scripts/behaviour.js
index fc32d4ed9a577952800cc01e3df115bc71aa0fa7..20b408322439406b94796ec5e502eb188e9b959b 100644
--- a/lib/scripts/behaviour.js
+++ b/lib/scripts/behaviour.js
@@ -72,13 +72,13 @@ var dw_behaviour = {
      * @author Michael Klier <chi@chimeric.de>
      */
     checkWindowsShares: function() {
-        if(!LANG.nosmblinks || document.all !== null) {
+        if(!LANG.nosmblinks || typeof(document.all) !== 'undefined') {
             // No warning requested or none necessary
             return;
         }
 
         jQuery('a.windows').live('click', function(){
-            alert(LANG.nosmblinks);
+            alert(LANG.nosmblinks.replace(/\\n/,"\n"));
         });
     },