function cow(zone) // Correcteur d'Orthographe
            {
            window.clipboardData.setData("Text",zone);
            var AppWord = new ActiveXObject("Word.Application");
            var DocInt = AppWord.Documents.Add();
            AppWord.Visible=true;
            AppWord.WindowState = 0;
            AppWord.Top = -3000;
            DocInt.Activate();
            DocInt.Content.Paste();
            DocInt.CheckSpelling();
            DocInt.Content.Copy();
            DocInt.Saved = true;
            DocInt.Close();
            DocInt = null;
            AppWord.Quit();
            AppWord = null;
            var ano=true;
            var tmp=null;
            
            while ( ano ) {
                ano=false;
                try { tmp=window.clipboardData.getData("Text"); }
                catch(erreur) { ano=true;  }
            if (tmp==null) ano=true;
            }
            return tmp;
            }
            
function CheckLen(Target) // Limitation de caractère pour le textarea "poster un commentaire"
            {
            StrLen = Target.value.length
            if (StrLen > 2000 ) {
                Target.value = Target.value.substring(0,2000);
                alert('Attention: Ton message ne doit pas dépasser 2000 caractères !');
                CharsLeft = 2000;
            }
            else {
                CharsLeft = StrLen;
            }
            var CharsLeft1 = 2000 - CharsLeft;
            document.formulaire.abd.value = CharsLeft1;
            }
            
function smiley(code) // Insertion des codes smileys dans le textarea
            {
            var element = document.getElementById('textarea');
            element.value = element.value+''+code;
		    document.getElementById('textarea').focus();
            }
