»
Tiếng AnhTiếng PhápTiếng Việt

In - Chỉnh sửa trang web - JavaScriptBank.com

Phiên bản đầy đủ: jsB@nk » Ứng dụng » Công cụ xuất » Chỉnh sửa trang web
URL: https://www.javascriptbank.com/rich-text-editor.html

Chỉnh sửa trang web © JavaScriptBank.comMột chương trình cao cấp dùng để chỉnh sửa các định dạng văn bản của một trang web. Chương trình này có cả phần trợ giúp rất chi tiết. Tuy nhiên giao diện hoàn toàn là tiếng Pháp.

Phiên bản đầy đủ: jsB@nk » Ứng dụng » Công cụ xuất » Chỉnh sửa trang web
URL: https://www.javascriptbank.com/rich-text-editor.html



CSS
<STYLE id=appStyle></STYLE><STYLE id=docStyle></STYLE><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


JavaScript
<SCRIPT unselectable="on">//THISISTHEDATASTARTstdata='<P align=center>&nbsp;<FONT style="BACKGROUND-COLOR: white" color=#9400d3><FONT face="Brush Script MT"><FONT style="BACKGROUND-COLOR: #20b2aa" color=#fff0f5>&nbsp;<FONT face="Bradley Hand ITC" size=5><STRONG>Voici&nbsp;le premier document éditeur autonome...</STRONG></FONT></FONT><BR></FONT><FONT style="BACKGROUND-COLOR: white" color=#008000><FONT style="BACKGROUND-COLOR: white" face="Bradley Hand ITC" color=red size=3><STRONG>Pour votre navigateur ou votre messagerie<BR></STRONG></FONT><FONT style="BACKGROUND-COLOR: #da70d6" face="Bradley Hand ITC" color=#ffe4e1>&nbsp;<FONT size=4><STRONG><FONT style="BACKGROUND-COLOR: #da70d6" color=#fffff0>Application et document dans une même page HTLML...</FONT><BR></STRONG></FONT></FONT></P></FONT></FONT>';stdata+='<H1 id=toc21><FONT style="BACKGROUND-COLOR: transparent" color=#1e90ff>eDitor est libre</FONT></H1>';stdata+='<P>Avec eDitor vous pouvez aisément créer et échanger des documents légers, et autoconfigurables:</P>';stdata+='<DIV>';stdata+='<UL>';stdata+='<LI>Pourquoi devrions nous dépenser nos heures de travail, à&nbsp;échanger des fichiers entre&nbsp;ces lourdes applications alors que l\'internet nous fournit la possibilité d\'utiliser indifféremment n\'importe laquelle d\'entre elle, et de produire des documents autonomes, autoconfigurables, et plus simple d\'emploi?</LI>';stdata+='<LI>Pourquoi devrions nous&nbsp;perdre notre temps et notre argent accrochés sur l\'internet, pour utiliser des soi-disantes applications WEB qui&nbsp;polluent&nbsp;nos yeux avec des bandeaux publicitaires, alors que les documents peuvent comprendre leur propre interface applicatif?</LI></UL></DIV>';stdata+='<H1 id=toc28><FONT style="BACKGROUND-COLOR: transparent" color=#1e90ff>Utilisation&nbsp;de eDitor</FONT></H1>';stdata+='<H2 id=toc30><FONT style="BACKGROUND-COLOR: transparent" color=#8b0000>En groupe de travail</FONT></H2>';stdata+='<P>Ecriture et envoi directe&nbsp;des documents de travail sur le navigateur ou la messagerie:</P>';stdata+='<DIV>';stdata+='<UL>';stdata+='<LI>Compte rendus de réunions,</LI>';stdata+='<LI>Elaboration de documents techniques,</LI>';stdata+='<LI>etc...</LI></UL></DIV>';stdata+='<H2 id=toc38><FONT style="BACKGROUND-COLOR: transparent" color=#8b0000>Support de communication </FONT></H2>';stdata+='<P>Il a aussi pour fonction de contribuer à mieux faire connaitre les documents autonomes. D\'autre types de documents autonomes (Planning, tableur, explorateur de fichiers...) sont en cours de développement. Vous pouver les essayer sur le site <A href="http://eplanning.free.fr/">http://eplanning.free.fr</A> .</P>';stdata+='<H1 id=toc42><FONT style="BACKGROUND-COLOR: transparent" color=#1e90ff>Distribuez "eDitor"</FONT></H1>';stdata+='<P><FONT style="BACKGROUND-COLOR: transparent" color=black>Aidez moi à faire connaitre, et à propager&nbsp;les documents autonomes. Il suffit de copier ce document, de modifier son contenu à votre désir et de le réadresser à un tiers: Cliquez sur l\'icone de courrier, expédiez votre document, et demandez à vos correspondants leur avis. Vous serez étonné de les voir vous retourner un message de remerciements.</FONT></P>';stdata+='<H1 id=toc46><FONT style="BACKGROUND-COLOR: transparent" color=#1e90ff>Fonctionnement</FONT></H1>';stdata+='<P id=toc46>Un document autonome possède les mêmes fonctionalités qu\'une application courante.Vous pouvez sauvegarder l\'ensemble (document+interface) dans un seul fichier, ou sauvegarder&nbsp;&nbsp;seulement le document pour gagner de l\'espace.</P>';stdata+='<P id=toc48>eDitor fonctionne en réseau comme en local. A titre d\'exemple le site eplanning dispose d\'un document autonome d\'exploration de fichiers pour vous permettre de travailler en réseau comme en local.</P>';stdata+='<H1 id=toc50><FONT style="BACKGROUND-COLOR: transparent" color=#1e90ff>Améliorations</FONT></H1>';stdata+='<P>N\'hésitez pas à inclure vos commentaires sur le forum eDitor. Merci d\'avance.</P>';stdata+='<H2 id=toc53>Ajout de fonctionalités</H2>';stdata+='<DIV>A la différence des applications compilées, les documents autonomes sont dynamiques. Leur interface peut en effet se modifier en cours de travail, sans modifier le document en cours. A titre d\'exemple, le présent document comprend une fonction&nbsp;"table de matières automatique". Ce script peut être supprimé du document sans affecter son fonctionnement.&nbsp;</DIV><IMG id=img2 style="LEFT: 17px; POSITION: absolute; TOP: 25px" src="http://jsimage.topcities.com/logojsgif">';//FileStartvar aStyle=document.styleSheets[0]; var borderColor='silver';          with(aStyle){addRule("BODY","overflow: hidden");addRule("#menu","position: absolute; cursor: default;top:0;left:0;background:silver; border-bottom: 2px groove rgb(255,255,255)");addRule("#menu .menu","position: absolute; background: silver; border: 2 outset buttonhighlight; ");addRule("#menu TD","font: menu; height: 16");addRule("#menu .root","border: 1 solid buttonface;height: 20; padding: 1; margin: 5");addRule("#menu .disabled ","color: buttonshadow");addRule("#menu .more","font-family: webdings; width: 20; text-align: right");addRule("#tbar","position: absolute;left:185;  background:silver;overflow:hidden");         addRule("#handleTB ","position:relative;border-left: 1 solid buttonhighlight;border-right: 1 solid buttonshadow;border-top: 1 solid buttonhighlight;border-bottom: 1 solid buttonshadow;padding: 0;margin: 0;width: 3;height:18;cursor: move;");         addRule("input","font-family:Arial;font-size:8pt");         addRule("select","font-family:Arial;font-size:8pt");         addRule("td","font-family:Arial;font-size:8pt");         addRule("th","font-family:Arial;font-size:8pt");         addRule(".coolButton","position:relative;border: 1 solid buttonface; padding: 1px; text-align: center; cursor: default;width: 20; height: 18; margin: 0px;font:10pt");         addRule(".diaWinstyle","position:absolute;font-family:Arial;border-style: outset;border-width:2px ;z-index:500;visibility:hidden;background-color:silver ");         addRule(".diaWinHead","position:absolute;top:0;left:0;width:100%;font-size:8pt;padding:2;color:white;background-color:highlight");         addRule(".ico","position:relative");         addRule(".highlight","background:highlight;color:white;cursor:hand");addRule(".menuloc","position: absolute; background:silver; border: 2 outset buttonhighlight;cursor:hand");addRule(".oFrame","position:absolute;visibility:'hidden';z-index:510");         addRule(".p","font-family:Arial;font-size:8pt");         addRule(".sepTB","border-left: 1 solid buttonhighlight;border-right: 1 solid buttonshadow;border-top: 1 solid buttonhighlight;border-bottom: 1 solid buttonshadow;padding: 0;margin: 0;width: 2;height:18");addRule(".tborder","border:1 solid black;border-bottom:1 solid black");addRule(".selected","background:lightcyan ; filter:alpha(opacity=90);border-right:1 solid silver;border-bottom:1 solid silver;");     }//----------------application variables---------------------var activeMenu = null;var tbarPos = "top"; var errorInSetup = false;  var borderColor1;var DockHeight=22;var snapVSize= 22;  var dir = 6; var dragging=false; var tbarPos;         var oRange,oSelect;var NS = (navigator.appName == "Netscape");        var VERSION = parseInt(navigator.appVersion);        var ie5 = (document.getElementsByTagName != null);        var dUS=document.cookie.charAt(document.cookie.length-1);var GVurl,newURL,newHREF;         fontsize=new Array(6,8,9,10,11,12,14);         fontfamil=new Array("Arial","Bradley Hand ITC","Brush Script MT","Courier","Helvetica","Symbol","Times New Roman","Verdana","Webdings","Western","Wingdings")Men1= new Array("Fichier","Nouveau","Ouvrir","Sauvegarder","Sauvegarder comme...","Imprimer","Sauvegarder les données","Importer des données","Code HTML","Envoyer au serveur","Télécharger","Préparer un message","Fermer")Men2=new Array("Edition","Lien hypertexte...","Copier","Coller","Insérer","Zone de Texte","Ligne horizontale","Insérer une image")Men3=new Array("Format","Nombre","Chaine de caractères","Dates","Trier","Options d'affichage...")Men4= new Array("Site Web eApplications","Aide","A propos de.. ")Men5=new Array("Nouveau","Ouvrir","Sauvegarder","Envoyer par Email","Gras","Italique","Souligné","Bordures","Options d'affichage","Forum eTablor","Info-aide","Ligne horizontale","Enlever la valeur","Gauche","Centre","Droit","Additionner des cellules","Confirmer","Effacer","Police","Arrière plan","Style","Police","Taille")Menloc=new Array("Couper","Copier","Coller");         Dia1=new Array("Nouveau eDitor","Démarrer un nouveau eDitor", "Nom","Colonnes","Lignes","Taille des caractères","Oui","Non")Dia2=new Array("Envoyer au serveur ...","Vous devez vous connecter à un dossier enregistré","sur un serveur tel que "," pour pouvoir envoyer un fichier.","Enregistrer un fichier","Fichier:","Votre nom:","MotdePasse:","Utilisateur serveur eTablor","Changer email-MotdePasse")Dia3=new Array("Télécharger un fichier...","Recevoir un dossier eTablor...","Etes vous sûr de vouloir recevoir un nouveau fichier de données?","Fichier:","Dossier:","Utilisateur","Motde Passe","Confirmer","Annuler")Dia4=new Array("Poster un fichier...","Emetteur:","Destinataires:","Sujet:","Joint:","Fichier complet (Doc + application)","Doc seul","HTM Français","Message:","Transmission en cours...")         Dia6=new Array("Aide eDitor...","");         Dia7=new Array("A propos de eDitor","Applicatif autonome pour Internet Explorer 5.0", "(DemoV01- 01/10/2001) - par","http//g.verron.free.fr")         Dia8=new Array("Ouvrir/Sauvegarder un fichier...","Nom","Type","Tous les fichiers","Taille","Modifié","Entrez une adresse ftp sous la forme \"ftp://eplanning:[email protected]\"");         ts2="Fermer";         ti05="Envoyer";         al01="Sauvegarder les changements avant d'ouvrir un nouveau fichier?";         al03="Vous devez entrer une valeur pour"         al04="Cette adresse Email est incorrecte";         al05="Le fichier sélectionné doit avoir un attribut 'edtr' ";         al06="Entrer un texte içi";         al07="Le fichier sélectionné doit avoir un attribut 'gif', 'jpg' ou 'jpeg'";RGB = new Array(        "#F0F8FF","#FAEBD7","#00FFFF","#7FFFD4","#F0FFFF","#F5F5DC","#FFE4C4","#000000","#FFEBCD","#0000FF","#8A2BE2","#A52A2A",        "#DEB887","#5F9EA0","#7FFF00","#D2691E","#FF7F50","#6495ED","#FFF8DC","#DC143C","#00FFFF","#00008B","#008B8B","#B8860B",        "#A9A9A9","#006400","#BDB76B","#8B008B","#556B2F","#FF8C00","#9932CC","#8B0000","#E9967A","#8FBC8F","#483D8B","#2F4F4F",        "#00CED1","#9400D3","#FF1493","#00BFFF","#696969","#1E90FF","#B22222","#FFFAF0","#228B22","#FF00FF","#DCDCDC","#F8F8FF",        "#FFD700","#DAA520","#808080","#008000","#ADFF2F","#F0FFF0","#FF69B4","#CD5C5C","#4B0082","#FFFFF0","#F0E68C","#E6E6FA",        "#FFF0F5","#7CFC00","#FFFACD","#ADD8E6","#F08080","#E0FFFF","#FAFAD2","#90EE90","#D3D3D3","#FFB6C1","#FFA07A","#20B2AA",        "#87CEFA","#778899","#B0C4DE","#FFFFE0","#00FF00","#32CD32","#FAF0E6","#FF00FF","#800000","#66CDAA","#0000CD","#BA55D3",        "#9370DB","#3CB371","#7B68EE","#00FA9A","#48D1CC","#C71585","#191970","#F5FFFA","#FFE4E1","#FFE4B5","#FFDEAD","#000080",        "#FDF5E6","#808000","#6B8E23","#FFA500","#FF4500","#DA70D6","#EEE8AA","#98FB98","#AFEEEE","#DB7093","#FFEFD5","#FFDAB9",        "#CD853F","#FFC0CB","#DDA0DD","#B0E0E6","#800080","#FFBB00","#BC8F8F","#416901","#8B4513","#FA8072","#F4A460","#2E8B57",        "#FFF5EE","#A0522D","#C0C0C0","#87CEEB","#6A5ACD","#708090","#FFFAFA","#00FF7F","#4682B4","#D2B48C","#008080","#D8BFD8",        "#FF6347","#40E0D0","#EE82EE","#F5DEB3","#FFFFFF","#F5F5F5","#FFFF00","#9ACD32")//-------------menubar functions-------------------------------function lib_bwcheck(){ //Browsercheck needed for non compatible browsersthis.ver=navigator.appVersion ;this.agent=navigator.userAgent;this.dom=document.getElementById?1:0 ;this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0; this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;this.ie4=(document.all && !this.dom)?1:0; this.ie=this.ie4||this.ie5||this.ie6 ;this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; this.bw=(this.ie || this.ns6 || this.dom); return this}var bw=new lib_bwcheck();if (!bw.bw) {alert("Sorry, this script is not checked on this browser.\n Get IE or.. NS6.1 if -unfortunatly- you are mozilla/netscape addicted")setTimeout(window.history.back(),2000); }//window.onerror = errorHandler;function errorHandler(message, url, line){return true}window.onresize=fixSizeTB;function document.onmousedown() {doDown();dBarOnMouseDown()}function document.onmouseup() {doUp();dBarOnMouseUp()}function document.onmousemove() {dBarOnMouseMove() }function fixSizeTB() { tbarPos=(document.body.clientWidth > 350 ? "top":"lowerbar" );fixTBpos()}function fixTBpos(){ st=document.body;st1=tbar.style;switch (tbarPos) {case "top": st1.top=0;st1.left=(st.clientWidth > 400 ? 200:(st.clientWidth-260)); st1.width=360;         ODiv.style.top=23;ODiv.style.height=st.clientHeight-23;st1.zIndex=1 ; break ;         case "lowerbar": st1.top=24;st1.left=0;st1.width=(st.clientWidth > 200 ? st.clientWidth:300);         ODiv.style.top=46;ODiv.style.height=st.clientHeight-46;st1.zIndex=-1 ;break; }         if (MenuMess.style.visibility=="visible") {    MenuMess.style.top=tbar.offsetHeight+tbar.offsetTop+2;ODiv.offsetHeight+ODiv.style.top;         ODiv.style.top=MenuMess.offsetTop+MenuMess.offsetHeight;ODiv.style.height=st.clientHeight-ODiv.offsetTop }         typeof(toc) == "undefined" ? '':Resizetoc();}function iconGV(){ st0='<span style="position:absolute;color:'         st='<span style="position:relative;font-family:webdings">'+st0+'blue;font-size:25pt;top:0;left:0">n</span>';         st+=st0+'white;font-size:20pt;top:3;left:3">n</span>'+st0+'blue;height:16px;font-size:16pt;top:5;left:6">n</span>';         st+=st0+'white;font-size:8pt;top:14;left:11">g</span>'+st0+'blue;font-size:22pt;top:2;left:1"><b>|</b></span>'         st+='</span>';return st}function menuItemHighlight(el) {el.style.background = "highlight";el.style.color = "highlighttext";}function menuItemNormal(el) {el.style.background = "";el.style.color = "";}function cleanUpMenuBar() {for (i=0; i <menu.rows.length; i++) { for (j=0; j <menu.rows(i).cells.length; j++) {  if (menu.rows(i).cells(j).className == "root") { normalButton(menu.rows(i).cells(j));}}}}function getMenuItem(el) {temp = el;  while ((temp!=null) && (temp.tagName!="TABLE") && (temp.id!="menubar") && (temp.id!="menu") && (temp.id!="handle")) {        if ((temp.tagName=="TR") || (temp.className=="root")) el = temp;temp = temp.parentElement} return el;}function menuClick() {  if (event.srcElement == null) return;        var el=getMenuItem(event.srcElement);        if ((el.className != "disabled") && (el.id != "menubar")){                if (el.className == "root") {activeMenu ? raiseButton(el):pressedButton(el);toggleMenu(el);}                else {cleanUpMenuBar(); if (activeMenu) toggleMenu(activeMenu.parentElement); }                menuloc.style.display="none"}        event.cancelBubble = true;}function Restore() {if (activeMenu) {toggleMenu(activeMenu.parentElement);cleanUpMenuBar()}}document.onclick=Restore;function menuOver() { if ((event.fromElement == null) || (event.toElement == null) || (event.fromElement == event.toElement)) return;        var fromEl = getMenuItem(event.fromElement);var toEl = getMenuItem(event.toElement);        if (fromEl == toEl)return;        if ((toEl.className != "disabled") && (toEl.id != "menubar")){                if (toEl.className == "root") {                        if (activeMenu) { if (toEl.menu != activeMenu) {cleanUpMenuBar();pressedButton(toEl);toggleMenu(toEl);}}                        else {raiseButton(toEl);}}                else {if ((fromEl != toEl) && (toEl.tagName != "TABLE")){                        cleanup(toEl.parentElement.parentElement, false);                        menuItemHighlight(toEl);                        toEl.parentElement.parentElement.activeItem = toEl;                        if (toEl.href) window.status = toEl.href;                        if (toEl.className == "sub") document.all(toEl.menu).style.visibility=""}}}}function menuOut() {if ((event.fromElement == null) || (event.toElement == null) || (event.fromElement == event.toElement))return;        var fromEl = getMenuItem(event.fromElement); var toEl = getMenuItem(event.toElement);        if (fromEl == toEl) return;        if (fromEl.className == "root"){if (activeMenu) {if (fromEl.menu != activeMenu) normalButton(fromEl);}                else normalButton(fromEl);}        else {  if  ((fromEl.className != "disabled") && (fromEl.id != "menubar")){                if ((fromEl != toEl) && (fromEl.tagName != "TABLE")) menuItemNormal(fromEl);                window.status = "";                if (fromEl.className == "sub") document.all(fromEl.menu).style.visibility="hidden" }}}function toggleMenu(el) {  if (el.menu == null) el.menu = getChildren(el);        if (el.menu == activeMenu) {cleanup(el.menu,true);activeMenu = null}        else { if (activeMenu) {cleanup(activeMenu,true);hideMenu(activeMenu);}                activeMenu = el.menu;var tPos = topPos(el.menu) + menu.offsetHeight;                if ((document.body.offsetHeight - tPos) >= el.menu.offsetHeight) {                        el.menu.style.pixelTop = (ie5) ? (el.offsetHeight + 1):( menu.offsetHeight - el.offsetTop - 2);dir = 2;}                else {el.menu.style.pixelTop = el.offsetTop - el.menu.offsetHeight ;dir = 8;}                el.menu.style.pixelLeft = el.offsetLeft-2;                show(el.menu, dir) }}function topPos(el) {var temp = el;var y = 0;while (temp.id!="menu") {temp = temp.offsetParent;y += temp.offsetTop;} return y}function leftPos(el) {var temp = el;var x = 0;        while (temp.id!="menu") {temp = temp.offsetParent;x += temp.offsetLeft}        return x + el.offsetParent.offsetWidth}function show(el, dir) { el.style.visibility = "visible";}function cleanup(menu,hide) {if (menu.activeItem) menuItemNormal(menu.activeItem);if (hide) hideMenu(menu);}function hideMenu(el) {el.style.visibility = "hidden"}function getChildren(el) {var tList = el.children.tags("TABLE");return tList[0]}function dBarOnMouseDown() { if(event.srcElement.id == "handleTB"){ dragging = true;        tby = (event.clientY - tbar.style.pixelTop);tbx = (event.clientX - tbar.style.pixelLeft);        event.returnValue = false;event.cancelBubble = true}        else dragging = false}function dBarOnMouseUp() {dragging= false }function dBarOnMouseMove() {  if(dragging==true) { tbarPos= ( event.clientY < 20 ? "top":"lowerbar")         fixTBpos(); tbar.style.left=event.clientX;   event.returnValue = false;event.cancelBubble = true;   } }function doOver() {  toEl = getReal(event.toElement, "className", "coolButton");fromEl = getReal(event.fromElement, "className", "coolButton");        if (toEl == fromEl) return;el = toEl;        if (el.className == "coolButton") {el.onselectstart = new Function("return false");raiseButton(el)}}function doOut() {toEl = getReal(event.toElement, "className", "coolButton");fromEl = getReal(event.fromElement, "className", "coolButton");        if (toEl == fromEl) return; el = fromEl; cToggle = el.cToggle;        if (cToggle && el.value) pressedButton(el);        else if (el.className == "coolButton") normalButton(el)}function doDown() { el = getReal(event.srcElement, "className", "coolButton"); if (el.className == "coolButton") pressedButton(el)}function doUp() { el = getReal(event.srcElement, "className", "coolButton");   if (el.className == "coolButton") raiseButton(el)}function raiseButton(el) {with (el.style) {borderTop ="1 solid buttonhighlight";borderLeft ="1 solid buttonhighlight";        borderBottom ="1 solid buttonshadow";borderRight ="1 solid buttonshadow";padding ="1";}}function normalButton(el) {with (el.style) {background = "";border = "1px solid buttonface";padding = "1";}}function pressedButton(el) {with (el.style){ borderTop ="1 solid buttonshadow";paddingTop = "2";borderLeft ="1 solid buttonshadow";        borderBottom ="1 solid buttonhighlight";paddingBottom= "0";borderRight = "1 solid buttonhighlight";}}function getReal(el, type, value) {  temp = el;        while ((temp != null) && (temp.tagName != "BODY")) {  if (eval("temp." + type) == value) {el = temp;return el;}                temp = temp.parentElement;}return el;}function Icon(pos,v1,v2){         st='<span class="coolButton" ><button style="border:0;padding:0;text-align:left;font-size:8pt;width:16;overflow:hidden" onclick="setRange();do'+pos+'()" ><nobr><span class="ico" style="top:-10">__</span>'         st+='<span class="ico" style="top:-8;left:'+v1+'">_</span><span class="ico" style="top:-6;left:-18;">__</span><span class="ico" style="top:-4;left:'+v2+';">_</span></nobr></span></button></span>'         return st}function ColorTable(sel){ st='<table border="0" ID="tblColor" cellpadding="0" cellspacing="1">\n';         for (j=1;j<11;j++) {st += "<tr>";                for (i=1; i<12; i++)                st+='<Td width="9" height="10" onmouseover=\'displaycolor('+sel+',"'+ RGB[10*j+i] +'")\' style=\'background-color:"'+ RGB[10*j+i] +'"\' onclick=\'doColorSelect('+sel+')\'></Td>'                st+="</tr>"}          st += "</table>";return st}function displaycolor(sel,ttt){ sel=='fonte' ?  CLR.style.color=ttt:CLR.style.backgroundColor=ttt}//---------------Common functions----------------function DiaStyle(){    st='<style> h2  {font-family:Arial;font-weight:Bold;font-size:10pt}\n';        st+='.p,p,table,td,th,input,select,button,form  {font-family:Arial;font-size:8pt}';st+='.tagTable{background:lightgrey;};.tag{background:lightgrey;cursor:hand}\n';st+='.tag1{border-Left:1 solid white;border-Top:1 solid white;border-Right:1 solid buttonshadow;border-Bottom:solid silver;background:silver;cursor:hand}'         st+='</style>\n';return st}function DialogwinHeader(titreDW){DocumentHeader(titreDW);diawin=true;st+=DiaStyle();         st+='<body style="border:0;margin:0" bgcolor="silver"  ><center>\n';return st}function DialogwinFooter(haut,larg,posH,posL){        st+='&nbsp;<button onclick="window.close();">'+ts2+'</button></center></form>\n</body></html>';        st1= 'height='+( haut ? haut : 250)+', width ='+(larg ? larg : 400)+', top= '+(posH ? posH :100)+',left='+(posL ? posL : 100)+', menubar=no,status=no';        dialogwin=window.open("","",st1);dialogwin.document.open("HTML");dialogwin.document.write(st);}var diawindrag=false;function DiawinShow(haut,larg,posH,posL,titr){st0=document.getElementById("diaWin");st=st0.style; st.height=( haut ? haut : 250);st.width =(larg ? larg : 400);st.top= (posH ? posH :100);st.left=(posL ? posL : 100);st.visibility="visible";         if(titr !=undefined) st0.innerHTML='<div class="diaWinHead"  onmousedown="diawindrag=true" onmousemove="DiaWinMove()" onmouseup="diawindrag=false;"><b>'+titr+'</b></div><button style="position:absolute;top:1;left:'+(st.pixelWidth-20)+';font-size:7pt;height:16" onclick="document.getElementById(\'diaWin\').style.visibility=\'hidden\';document.getElementById(\'uFrame\').style.visibility=\'hidden\'"><b>X</b></button>';         if (document.getElementById("uFrame")) document.body.removeChild(document.getElementById("uFrame"))         var ooFrame = document.createElement("IFRAME");ooFrame.frameBorder=0;ooFrame.id ="uFrame";ooFrame.className="oFrame";document.body.appendChild(ooFrame);st2='<html><head><style> h2  {font-family:Arial;font-weight:Bold;font-size:10pt};.p,p,table,td,th,input,select,button,form  {font-family:Arial;font-size:8pt}'         st2+='.tagTable{};.tag{cursor:hand}'         st2+='.tag1{border-Left:1 solid white;border-Top:1 solid white;border-Right:1 solid buttonshadow;border-Bottom:solid silver;background:silver;cursor:hand}</style></head><body style="border:0;margin:0" bgcolor="rgb(210,220,230)"></body></html>';         document.frames["uFrame"].document.write(st2)         st1=document.getElementById("uFrame").style;st1.left=st.pixelLeft+2;st1.top=20+st.pixelTop ;st1.width=st.pixelWidth-5;st1.height=st.pixelHeight-23}function DiaWinMove(e){if(diawindrag==true) { event.CancelBubble=true; st=document.getElementById("uFrame") ;st1= document.getElementById("diaWin")        x = bw.ns6 ? x : event.clientX ; y = bw.ns6 ? y :event.clientY;        st1.style.top=y-10;st.style.top=y+10;st1.style.left=x-st.offsetWidth/2;st.style.left=st1.style.pixelLeft+2}}function DiawinFrameContent(str){ st1=document.getElementById("uFrame");         oFrame=document.frames["uFrame"].document;str1=str.substring((str.length-4),str.length);         if (str1.indexOf("htm") == -1)oFrame.body.insertAdjacentHTML("afterBegin",str);        else st1.src=str;         st1.style.visibility='visible'  }diaWinFrameClose='<button onclick="parent.document.getElementById(\'diaWin\').style.visibility=\'hidden\';parent.document.getElementById(\'uFrame\').style.visibility=\'hidden\'">'+ts2+'</button>'function DiaClose() {document.getElementById('diaWin').style.visibility='hidden';document.getElementById('uFrame').style.visibility='hidden';}function isEmail(string) {if (string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1) return true; else { alert(al04+'\n"'+string+'"');return false}}function Tag(va){ for (i=0; i<tags.length;i++) {oFrame=document.frames["uFrame"].document.alloFrame.TagTable.rows[0].cells[i].className='tag';eval("oFrame.Tag"+i+".style.display='none'")}        oFrame.TagTable.rows[0].cells[va].className='tag1';        for (i=0; i<tags.length;i++)  if (va == i) eval("oFrame.Tag"+i+".style.display = ''")}var list='true'; fileList=new Array(); var dir;function doOpenshowtree(){dialogwin=document.frames["uFrame"].document.all ;dialogwin.FileTree.style.display=(dialogwin.FileTree.style.display=="none" ? "":"none")}function doOpenretpath(){dialogwin=document.frames["uFrame"].document.all ;st1=dialogwin.fileUrl.value;st2=dialogwin.filename.value;SaveHTML(st1,st2);nex == "new" ? newDiaWin(): newURL=dialogwin.fileUrl.value=st1 ;DiaClose()}function doNew(){DiawinShow(120,300,30,50,Dia1[0]); st='<center><br><p>'+al01+'<br>';st+='<button onclick="parent.doOpen(document.location,\'save\',\'new\')">'+Dia1[6]+'</button>&nbsp;';         st+='<button onclick="parent.DiaClose();parent.createNew();">'+Dia1[7]+'</button>';         DiawinFrameContent(st);}function doOpen(loc,act,nex){DiawinShow(270,390,20,15,Dia8[0]); if(loc.toString().substring(0,4)=='http') {  DiawinFrameContent("../eProjectOS/eFileSelector.html");return}         loc=loc.toString().substring(8,loc.toString().length);        fname=loc.substring((loc.lastIndexOf('/')+1),loc.length);loc=loc.substring(0,(loc.lastIndexOf('/')+1));         fpath=loc.substring(0,(loc.lastIndexOf('/')+1)); act=(act==undefined) ?'':act;         st='</center><div style="padding:3pt">&nbsp;&nbsp;<span class="p"> Explorer:</span>\n<span class="p" style="border:2 inset ;height:17;width:200;background:white">\n'         st+='<span style="font-family:wingdings;font-size:12pt;width:20;" id="selIcon"></span>\n<span style="width:157;overflow:\'hidden\'" id="selName"></span>\n<input type="hidden" name="selURL" value="">\n'         st+='<button onclick="parent.doOpenshowtree()" style="font-family:marlett">6</button></span>&nbsp;\n'         st+='<button onclick="parent.FillFileList(selURL.value,\'parent\',filter.options(filter.selectedIndex).value)" style="padding-top:1pt;width:29"><span style="font-family:wingdings;background-color:yellow;">é0</span></button><span>&nbsp;</span>\n'         st+='<button onclick="parent.FillFileList(selURL.value,\'\',filter.options(filter.selectedIndex).value,\'false\')" style="width:26;height:21;cursor:hand">'         st00='<table cellspacing="0" cellpadding="0"><tr><td style="border: 1px solid black;background-color:white;">';st01='</td></tr></table>';         st21='<span style="font-size:6pt;position:relative;top:-';st22='">&nbsp;<font face="Marlett">;</font>- <font face="Marlett">;</font>-</span>'         st+= st00+st21+'3'+st22+'<br>'+st21+'10'+st22+'<br>'+st21+'17'+st22+st01;         st+='</button>&nbsp;\n'         st+='<button onclick="parent.FillFileList(selURL.value,\'\',filter.options(filter.selectedIndex).value,\'true\');" style="width:26;height:21;cursor:hand">'         st11='<span style="font-size:6pt;position:relative;top:-';st12='">&nbsp;----&nbsp;</span><br>';         st+= st00+st11+'3'+st12+st11+'11'+st12+st11+'19'+st12+st11+'27'+'">&nbsp;----&nbsp;</span>'+st01;         st+='</button>\n';         st+='\n</div><div id="FileTree" class="p" style="position:absolute;top:28;left:58;width:250;height:150;border:1 outset silver;background:white;display:\'none\';overflow:\'scroll\';z-index:200"></div>\n';         st+='\n<table><tr><td >&nbsp;&nbsp;</td><td colspan=3><div id="Filelist" style="border:2 inset ;height:150;width:360;background:white;overflow:scroll;z-index:10"></div></td></tr>';         st+='\n<tr><td >&nbsp;&nbsp;</td><td style="width:60">'+Dia8[1]+':</td>\n<td><input type="text" size="40" name="filename" value="'+document.title+'"><input type="hidden" name="fileUrl" value="'+fpath+'"></td><td>'        if ((act=='')||(act=='Open')) st+='<button style="width:50" onclick="parent.newURL=fileUrl.value ;parent.OpenFile();parent.DiaClose()">Open</button>'         if (act=='Select') st+='<button style="width:50" onclick="parent.newURL=fileUrl.value;parent.doSRC(\''+nex+'\',\''+fname+'\');parent.DiaClose()">Select</button>'         if (act=='Save') st+='\n<button style="width:50" onclick="parent.doOpenretpath('+nex+')">Save</button>\n'         st+='</td></tr>\n';        st+='\n<tr><td >&nbsp;&nbsp;</td><td>'+Dia8[2]+':</td>\n<td><select id="filter" style="width:232" onchange="parent.FillFileList(selURL.value,\'\',this.options(this.selectedIndex).value)">\n<option value="html">Complete application + data file (*.html)\n<option value="edtr">eDitor datafile (*.edtr)\n<option value="" selected>'+Dia8[3]+' (*.*)</select></td>\n'        st+='<td>'+diaWinFrameClose+'</center></tr></table></form>\n'         DiawinFrameContent(st);FillFileList(loc);}function OpenFile(){if (newURL.indexOf('.edtr') != -1 ) doImport(newURL); else this.location=newURL}function FillFileSelect(fil,thisUrl,thisUrlName,thisAtt){        if (fil==2) {dialogwin.fileUrl.value=thisUrl;dialogwin.filename.value=thisUrlName;};         else  FillFileList(thisUrl,'tt',thisAtt);}function dateFormat(dateobj){ dF=new Date(dateobj);m = dF.getMonth() + 1;d = dF.getDate(); yy = dF.getYear(); yy < 100 ? yyyy = yy +1900 : yyyy=yy;        if(m.toString().length < 2)  {  mm = "0" + m + "";  } else {  mm = m;  }        if(d.toString().length < 2)  {  dd = "0" + d + "";  } else {  dd = d;  }        DateString=dd+"/"+mm+"/"+yyyy;return DateString;}function FillFileList(sel,par,att,fil,srt){//if(dialogwin.document.getElementById("uFrame"))dialogwin.document.getElementById("uFrame").style.visibility="hidden" ;dialogwin=document.frames["uFrame"].document.all        dialogwin.Filelist.style.overflow="scroll" ; dialogwin.Filelist.style.visibility="visible";        if (fil) list=fil; fileList=new Array();                stt='';        st0D= "<span style='padding-top:1pt;overflow:hidden' onmouseover='this.style.cursor=\"hand\";this.style.backgroundColor=\"highlight\";this.style.color=\"white\"' onmouseout='this.style.color=\"black\";this.style.backgroundColor=\"white\"'"         // stt+="&nbsp;"+st0D+" onclick='FillFileHTTP();selName.innerHTML=\"eFileManager\";selIcon.innerHTML=this.children[0].innerHTML;FileTree.style.display=\"none\";'><span><span  style='font-family:Webdings;color:blue;font-size:12pt'>ü</span></span>&nbsp;eFileManager&nbsp;</span><br>";         if(document.location.href.substring(0,4) =="http"){if (!document.getElementById("uFrame")) dialogwin.FillFileHTTP() ;         dialogwin.selIcon.innerHTML="<span  style='font-family:Webdings;color:blue;font-size:12pt'>ü</span>";dialogwin.selName.innerHTML="<span>&nbsp;eFileManager&nbsp;</span>"}         else { fso = new ActiveXObject("Scripting.FileSystemObject"); att=(att==undefined) ?'':att;        if ((sel.charAt(1)!= ":")) sel='C:' ;fldr = fso.GetFolder(sel);fldr=(par=="parent" ? fldr.ParentFolder:fldr);       st0D+=" onclick='selIcon.innerHTML=this.children[0].innerHTML;parent.FillFileList(this.children[1].innerHTML,\"tt\",filter.options(filter.selectedIndex).value);FileTree.style.display=\"none\";'>&nbsp;";         st01D="<span  style='font-family:wingdings;padding:0pt;";         for (var drv = new Enumerator(fso.Drives); !drv.atEnd(); drv.moveNext())                { x = drv.item();if (x.DriveType == 3) n = x.ShareName; else if (x.IsReady)  n = x.VolumeName;else   n = "[Drive not ready]";                stt += "&nbsp;"+st0D+st01D+"color:buttonshadow;font-size:12pt'>"+(x.DriveLetter =="A" ? "<":";")+"</span><span style='display:\"none\"'>"+drv.item()+"</span>\n<span>"+  n +"("+x.DriveLetter +")"+"</span>&nbsp;</span><br>"}        st0='<td><nobr><span class="p" onmouseover="this.style.cursor=\'hand\'"  onmousedown="this.style.backgroundColor=\'highlight\';this.style.color=\'white\'"; onmouseup="this.style.color=\'black\';this.style.backgroundColor=\'white\';"'         st0+=' onclick=" parent.FillFileSelect(this.children[0].innerHTML,this.children[1].innerHTML,this.children[2].innerHTML,filter.options(filter.selectedIndex).value)">&nbsp;<span  style="font-family:wingdings;font-size:12pt;';         st01=' </span><span style="display:\'none\'">';         for(var objEn = new Enumerator(fldr.SubFolders); !objEn.atEnd(); objEn.moveNext()) {                stt+="&nbsp;"+st0D+st01D+"color:orange;font-size:12pt;'>0"+"</span>\n<span style='display:\"none\"'>"+objEn.item()+"</span><span>"+objEn.item().Name +"</span>&nbsp;</span><BR>";                 fileList[fileList.length]=new Array();                 fileList[(fileList.length-1)][0]=objEn.item().Name;                         fileList[(fileList.length-1)][1]=objEn.item().Size;                         fileList[(fileList.length-1)][2]=objEn.item().Type;                         fileList[(fileList.length-1)][3]=objEn.item().DateLastModified;                 fileList[(fileList.length-1)][4]=st0+'color:orange;">0'+st01+objEn.item()+'</span><span>'+objEn.item().Name +'</span></span></td>';                 fileList[(fileList.length-1)][5]=st0+'color:orange;">0'+st01+objEn.item()+'</span><span>'+objEn.item().Name +'</span></span></td><td align="right">'+parseInt(eval(parseInt(objEn.item().Size)/1000)) +'Ko&nbsp;</td><td><nobr>&nbsp;'+objEn.item().Type+'</td><td><nobr>'+dateFormat(objEn.item().DateLastModified)+'</td></tr><tr>';}                dialogwin.FileTree.innerHTML=stt;                  }         if(document.location.href.substring(0,4) =="http"){//stf='<table>';for(i=0;i<dialogwin.document.reptab.length;i++);stf+='<tr><td>'+dialogwinf.reptab[i][0]+'</td></tr>';stf+='</table>'; dialogwin.writeFolderContent (stf);         fldr='';sel=''}         else{   for(var objEn = new Enumerator(fldr.Files); !objEn.atEnd(); objEn.moveNext())                {st=objEn.item().Name;if( st.substring((st.length-att.length),st.length)==att)                 {fileList[fileList.length]=new Array()                 fileList[(fileList.length-1)][0]=objEn.item().Name;                 fileList[(fileList.length-1)][1]=objEn.item().Size;                 fileList[(fileList.length-1)][2]=objEn.item().Type;                 fileList[(fileList.length-1)][3]=objEn.item().DateLastModified;                 fileList[(fileList.length-1)][4]=st0+'color:'+(st.substring((st.length-4),st.length)=="html" ? 'blue':'black')+'">2'+st01+objEn.item()+'</span><span>'+objEn.item().name +'</span></span></td>';                 fileList[(fileList.length-1)][5]=st0+'color:'+(st.substring((st.length-4),st.length)=="html" ? 'blue':'black')+'">2'+st01+objEn.item()+'</span><span>'+objEn.item().name +'</span></span></td><td align="right">'+parseInt(eval(parseInt(objEn.item().Size)/1000)) +'Ko&nbsp;</td><td><nobr>&nbsp;'+objEn.item().Type+'</td><td><nobr>'+dateFormat(objEn.item().DateLastModified)+'</td></tr><tr>';                 }}         stf='<table><tr>'; j=0;         if (list=='false'){for(i=0;i<fileList.length;i++) {stf+=fileList[i][4];j++;stf+=(j % 3 == 0 ? '</tr><tr>':'')} stf+='</tr></table>' }         else { if (!isNaN(parseInt(srt))) fListSort(srt);else stars=new Array('&nbsp;','&nbsp;','&nbsp;','&nbsp;')                stf1='style="background: buttonface; padding-left: 5; padding-right: 5;border-top: 1 solid threedhighlight; border-left: 1 solid threedhighlight; border-right: 1 solid threedshadow; border-bottom: 1 solid threedshadow;'                        starr='style="font-family: webdings; color: black; padding: 0; font-size: 10; height: 11; width: 10; overflow: hidden; margin-bottom: 2; margin-top: -3; padding: 0; padding-top: 0; padding-bottom: 2;"'                 stsrt='parent.FillFileList(selURL.value,\'\',filter.options(filter.selectedIndex).value,\'true\',\'';                stf='<table ID="Flist" cellspacing="0" cellpadding="0" style="overflow:hidden">\n';                        stf+='<tr style="background: buttonface; font: icon; width: 100%; color: buttontext; table-layout: fixed; background: threeddarkshadow;border-left: 1 solid threedshadow; border-right: 1 solid threedlightshadow; border-top: 1 solid threedshadow;"  id="messageHeader">'                         stf+='<td '+stf1+'width: 150" style="cursor: hand;" onclick="'+stsrt+'0\')">'+Dia8[1]+stars[0]+'</td>'                        stf+='<td '+stf1+'width: 50"  style="cursor: hand;" onclick="'+stsrt+'1\')">'+Dia8[4]+stars[1]+'</td>'                        stf+='<td '+stf1+'width: 70"  style="cursor: hand;" onClick="'+stsrt+'2\')">'+Dia8[2]+stars[2]+'</td>'                         stf+='<td '+stf1+'width: 100" style="cursor: hand;" onClick="'+stsrt+'3\')">'+Dia8[5]+stars[3]+'</td>'                stf+='<td>&nbsp;</td></tr><tr>'                 for(i=0;i<fileList.length;i++) stf+=fileList[i][5]                 stf+='</tr></table>' }         dialogwin.Filelist.innerHTML=stf;} dialogwin.selURL.value=fldr;         dialogwin.fileUrl.value=sel//+'/';         dialogwin.selName.innerHTML=(fldr.name=='' ? fldr:fldr.name)}function fListSort(val) { stars=new Array(); var ll=fileList[0].length;        for (i=0;i<4;i++) stars[i]='<span style="font-family:webdings">'+(val==i ? (dir? dir:6):'')+'</span>';        if (dir==5){for ( i=0; i<(ll-1); i++)  for (j=i+1; j<ll; j++)                if (fileList[j][val]<fileList[i][val]) { var dummy =fileList[i];fileList[i] = fileList[j]; fileList[j] = dummy};dir=6;}        else { for ( i=0; i<(ll-1); i++)  for (j=i+1; j<ll; j++)                if (fileList[j][val]>fileList[i][val]) { var dummy =fileList[i];fileList[i] = fileList[j]; fileList[j] = dummy};dir=5;}}function doSaveAs(){GVurl=( ((GVurl==undefined)||(GVurl=='')) ? document.location.href :GVurl);doOpen(GVurl,'Save');}function doSave(){st=document.location.href.toString();localpath=st.substring(0,(st.length-document.title.length));SaveHTML(localpath,document.title);FileMenu.rows[2].className="disabled";}function doSaveDatafile(){ fso = new ActiveXObject("Scripting.FileSystemObject");f = fso.CreateTextFile(newURL,true);         s= SaveData();f.write(s);f.Close();GVChanged=false;}function SaveDataToscript(daHTML){//if (daHTML==undefined) st=frames.myEditor.document.getElementById("Oedit").innerHTML;else st=daHTML;if (daHTML==undefined) {st=frames.myEditor.document.body.children[0].innerHTML;         };else st=daHTML;var re=/'/g;st=st.replace(re,"\\'");         var re=/\r\n/g;st1=st.replace(re,"';\nstdata+='");         return st="stdata='"+st1+"';"}function SaveDataHTML(fname){fso = new ActiveXObject("Scripting.FileSystemObject");f = fso.CreateTextFile(newURL,true);st= SaveDaHTML(fname);f.write(st);f.Close();GVChanged=false;}function SaveDaHTML(fname){st='<html><title>'+fname+'</title>\n<META NAME="eapplication" CONTENT="eDitor">\n<body>\n'+frames.myEditor.document.getElementById("Oedit").innerHTML+'\n</body></html>';return st}function ReadFile(fname){fname=(fname==undefined? 'eDitor' : fname); s= DocumentHeader(fname);s+= document.scripts(0).outerHTML;s+=DocumentBody();return s}function getHTMLfile(fname){savedData=SaveData();s=ReadFile(fname);s= s.substring(0,(s.indexOf('THISISTHEDATASTART')+19))+'\n'+SaveDataToscript()+'\n'+ s.substring(s.indexOf('//FileStart'),s.length);return s }function SaveHTML(localurl,fname){localurl=localurl.toString();if (localurl.substring(0,3)=='http') localurl=localurl.substring(8,localurl.length);         if (localurl.substring(0,5).indexOf('file')>-1) localurl=localurl.substring(8,localurl.length);         if(fname.indexOf(".edtr") != -1) {newURL=localurl+'/'+fname;SaveDataHTML(fname)  ;return}         if ( !GVurl || (localurl != GVurl))GVurl=localurl+fname;         ReadFile(fname); fso = new ActiveXObject("Scripting.FileSystemObject");f = fso.CreateTextFile(GVurl,true)         s= s.substring(0,(s.indexOf('THISISTHEDATASTART')+19))+'\n'+SaveDataToscript()+'\n'+ s.substring(s.indexOf('//FileStart'),s.length);         f.write(s);f.Close( );document.location =GVurl}function doPrint(){window.print() }function doImport(dataURL){fso = new ActiveXObject("Scripting.FileSystemObject");         ts = fso.OpenTextFile(dataURL, 1); newdata = ts.ReadAll(); ts.Close();         newdata=newdata.substring((6+newdata.indexOf("<body>")),newdata.indexOf("</body>")) ;         newdata=SaveDataToscript(newdata);         tr = document.URL.substring(7,document.URL.length);ts = fso.OpenTextFile(tr,1);s=ts.ReadAll(); ts.Close() ;         var   newF= s.substring(0,s.indexOf('//THISISTHEDATASTART'))+newdata+ s.substring(s.indexOf('//FileStart'),s.length);         document.write(newF); document.close(); }function DeleteRemember(){ Oldproject=project;Oldresource=resource;Oldconnect=connect;OldTimeScale=TimeScale;OldInitStart=InitStart;OldLinks=links;OldCPMtasks=CPMtasks        oldArray = EPL;OldGroups=Groups;OldResources=Resources;OldDOff=DOff; OldIndentBar=IndentBar;        for (i=(oRS.RecordCount-1) ; i >0; i--){Pos = i;DeleteRecord();} }function doViewDataCache(){newwin=window.open('','','height=200,width=480,top=50,left=10,menubar=yes,scrollbars=yes,status=no');        newwin.document.open("text/plain");DialogwinHeader(Dia1);st=SaveDataToscript(); newwin.document.write(st)}function RegChange(){GVChange=true; FileMenu.rows[2].className="enabled";}function doFclose(){if(window.parent.document.title !="eProjectOS") window.close();else window.parent.doWinClose()}function checkLocation(){st=document.location.toString();if(st.substring((1+st.indexOf("?")),st.length)=="neweDitor") newDiaWin()}function doAbout(){DiawinShow(150,250,30,100,Dia7[0]);        st='<div style=position:relative;left:60">'+iconGV()+'<font face="arial"><span style="position:relative;left:35;top:9;font-size:20pt;color:blue;"><b>eDitor </b></span></div>';        st+='<br><div style="color: red; background: beige;width:244; font-size: 10; padding: 5;"><center>'+Dia7[1]+'</div><br>';        st+='<small><small>'+ Dia7[2]+' <span onclick="window.open(\'http://g.verron.free.fr\',\'\',\'status,height=400,width=600,scrollbars,resizable \')" style="color:blue;cursor:hand" title="Page perso" >Gerard Verron</span></center>';        DiawinFrameContent(st);}function displayMenuLoc(opt){if ((!oSelect)||(oSelect.type==undefined) ||(oSelect.type=="None")) return true;         menuloc.style.display="" ;mlh= ODiv.offsetHeight-menuloc.offsetHeight;mll= ODiv.offsetWidth-menuloc.offsetWidth;         menuloc.style.top =((frames.myEditor.event.clientY < mlh )? (frames.myEditor.event.clientY+ODiv.offsetTop):mlh);menuloc.style.left=((frames.myEditor.event.clientX < mll) ? frames.myEditor.event.clientX:mll);         return false}function hidemenuloc()   {  if (menuloc.style.display=="") menuloc.style.display="none" }function writemenus(){        var sp = '<td ><span style="width: 15"></span></td>'        var st0= '<tr onclick="'        st01='onselectstart="return false" onmouseover="menuOver()" onmouseout="menuOut()" onclick="menuClick()" cellspacing="1"'        st='<table id="menu" '+st01+' oncontextmenu="return false">'        st+='<tr id="menubar">'        st+='<td class="disabled"><div class="disabled" id="handle" for="menu" style="left: 3; width: 3; height: 100%" ></div></td>'        st+='<td class="root">&nbsp;'+Men1[0]+'&nbsp;<table cellspacing="0" class="menu" id="FileMenu" style="visibility: hidden;">'        st+= st0+'doNew()"><td class="more">&#157;</td><td nowrap>'+Men1[1]+'</td>'+sp+'</tr>'        st+= st0+'doOpen(document.location)">'+sp+'<td nowrap>'+Men1[2]+'</td>'+sp+'</tr>'        st+= st0+'doSave()" class="disabled"><td style="font-family:wingdings;">&nbsp;<</td><td nowrap>'+Men1[3]+'</td>'+sp+'</tr>'        st+= st0+'doSaveAs()">'+sp+'<td nowrap>'+Men1[4]+'</td>'+sp+'</tr>'       // st+= st0+'doPrint()">'+sp+'<td nowrap>'+Men1[5]+'</td>'+sp+'</tr>'        st+='<tr class="disabled" ><td colspan=3><hr></td></tr>'        st+= st0+'doFclose()" >'+sp+'<td nowrap>'+Men1[12]+'</td>'+sp+'</tr>'        st+='</table></td>'        st+='<td class="root">&nbsp;'+Men2[0]+'&nbsp;<table cellspacing="0" class="menu" id="tools" style="visibility: hidden;">'        st+= st0+'setRange();doCut()">'+sp+'<td>'+Menloc[0]+'</td>'+sp+'</tr>'        st+= st0+'setRange();doCopy()">'+sp+'<td>'+Men2[2]+'</td>'+sp+'</tr>'        st+= st0+'setRange();doPaste()">'+sp+'<td>'+Men2[3]+'</td>'+sp+'</tr>'        st+='<tr class="disabled"><td colspan="3"><hr></td></tr>';        st+='<tr class ="sub" menu="Insert"><td></td><td nowrap>'+Men2[4]+'<td class="more">4'        st+='<table id="Insert" class="menu" cellspacing="0" style="visibility: hidden;" onMouseOver="this.style.visibility=\'\'" onMouseOut="this.style.visibility=\'hidden\'">'        st+= st0+'setRange();doFormat(\'InsertHorizontalRule\')">'+sp+'<td><nobr>'+Men2[6]+'</td>'+sp+'</tr>'        st+= st0+'doMovableText(\'Arial\')">'+sp+'<td><nobr>'+Men2[5]+'</td>'+sp+'</tr>'        st+= st0+'doOpen(document.location,\'Select\',\'Image\')">'+sp+'<td><nobr>'+Men2[7]+'</td>'+sp+'</tr>'        st+='</table></td></tr>';        st+= st0+'doPostFile()" >'+sp+'<td nowrap>'+Men1[11]+'</td>'+sp+'</tr>'        st+= st0+'setRange();doAddLink()">'+sp+'<td><nobr>'+Men2[1]+'</td>'+sp+'</tr>'        st+= st0+'doViewDataCache()">'+sp+'<td nowrap>'+Men1[8]+'</td>'+sp+'</tr>'        //st+= '<tr onclick="OpenCloseTOC()"><td ><span style="width: 15"></span></td><td nowrap>'+Men1[13]+'</td><td ><span style="width: 15"></span></td></tr>'st+='</table></td>'        st+='<td class="root">&nbsp;?&nbsp;<table cellspacing="0" class="menu" id="Helpmenu" style="visibility: hidden;">'        st+= st0+'doEditorSite()">'+sp+'<td><nobr>'+Men4[0]+'</td>'+sp+'</tr>'        st+= st0+'doHelp()">'+sp+'<td>'+Men4[1]+'</td>'+sp+'</tr>'        st+= st0+'doAbout()">'+sp+'<td>'+Men4[2]+'</td>'+sp+'</tr>'        st+='</table></td><td width=100% class="disabled"></td></tr></table>';         st1='<span class="coolButton" title="';         st2='onmouseover = "doOver()" onmouseout ="doOut()" onmousedown="doDown()" onmouseup ="doUp()"'         st+='<div style="position:absolute;top:0;left:110" '+st2+'>'st+='<span class="sepTB" style="margin-right:1"></span>';         st+= st1+Men5[0]+'" onclick="doNew()"><font FACE="Webdings" style="font-size:10pt">&#157;</font></span>'         st+= st1+Men5[1]+'" onclick="doOpen(document.location)"><font FACE="Wingdings" style="font-size:11pt">1</span>'         st+= st1+Men5[2]+'" onclick="doSave()" ><</font></span>'         st+= st1+Men1[11]+'" onclick="doPostFile()"><font FACE="Webdings" style="font-size:10pt">&#156</font></span>'         st+='</div>'st+='<div id="tbar"   '+st2+' ><nobr>';         st+='<span id="handleTB" title="Drag to move the toolbar"></span>' st+='<span class="sepTB" style="margin-right:1"></span>';         st+= st1+Men5[4]+'" onclick="setRange();doFormat(\'Bold\')"><b>B</b></span>'         st+= st1+Men5[5]+'" onclick="setRange();doFormat(\'Italic\')"><b><i>I</i></b></span>'         st+= st1+Men5[6]+'" onclick="setRange();doFormat(\'Underline\')"><b><u>U</u></b></span>'         st+='<span class="sepTB" style="margin-right:1"></span>';         st+= st1+Men5[21]+'" onclick="setRange();fontStyler.style.display=(fontStyler.style.display==\'\' ? \'none\':\'\');fontStyler.style.left=this.offsetLeft+tbar.offsetLeft;fontStyler.style.top=(tbar.offsetTop+22)" ><b>S</b></span>';         st+= st1+Men5[22]+'" onclick="setRange();fontfamilier.style.display=(fontfamilier.style.display==\'\' ? \'none\':\'\');fontfamilier.style.left=this.offsetLeft+tbar.offsetLeft;fontfamilier.style.top=(tbar.offsetTop+22)" ><b>T</b></span>';         st+= st1+Men5[23]+'" onclick="setRange();fontsizer.style.display=(fontsizer.style.display==\'\' ? \'none\':\'\');fontsizer.style.left=this.offsetLeft+tbar.offsetLeft;fontsizer.style.top=(tbar.offsetTop+22)" ><font face="webdings" style="font-size:10pt">&gt;</font></span>';         //st+= '<span id="CLR" style="position:relative;font-family=webdings;top:-2;margin:4px;vertical-align:middle;overflow:hidden;background-color:cyan;color:red;cursor:hand" onclick="setRange();colorBox.style.display=(colorBox.style.display==\'\' ? \'none\':\'\');colorBox.style.left=this.offsetLeft+tbar.offsetLeft-100;colorBox.style.top=(tbar.offsetTop+22);">=</span>\n';         st+= st1+'" onclick="setRange();colorBox.style.display=(colorBox.style.display==\'\' ? \'none\':\'\');colorBox.style.left=this.offsetLeft+tbar.offsetLeft-100;colorBox.style.top=(tbar.offsetTop+22);"><span id="CLR" style="position:relative;font-family=webdings;top:-2;margin:4px;vertical-align:middle;overflow:hidden;background-color:cyan;color:red;cursor:hand" >=</span></span>\n';         st+='<span class="sepTB" style="margin-right:1"></span>';         st+=Icon('Left',-12,-30);st+=Icon('Center',-9,-27);st+=Icon('Right',-6,-24);         /*st+= st1+Men5[7]+'" style="position:relative;top:3" ><table onclick="borderer.style.display=(borderer.style.display==\'\' ? \'none\':\'\');borderer.style.left=this.parentElement.offsetLeft+tbar.offsetLeft;borderer.style.top=(tbar.offsetTop+22)" border=0 cellspacing=0 cellpadding=0 width=15 style="border-collapse:collapse">'         st3='<td class="tborder" style="font-size:3pt" height=6 width=6>&nbsp;</td>'         st+='<tr>'+st3+st3+'</tr><tr>'+st3+st3+'</tr></table></span>'   */         //st+='<span class="sepTB" style="margin-right:1"></span>';         //st+= st1+Men5[11]+'" style="position:relative;top:-3;width:17;height:15" onclick="doFormat(\'InsertHorizontalRule\')"><hr></span>'st+='</nobr></div> ';         st+='<div id="menuDiv" style="position:absolute;width:100%;background-color:silver;height:47;z-index:-2;border-bottom:1 solid black">&nbsp;</div>'         st+='<div id="MenuMess" style="visibility:hidden;position:absolute;width:100%;background-color:silver;height:90;top:24;z-index:-2">'         st+='<table cellspacing="0" cellpadding="0" height=100% width=100% ><col style="padding-left:10pt;width:70"><col>'         st+='<tr><td >'         st+= st1+Men5[3]+'" '+st2+' onclick="doSubmitPost()"><font FACE="Webdings" style="font-size:11pt">&#154;</font></span>&nbsp;'         st+= Dia4[1]+'</td><td><input type="text" style="width:150" id="From" value="[email protected]">&nbsp;'         st+='<iframe frameBorder=0 id="messFrame" style="position:relative;top:3pt;height:15pt;width:100%"></iframe></td></tr>'         st+='<tr><td >'+Dia4[2]+'</td><td><input type="text" style="width:100%" id="email" value="[email protected]"></td></tr>'         st+='<tr><td >'+Dia4[3]+'</td><td><input type="text" style="width:100%" id="Subject"></td></tr>'         st+='<tr><td >'+Dia4[4]+'</td><td>'//<select name="lang" disabled><option>'+Dia4[5]+'<option selected>'+Dia4[6]+'<option> '+Dia4[7]+'</select></td></tr>'         for (i=5;i<7;i++) st+='<nobr>'+Dia4[i]+'<input type ="radio" '+(i==6 ? 'checked':'') +' name="docinc" ></nobr>'         st+='</td></table></div>'         st+='<table class="menuloc" style="display:none" id="menuloc" '+st01+'>'         st+= st0+'setRange();doCut()">'+sp+'<td>'+Menloc[0]+' </td>'+sp+'</tr>'         st+= st0+'setRange();doCopy()">'+sp+'<td>'+Menloc[1]+' </td>'+sp+'</tr>'         st+= st0+'setRange();doPaste()">'+sp+'<td>'+Menloc[2]+' </td>'+sp+'</tr>'         st+= st0+'doMovableText(\'Arial\')">'+sp+'<td>'+Men2[4]+' </td>'+sp+'</tr>'         st+='</table>'         st1='<span style="width:100%" onmouseover="this.style.color=\'white\';this.style.background=\'highlight\';this.style.cursor=\'hand\'" onmouseout="this.style.color=\'black\';this.style.background=\'white\'" class="p"  ';st+='<div id="fontStyler" style="position:absolute;width:25;background:white;border:1 outset silver;display:\'none\'">'         st11=st1+'onclick="doFormat(\'FormatBlock\',\'false\',\''         st += st11+'<P>\');fontStyler.style.display=\'none\'"><nobr>&nbsp;Normal&nbsp;</nobr></span><br>';         st += st11+'<PRE>\');fontStyler.style.display=\'none\'"><nobr>&nbsp;Preformatted&nbsp;</nobr></span><br>';         st += st11+'<UL>\');fontStyler.style.display=\'none\'"><nobr>&nbsp;Bulleted List&nbsp;</nobr></span><br>';         st += st11+'<OL>\');fontStyler.style.display=\'none\'"><nobr>&nbsp;Numbered List&nbsp;</nobr></span><br>';         for (h=1; h<=6; h++)  st += st11+'<H'+h+'>\');fontStyler.style.display=\'none\'"><nobr>&nbsp;Heading ' + h +'&nbsp;</nobr></span><br>';         st+='</div>';         st+='<div id="fontfamilier" style="position:absolute;width:25;background:white;border:1 outset silver;display:\'none\'">'         for(h=0;h<fontfamil.length;h++) st+=st1+' onclick="doFormat(\'FontName\',\'false\',\''+fontfamil[h]+'\');fontfamilier.style.display=\'none\'"><nobr>&nbsp;'+fontfamil[h]+'&nbsp;</nobr></span><br>';         st+='</div>';st+='<div id="fontsizer" style="position:absolute;width:25;background:white;border:1 outset silver;display:\'none\'">'         for(i=0;i<fontsize.length;i++) st+=st1+' onclick="doFormat(\'FontSize\',\'false\','+(i+1)+');fontsizer.style.display=\'none\'">&nbsp;&nbsp;'+fontsize[i]+'p&nbsp;&nbsp;</span><br>';         st+='</div>';st+='<div id="colorBox" style="position:absolute;top:22;padding:5px;left:200;background-color:white;border:1px solid silver;display:none">\n';         st30='<span onmouseover="CLR.style.';st31='= this.style.backgroundColor" onclick="doColorSelect()" style="cursor:hand; position:relative;width:15px;border:1px solid black;background-color:'         st+='<table><tr><td><span class="p">'+Men5[19]+': </span>'+st30+'color'+st31+'black" ></span>';st+=ColorTable('"fonte"');         st+='</td><td width=5px>&nbsp;</td><td><span class="p">'+Men5[20]+':</span>'+st30+'backgroundColor'+st31+'white" ></span>'         st+='&nbsp;'+st30+'backgroundColor'+st31+'transparent;text-align:center" >X</span>';st+=ColorTable('"background"');st+='</td></table></div>'st+='<div id="borderer" style="position:absolute;height:50;width:50;background:silver;border:1 outset buttonshadow;display:\'none\'">'st4='<span class="coolButton" onmouseover="this.style.borderStyle=\'outset\'" onmouseout="this.style.borderStyle=\'\'">'         st4+='<table bgcolor="white" id="BDR" cellspacing="0" cellpadding="0" width=15 onclick="doCellBorder()"><tr><td style="'         st5='">&nbsp;</td></tr></table></span>';st6='border-right:1 solid '+borderColor+';';st7='border-bottom:1 solid '+borderColor+';';st8='border-left:1 solid '+borderColor+';';st9='border-top:1 solid ' + borderColor+';';         st+='<table cellpadding=3 cellspacing=3 ><tr><td>'+st4+'border-top:1 solid black;'+st6+st7+st8+st5+'</td><td>'+st4+'border-right:1 solid black;'+st7+st8+st9+st5+'</td><td>'+st4+'border-bottom:1 solid black;'+st6+st8+st9+st5+'</td><td>'+st4+'border-left:1 solid black;'+st6+st7+st9+st5+'</td></tr>'         st+='<tr><td>'+st4+st6+st7+st8+st9+st5+'</td><td>'+st4+'border-top:1 solid black;border-bottom:1 solid black;'+st6+st8+st5+'</td><td>'+st4+'border-left:1 solid black;border-right:1 solid black;'+st7+st9+st5+'</td><td>'+st4+'border-top:1 solid black;border-left:1 solid black;border-bottom:1 solid black;border-right:1 solid black;'+st5+'</td></tr></table>'         st+='</div>'         document.write(st); }//-----------------EDitor specific functions-----------------------------var giLastImg = '1'; var giLastTxt = '1';function doMovableText(oTxtId,oTxtFont){var oNode=frames.myEditor.document.createElement("div");    frames.myEditor.document.body.insertBefore(oNode);    oNode.style.fontFamily=oTxtFont;    oNode.innerText=al06;    giLastTxt++; var iTempCount = "text" + giLastTxt;    oNode.id = iTempCount;oNode.style.position='absolute';oNode.setActive()}function doInsertImage(fname) { st=newURL.substring((1+newURL.lastIndexOf(".")),newURL.length);if ((st !="gif")&&(st!="jpeg")&&(st!="jpg")) {alert(al07);return}var oNode=frames.myEditor.document.createElement("img");re = /\\/g ;st1="file:///"+newURL.replace( re, "/");    frames.myEditor.document.body.insertBefore(oNode);oNode.src=st1;    giLastImg++; oNode.id= "img" + giLastImg;oNode.style.position='absolute';    var oRange = frames.myEditor.document.body.createControlRange();oRange.add(oNode); oRange.select()}function doSRC(finclude,fname){switch(finclude){case "Image":doInsertImage(fname) ;break}}function doAddLink() {if (oRange.text!=""){ document.execCommand("CreateLink");RegChange() }else{alert("Please select some text");}}function doFontFamily(fam){ doFormat('FontName','false',fam)}function doFontSize(vas){doFormat('FontSize','false',vas)}function doSelectClick(str, el) { if (el.selectedIndex != -1) doFormat(str,el);}function doColorSelect(target){if(oSelect.type=="Text") {doFormat('ForeColor','false',CLR.style.color);doFormat('BackColor','false',CLR.style.backgroundColor)}         if(oSelect.type=="Control") {oRange.item(0).style.backgroundColor=CLR.style.backgroundColor ;oRange.item(0).style.color=CLR.style.color }         if(oSelect.type=="None") frames.myEditor.document.body.style.backgroundColor=CLR.style.backgroundColor ;         colorBox.style.display ="none";RegChange()}function doLeft(){doFormat('JustifyLeft')}function doCenter(){ doFormat('JustifyCenter')}function doRight(){  doFormat('JustifyRight') }function doOutdent(){doFormat('Outdent')}function doIndent(){doFormat('Indent')}function doCellBorder(){ st=event.srcElement.style;doStyleRule('Border',st.borderLeft,st.borderTop,st.borderRight,st.borderBottom)         borderer.style.display='none';}function setRange(){oSelect = document.frames["myEditor"].document.selection;oRange=oSelect.createRange();}function doFormat(styl,val,va2) {  oRange.execCommand(styl,val,va2);  oRange.select();frames.myEditor.focus() ;RegChange()}function doCut(){oRange.execCommand('Cut');RegChange()}function doCopy(){oRange.execCommand('Copy');RegChange()}function doPaste(){oRange.execCommand('Paste');RegChange()}function createNew(){st=frames.myEditor.document; From.value=email.value=Subject.value="";         st.getElementById("Oedit").removeNode(true);stdata='';document.title="new.htm";init()}function DocumentHeader(fname){st='' st='<html><head><Title>'+ fname +'</Title></head>\n';         st+='<meta name="Keywords" Content="Editeur dhtml jscript,applicatif autonome dynamique, application web">\n';         st+='<meta name="Description" Content="Applicatif web autonome qui édite, affiche, des fichiers texte. L\'applicatif regroupe dans un même fichier l\'interface et les données. Il peut être utilisé de façon autonome sans besoin de raccordement au serveur ">\n'; st+='<meta name="Auteur" Content="Gerard Verron ([email protected])">\n'; st+='<meta name="Dedicace" Content="Cet applicatif est dédié à la nation Irakienne, et à l\'injuste comportement de la communauté internationale à son égard.">\n';         st+='<!--Demo version01:01-10-2001 \n'st+='############################################################################################################\n';st+='# Vous pouvez utiliser eDitor de façon personnelle ou pour un but non lucratif à condition de respecter ces termes  #\n';st+='# En d\'autres termes,ne pas modifier ces metatags. Pour tout usage commercial, me contacter à [email protected]  #\n',st+='#         Pour toute proposition d\'amélioration, rapport de bogues, etc...voir http://eplanning.free.fr/          #\n';st+='############################################################################################################\n';st+='-->\n' st+='<style id="appStyle"></style><style id="docStyle"></style>'return st}function DocumentBody(){st='\n<BODY style="margin: 0; border: 0" onload="init();checkLocation()">\n';st+='<div id="ODiv" style="position:absolute;top:20;height:100%;border:1px inset black">\n'         st+='<IFRAME WIDTH=100% HEIGHT=100% frameborder=0 ID=myEditor ></IFRAME></div>\n'st+='<SCRIPT>  writemenus();</SCR'+'IPT>\n';         for (i=2;i<document.scripts.length;i++) {st+=document.scripts[i].outerHTML}st+='</body></html>\n'return st}postanimtxt=0; postaniTxt='';for (m=0;m<Dia4[9].length;m++) postaniTxt+='<span id="flight'+m+'">'+Dia4[9].charAt(m)+'</span>';function doPostAnim(){ ftxt=document.frames.messFrame.document;if(ftxt.getElementById("flight0")){if (postanimtxt==0){for (m=0;m<Dia4[9].length;m++)ftxt.getElementById("flight"+m).style.color="black" }; ftxt.getElementById("flight"+postanimtxt).style.color="blue";if (postanimtxt<Dia4[9].length-1)postanimtxt++; else{postanimtxt=0;clearInterval(flash);setTimeout("doPostAnimTxt()",50);return}} }function doPostAnimTxt(){ flash=setInterval("doPostAnim()",50)}function doPostFile() {MenuMess.style.visibility=(MenuMess.style.visibility=="visible" ? "hidden":"visible");st=document.frames.messFrame;st=st.document.body.style; st.fontFamily="arial";st.fontSize="8pt";st.backgroundColor="silver";st.margin="0"; fixSizeTB()}function doSubmitPost() {         if (From.value ==""){ alert(al03 +'"'+Dia4[1]+'"');return};if (!isEmail(From.value)) return;         if (email.value =="") {alert(al03 +'"'+Dia4[2]+'"') ;return};Dest=email.value.split(";");for(i=0;i<Dest.length;i++) {if (!isEmail(Dest[i])) return;}         st=postaniTxt;         filedata=escape(docinc[1].checked ? SaveDaHTML():getHTMLfile(document.title)) ;         st+='<form action="http://www.epsworld.com/mail/eDitorMail.php" ID="sendit" method="post">\n';         st+='<input type="hidden" name="filedata" value="'+filedata+'">';         st+='<input type="hidden" name="filename" value="'+document.title+'">';         st+='<input type="hidden" name="From" value="'+From.value+'">';         st+='<input type="hidden" name="email" value="'+email.value+'">';         st+='<input type="hidden" name="Subject" value="'+Subject.value+'">';         st+='</form> \n';         document.frames.messFrame.document.body.innerHTML=st ; document.frames.messFrame.document.getElementById("sendit").submit() ;doPostAnimTxt();         }function doEditorSite(){window.open('http://eplanning.free.fr/','','height=450,width=700,menubar=yes,top=50,left=50,status=no')}function doHelpScroll(ind){ document.frames["uFrame"].document.getElementById("helpcontent").scrollTop=document.frames["uFrame"].document.getElementById(ind).offsetTop;}function doHelp(){DiawinShow(250,250,10,(document.body.clientWidth-280),Dia6[0]);st='';sti=new Array()         tits=new Array("Introduction","Fonctionnement","Applicatif autonome","Ajout de commandes","Insertion d\'images","Selection des couleurs")         st+='<table border="0"><td><select size="5" name="helpselect" style="font-size:8pt;text-align:right" onchange="parent.doHelpScroll(this.options[this.selectedIndex].value)">\n'         for (i=0;i<(tits.length);i++){


HTML
<BODY style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; MARGIN: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" onload=init();checkLocation()><DIV id=ODiv style="BORDER-RIGHT: black 1px inset; BORDER-TOP: black 1px inset; BORDER-LEFT: black 1px inset; BORDER-BOTTOM: black 1px inset; POSITION: absolute; TOP: 20px; HEIGHT: 100%"><IFRAME id=myEditor src="about:blank" frameBorder=0 width="100%" height="100%"></IFRAME></DIV><SCRIPT id=MenusScript>  writemenus();</SCRIPT><SCRIPT id=TOCscript defer unselectable="on">var toc,TocObj,tocHand,tocClose,tocWidth,eToc;ePa=new Array();TOCtitre="Table des Matières";var tocResize=false;window.onresize=Resizetoc;var tStyle=document.styleSheets[1];         with(tStyle){         addRule("#tocScroll","overflow:scroll;width:100%;padding-left:3pt");         addRule("#toc","position:absolute;background-color:rgb(210,220,230);cursor:hand;border:1px solid white;z-index:-1");         addRule("#toc a","text-decoration:none;color:black;font-family:arial");         addRule("#toc a:hover","color:red");         addRule("#toc .tocH1","margin-left: 0pt;font:8pt ;font-weight:bold");         addRule("#toc .tocH2","margin-left: 3pt;font:7pt;font-weight:bold");         addRule("#toc .tocH3","margin-left: 6pt;font:7pt");         addRule("#toc .tocH4","margin-left: 9pt;font:7pt");         addRule("#tocHand","position:absolute;width: 8pt;background-color:silver;cursor:move;z-index:-1");         addRule("#tocHead","font-family:arial;padding:2px;height:16px;font-size:8pt;background-color:silver;border-bottom:2px inset white");         addRule("#tocClose","position:absolute;font-size:7pt;height:16;z-index:-1");         addRule("h1","font:16pt;");         addRule("h2","font:14pt; ");addRule("h3","font:12pt;font-weight:bold");addRule("h4","font:10pt;font-weight:bold");         }doTocMenu()function doTocMenu(){ oRow=tools.insertRow();oRow.onclick=OpenCloseTOC; oCell=oRow.insertCell();oCell.innerHTML='';oCell=oRow.insertCell();oCell.innerHTML=TOCtitre;oCell=oRow.insertCell();}function OpenCloseTOC(){ if (document.getElementById("toc")) {document.body.removeChild(document.getElementById("toc"));document.body.removeChild(document.getElementById("tocHand"));         document.body.removeChild(document.getElementById("tocClose"));         ODiv.style.left=0;ODiv.style.width=document.body.clientWidth}else {tocWidth=150;doTocLoad()}}function TocOnClick(el){  window.event.returnValue=false;         obj1 =frames.myEditor.document.getElementById("Oedit");         obj2=document.getElementById("toc") ;         i=0;  while (i<TocObj.length) {if (ePa[i]==this.id) {k=i ;hL=this.id.length; break} i++} ;         st1='toc'+k;  frames.myEditor.document.body.scrollTop=frames.myEditor.document.getElementById(st1).offsetTop;         j=(k+1);while (j<TocObj.length){if (ePa[j]!=undefined){ hiL=ePa[j].toString().length;  if(hiL<=hL){ ll=j;break}         document.getElementById(ePa[j]).style.display = (document.getElementById(ePa[j]).style.display=="none" ? ((hiL==hL+2)? "":"none"):"none");}                 j++}  }function getTocHeadings(obj) { var str="";for (i=0;i< obj.childNodes.length;i++) {if (obj.childNodes[i].nodeType==1) str+=getTocHeadings(obj.childNodes[i]) ;  else if (obj.childNodes[i].nodeType==3)   str = obj.childNodes[i].data;}  return str}function buildToc() {         TocObj =frames.myEditor.document.getElementsByTagName("*");var el = document.createElement("p");var tagList = "H1;H2;H3;H4;H5;H6;"         eT=document.createElement("Div");eT.id="tocHead";eT.className = "tocHead";eT.innerHTML='<nobr>'+TOCtitre +'</nobr>'; el.appendChild(eT);         eToc=document.createElement("Div");eToc.id="tocScroll";         el.appendChild(eToc) for (var i=0;i < TocObj.length;i++) if (tagList.indexOf(TocObj[i].tagName+";")>=0) { idx=TocObj[i].tagName.charAt(1);   eP = document.createElement("a"); ePText = document.createTextNode(getTocHeadings(TocObj[i])+'\n')         eP.id=ePText.toString().substring(0,(2*idx-1));   ePa[i]=eP.id;         eP.href="#";var eBr=document.createElement("br");eP.onclick=TocOnClick;        eP.className="toc" + TocObj[i].tagName;enBr=document.createElement("nobr")                frames.myEditor.document.all(i).id='toc'+i  ;         if (ePa[i].length >1) eP.style.display =  "none"; eP.appendChild(ePText);                 eToc.appendChild(enBr);enBr.appendChild(eP);eP.appendChild(eBr)}         return el}frames.myEditor.document.getElementsByTagName = ie_getElementsByTagName;function ie_getElementsByTagName(str){return ((str=="*") ?frames.myEditor.document.all :frames.myEditor.document.all.tags(str))}function doTocLoad() {oToc=document.createElement("Div");oToc.id="toc";document.body.appendChild(oToc);oTHand=document.createElement("Div");oTHand.id="tocHand";document.body.appendChild(oTHand);         oTHand.onmousedown=tocDown;oToc.onmousemove=tocMove;oTHand.onmousemove=tocMove;oTHand.onmouseup=tocUp;oTHand.className="tocHand";         oTClose=document.createElement("Button");oTClose.id="tocClose";oTClose.innerHTML="<b>X</b>";oTClose.className="tocClose"; oTClose.onclick=OpenCloseTOC; document.body.appendChild(oTClose);         el = buildToc();Resizetoc();document.getElementById("toc").appendChild(el)}frames.myEditor.onmousemove=parent.tocEditMovefunction tocUp(){tocResize=false}function tocDown(){tocResize=true}function tocMove(twdth){if (tocResize){if(twdth !=undefined) alert(twdth); tocWidth=event.clientX;Resizetoc();} }function Resizetoc(){toc=document.getElementById("toc");tocHand=document.getElementById("tocHand");tocClose=document.getElementById("tocClose");Wdt= document.body.offsetWidth-4;st4=tocClose.style;st4.left=tocWidth-17;         st1=toc.style;st1.left=0; st1.width=tocWidth;st2=tocHand.style;st2.left=tocWidth;         st3=ODiv.style;st3.left=tocWidth+8; st3.width=Wdt-tocWidth-2;st1.top=st2.top=st3.top;st4.top=st3.pixelTop+2;st1.height=st2.height=st3.height;eToc.style.height=st3.pixelHeight-22;         st1.overflow="hidden";}</SCRIPT></BODY><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->