Avatar billede da_darkside Nybegynder
05. januar 2002 - 05:07 Der er 8 kommentarer og
1 løsning

online edit - af artikler?

Jeg er er ved at lave en side hvor man fremover vil kunne læse nyheder om computer verdenen, noget ala Comon.dk / computerworld.dk...

Jeg har brug for et script hvor man kan tilføje artikler online, dvs sætte billeder inde lave linie skift, bruge forskellige skrifttyper mm...

Nogen som kunne være behjælpelig med et sådanne, eller som evt kender et sted hvor man kan downloade en kode til et sådanne, på forhånd tak :-)
Avatar billede cygnet Praktikant
05. januar 2002 - 05:44 #1
Hej Dark_Side

Kast et godt blik på http://www.3wp.dk

Her kan hos Jesper downloade en light udgave.
Editoren bygger på DHTMLED.OCXen og virker ganske godt.

Alternativt kan du downloade en Richtext editor hos gutterne på http://richtext.sourceforge.net/

/cygnet
Avatar billede keysersoze Guru
05. januar 2002 - 11:19 #2
altså - gratis ($$$) skal du ikke forvente at få det helt store vidunder, men på www.netcoders.dk og www.activeserverpages.dk er der lidt eksempler på forskellige systemer
Avatar billede x4all_dk Nybegynder
05. januar 2002 - 11:26 #3
Sørgeligt at se at folk opretter en profil og fyrer 300 point af samme dag... og får hjælp :(
Avatar billede www.net-ware.dk Nybegynder
05. januar 2002 - 12:19 #4
Jeg har fundet denne javascript på nettet, men kan ikke huske hvor.

<html><head><Title>eDitor1.htm</Title></head>
<meta name=\"Keywords\" Content=\"Editeur dhtml jscript,applicatif autonome dynamique, application web\">
<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 \">
<meta name=\"Auteur\" Content=\"Gerard Verron (gverron@noos.fr)\">
<meta name=\"Dedicace\" Content=\"Cet applicatif est dédié à la nation Irakienne, et à l\'injuste comportement de la communauté internationale à son égard.\">
<!--Demo version01:01-10-2001
############################################################################################################
# Vous pouvez utiliser eDitor de façon personnelle ou pour un but non lucratif à condition de respecter ces termes  #
# En d\'autres termes,ne pas modifier ces metatags. Pour tout usage commercial, me contacter à gverron@noos.fr  #
#        Pour toute proposition d\'amélioration, rapport de bogues, etc...voir http://eplanning.free.fr/          #
############################################################################################################
-->
<style id=\"appStyle\"></style><style id=\"docStyle\"></style>
<SCRIPT unselectable=\"on\">
//THISISTHEDATASTART
stdata=\'<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=\"file:///C:/EasyPHP/www/eplanning/Projects/Test/eDitor/Greeting%20Card%20Designer_fichiers/miniclover.gif\">\';
//FileStart

var 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:password@ftpperso.free.fr\\\"\");

        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 browsers
    this.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.all
    oFrame.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=\"gverron@noos.fr\">&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=\"gverron@noos.fr\"></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+=\
Avatar billede www.net-ware.dk Nybegynder
05. januar 2002 - 12:21 #5
Jeg kan se den ikke kan havde det hele.
Hvis du eller andre gerne vil havde den send en mail til mig.
lbl@net-ware.dk

mvh
Lars
Avatar billede www.net-ware.dk Nybegynder
05. januar 2002 - 12:29 #6
Det stor i koden hvor du kan hente det - kan jeg se nu- http://eplanning.free.fr/

mvh

Lars
Avatar billede da_darkside Nybegynder
05. januar 2002 - 23:09 #7
ikke helt det jeg søger, desværre gutter
Avatar billede www.net-ware.dk Nybegynder
06. januar 2002 - 00:51 #8
Der er nok mange der gerne vil hjælpe dig en anden gang.

Avatar billede cygnet Praktikant
06. januar 2002 - 01:01 #9
Har lavet det her til mp5 :
Kunne sikkert godt udvikles til noget med linieskift og indsættelse af billeder (men kræver jo at du har aspupload)

http://www.bilbyendanmark.dk/mp5/
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester