Ignore:
Timestamp:
04/12/10 14:42:40 (14 years ago)
Author:
nathalie.silva
Message:

Ticket #891 - alterado para utilizar o iframe e substituir todas palavras iguais - Nathalie

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/expressoMail1_2/corretor_ortografico/spell_checker/js/spell_checker.js

    r2477 r2486  
    4848cp.set_transfer_mode('post'); 
    4949cp.set_response_type('text'); 
     50 
    5051function beginSpellCheck(){ 
    5152if(!blockSpellCheck){ 
     
    5354    area = "body_" + currentTab; 
    5455    aba = currentTab; 
     56 
    5557    //var cp = new cpaint(); 
    5658    // alert("Seta globals"); 
     
    9496// If there are already any onload handlers loaded in the page, we'll add our onload 
    9597// handler first and then call the old one, rather than completely overriding it. 
    96 if(window.onload) 
    97 { 
    98         window.onload = new setupSpellCheckers(); 
    99          
    100         /*var old_onload = window.onload; 
    101         window.onload = function(e) 
    102         { 
    103                 var test = new setupSpellCheckers(e); 
    104                 old_onload(e); 
    105         }*/ 
    106 } 
    107 else 
    108 { 
    109         window.onload = new setupSpellCheckers(); 
    110 } 
     98    if(window.onload) 
     99    { 
     100            window.onload = new setupSpellCheckers(); 
     101 
     102            /*var old_onload = window.onload; 
     103            window.onload = function(e) 
     104            { 
     105                    var test = new setupSpellCheckers(e); 
     106                    old_onload(e); 
     107            }*/ 
     108    } 
     109    else 
     110    { 
     111            window.onload = new setupSpellCheckers(); 
     112    } 
    111113 
    112114//window.onload =new setupSpellCheckers(); 
     
    135137 
    136138    if(ifr.contentWindow) 
    137     ifr=ifr.contentWindow.document; 
     139        ifr=ifr.contentWindow.document; 
    138140    else 
    139     ifr=ifr.contentDocument; 
     141        ifr=ifr.contentDocument; 
    140142    var texto = ifr.body.innerHTML; 
    141143 
     
    148150 
    149151function setupSpellChecker(){ 
    150  
    151152 
    152153        currObj = this; 
     
    171172        currObj.controlPanelDiv.className = 'control_panel'; 
    172173        currObj.controlPanelDiv.id = 'control_panel_' + currentTab; 
    173         document.getElementById(currObj.config['divId']).appendChild(currObj.controlPanelDiv); 
     174        document.getElementById(currObj.config['divId']).appendChild(currObj.controlPanelDiv);  
     175        
     176        
     177         
    174178 
    175179        //the span that toggles between spell checking and editing 
     
    223227function ajaxSpell(varName, width, height, spellUrl, divId, name, id, title, value) 
    224228{ 
    225          
    226        currObj = this; 
     229 
     230        currObj = this; 
     231 
    227232 
    228233        currObj.config               = new Array();         //the array of configuration options 
     
    307312        ajaxSpell.prototype.resetSpellChecker    = resetSpellChecker; 
    308313        ajaxSpell.prototype.resetAction          = resetAction; 
     314         
     315 
    309316 
    310317       
     
    327334         
    328335}; // end setCurrentObject 
     336 
     337 
     338/************************************************************* 
     339 * showMenu 
     340 * 
     341 * This function is associated with the click event 
     342 *  of all the tags span with correctd_word class. 
     343 * 
     344 *************************************************************/ 
     345function showMenu(){ 
     346    var evento = this.onclick.toString(); 
     347    evento = evento.replace("function onclick(event) {", ""); 
     348    evento = evento.replace("}", ""); 
     349    var array_func = evento.split(";"); 
     350    eval(array_func[0]); 
     351    eval(array_func[1]); 
     352    return false;    
     353} 
     354 
     355/************************************************************* 
     356 * showMenu 
     357 * 
     358 * This function is associated with the click event 
     359 *  of all the tags div with suggestion class. 
     360 * 
     361 *************************************************************/ 
     362function replaceMenu(){ 
     363    var evento = this.onclick.toString(); 
     364    if(spellingSuggestionsDiv) 
     365    { 
     366 
     367        spellingSuggestionsDiv.parentNode.removeChild(spellingSuggestionsDiv); 
     368        spellingSuggestionsDiv = null; 
     369    } 
     370    evento = evento.replace("function onclick(event) {", ""); 
     371    evento = evento.replace("}", ""); 
     372    var array_func = evento.split(";"); 
     373    eval(array_func[0]); 
     374    return false; 
     375} 
     376 
    329377 
    330378 
     
    344392function spellCheck_cb(new_data) 
    345393{ 
     394         //adicionado nathalie 
     395        var ifr= currObj.objToCheck; 
     396        if(ifr.contentWindow) 
     397            ifr=ifr.contentWindow.document; 
     398        else 
     399            ifr=ifr.contentDocument; 
     400 
    346401 
    347402        with(currObj); 
     403 
    348404        new_data = new_data.toString(); 
    349405        var isThereAMisspelling = new_data.charAt(0); 
     
    353409        { 
    354410             
    355                 currObj.spellingResultsDiv.parentNode.removeChild(spellingResultsDiv); 
    356         } 
    357  
     411                ifr.removeChild(currObj.spellingResultsDiv.id); 
     412                 
     413        } 
     414 
     415         
     416        /*currObj.spellingResultsDiv =  document.createElement('DIV'); 
     417        currObj.spellingResultsDiv.className = 'edit_box'; 
     418        currObj.spellingResultsDiv.id = 'edit_box'; //Added the id property - By Nathalie 
     419        currObj.spellingResultsDiv.style.width =  "99%";//the width of the textarea 
     420        currObj.spellingResultsDiv.style.height = 300;  //   = height; //currObj.objToCheck.style.height; 
     421        currObj.spellingResultsDiv.innerHTML = new_data;        
     422        currObj.objToCheck.style.display = "none"; 
     423        currObj.objToCheck.parentNode.insertBefore(currObj.spellingResultsDiv,currObj.objToCheck); 
     424        currObj.statusSpan.innerHTML = ""; */ 
     425 
     426        //Testes nathalie - substituido 
    358427        currObj.spellingResultsDiv =  document.createElement('DIV'); 
    359428        currObj.spellingResultsDiv.className = 'edit_box'; 
     
    361430        currObj.spellingResultsDiv.style.width =  "99%";//the width of the textarea 
    362431        currObj.spellingResultsDiv.style.height = 300;  //   = height; //currObj.objToCheck.style.height; 
    363         currObj.spellingResultsDiv.innerHTML = new_data; 
    364  
    365         currObj.objToCheck.style.display = "none"; 
     432        currObj.spellingResultsDiv.innerHTML = new_data; 
     433        currObj.spellingResultsDiv.border = 0; 
     434        //currObj.spellingResultsDiv.style.display = "none"; 
     435        //currObj.objToCheck.style.display = "none"; 
     436        currObj.statusSpan.innerHTML = "";  
     437        
     438        // Teste de iFrame - Nathalie 
     439         var ifr= currObj.objToCheck; 
     440         if(ifr.contentWindow) 
     441            ifr=ifr.contentWindow.document; 
     442         else 
     443            ifr=ifr.contentDocument; 
     444         ifr.body.innerHTML =  ""; 
     445         var cssLink = document.createElement("link") 
     446         cssLink.href = "spell_checker/css/spell_checker.css"; 
     447         cssLink .rel = "stylesheet"; 
     448         cssLink .type = "text/css";             
     449         ifr.body.appendChild(cssLink);      
     450         ifr.body.appendChild(currObj.spellingResultsDiv); 
     451 
     452 
     453        // Obtain all the span tags which have highlight className 
     454        //    and add the eventListener for the click - This event shows the suggestions menu 
     455        var nodeArray = ifr.getElementsByTagName("span"); 
     456        var totArray = nodeArray.length; 
     457        for (var i = 0 ; i < totArray ; i++) { 
     458            var node = nodeArray[i]; 
     459            if (node.className == "highlight") { 
     460                ifr.getElementsByTagName("span")[i].addEventListener("click", showMenu , true); 
     461 
     462            } 
     463        } 
     464 
     465 
     466//adicionado Paula 
     467//    currObj.objToCheck.style.display = "none"; //Paula 
    366468        //currObj.objToCheck.parentNode. 
    367469        //currObj.objToCheck.parentNode.appendChild(currObj.spellingResultsDiv,currObj.objToCheck); 
    368         currObj.objToCheck.parentNode.insertBefore(currObj.spellingResultsDiv, document.getElementById("viewsource_rt_checkbox_" + currentTab)); 
     470//      currObj.objToCheck.parentNode.insertBefore(currObj.spellingResultsDiv, document.getElementById("viewsource_rt_checkbox_" + currentTab)); //Paula 
    369471        currObj.statusSpan.innerHTML = "";     
    370          
    371       
     472 
     473         
    372474        if(currObj.config['useIcons']) 
    373475        { 
     
    406508 *************************************************************/ 
    407509function spellCheck() { 
    408  
     510// adicionado nathalie 
     511/*        with(currObj); 
     512        var query; 
     513 
     514        if(currObj.spellingResultsDiv) 
     515        { 
     516                currObj.spellingResultsDiv.parentNode.removeChild(currObj.spellingResultsDiv); 
     517                currObj.spellingResultsDiv = null; 
     518        } 
     519         
     520        if(currObj.config['useIcons']) 
     521        { 
     522                currObj.actionSpan.innerHTML = "<img src=\"images/spellcheck.png\" width=\"16\" height=\"16\" title=\"Verificar Ortografia\" alt=\"Verificar Ortografia\" border=\"0\" />"; 
     523        } 
     524        else 
     525        { 
     526                currObj.actionSpan.innerHTML = "<a class=\"check_spelling\">Verificar Ortografia</a>"; 
     527        } 
     528         
     529        if(currObj.config['useIcons']) 
     530        { 
     531                currObj.statusSpan.innerHTML = "<img src=\"images/working.gif\" width=\"16\" height=\"16\" title=\"Verificando Ortografia...\" alt=\"Verificando Ortografia...\" border=\"0\" />"; 
     532        } 
     533        else 
     534        { 
     535                currObj.statusSpan.innerHTML = "Verificando Ortografia..."; 
     536        }        
     537         
     538        // Obtain the HTML content from iframe (edit area) 
     539         var ifr= currObj.objToCheck; 
     540         if(ifr.contentWindow) 
     541            ifr=ifr.contentWindow.document; 
     542         else 
     543            ifr=ifr.contentDocument; 
     544         var texto = ifr.body.innerHTML; 
     545         
     546         
     547        query = texto; 
     548        //query = currObj.objToCheck.value;         
     549         
     550        //query = query.replace(/\r?\n/gi, "<br />"); //  Commented from the original by Nathalie 
     551        query = query.replace(/\r?\n/gi, " ");  // replace \n with " " - By Nathalie 
     552        
     553         
     554        cp.call(currObj.config['spellUrl'], 'spellCheck', spellCheck_cb, query, currObj.config['varName']); 
     555*/ 
     556//adicionado Paula 
    409557        if(!blockSpellCheck) { 
    410558            blockSpellCheck = true; 
     
    472620function addWord(id) 
    473621{ 
    474         var wordToAdd = document.getElementById(id).innerHTML; 
     622        var wordToAdd = document.getElementById(id).innerHTML; 
    475623         
    476624        with(currObj); 
     
    509657function addWord_cb(returnedData) 
    510658{ 
    511         with(currObj); 
     659         
     660        with(currObj); 
    512661        currObj.statusSpan.innerHTML = ""; 
    513662        resumeEditing(); 
     
    570719function getTarget(e) 
    571720{ 
     721         
    572722        var value; 
    573723        if(checkBrowser() == "ie") 
     
    594744function checkBrowser() 
    595745{ 
    596        
    597         var theAgent = navigator.userAgent.toLowerCase(); 
     746        var theAgent = navigator.userAgent.toLowerCase(); 
    598747        if(theAgent.indexOf("msie") != -1) 
    599748        { 
     
    658807        spellingSuggestionsDiv.style.display = 'block'; 
    659808        currObj.statusSpan.innerHTML = ""; 
     809 
     810        //adicionado os listener - nathalie 
     811         var ifr= currObj.objToCheck; 
     812         if(ifr.contentWindow) 
     813            ifr=ifr.contentWindow.document; 
     814         else 
     815            ifr=ifr.contentDocument; 
     816 
     817        var nodeArray = ifr.getElementsByTagName("div"); 
     818        var totArray = nodeArray.length; 
     819        for (var i = 0 ; i < totArray ; i++) { 
     820            var node = nodeArray[i]; 
     821            if (node.className == "suggestion" || node.className == "ignore" ) { 
     822                ifr.getElementsByTagName("div")[i].addEventListener("click", replaceMenu , true); 
     823 
     824            } 
     825        } 
     826 
     827 
    660828}; //end showSuggestions_cb 
    661829 
     
    678846function showSuggestions(word, id) 
    679847{ 
     848         
     849        //adicionado nathalie 
     850         var ifr= currObj.objToCheck; 
     851         if(ifr.contentWindow) 
     852            ifr=ifr.contentWindow.document; 
     853         else 
     854            ifr=ifr.contentDocument; 
     855 
     856//alterado - colocar ifr 
    680857        language =  document.getElementById("selectLanguage"); 
    681858        language = language[document.getElementById("selectLanguage").selectedIndex].value; 
    682859         
     860      
    683861        with(currObj); 
    684862        if(currObj.config['useIcons']) 
     
    690868                currObj.statusSpan.innerHTML = "Procurando..."; 
    691869        } 
     870        
    692871        var x = findPosXById(id); 
    693         var y = findPosYById(id); 
    694          
    695         var scrollPos = 0; 
     872        var y = findPosYById(id);       
     873         
     874        var scrollPos = 0; 
    696875        if(checkBrowser() != "ie") 
    697876        { 
    698                 scrollPos = currObj.spellingResultsDiv.scrollTop; 
     877                 
     878                //scrollPos = currObj.spellingResultsDiv.scrollTop; 
     879                scrollPos = ifr.getElementById(currObj.spellingResultsDiv.id).scrollTop; 
     880                
    699881        } 
    700882 
     
    709891        spellingSuggestionsDiv.style.left = x + 'px'; 
    710892        spellingSuggestionsDiv.style.top = (y+16-scrollPos) + 'px'; 
     893        
     894         
     895                
    711896         
    712897        // Bah. There's got to be a better way to deal with this, but the click 
     
    714899        // showing and hiding the suggestion box, so we'll ignore the first 
    715900        // click. 
    716         spellingSuggestionsDiv.ignoreNextClick = true; 
    717          
    718         document.body.appendChild(spellingSuggestionsDiv); 
    719          
     901        //spellingSuggestionsDiv.ignoreNextClick = true; // comentado Nathalie 
     902 
     903         
     904        //document.body.appendChild(spellingSuggestionsDiv); 
     905        ifr.body.appendChild(spellingSuggestionsDiv); //alterado nathalie 
     906         
     907 
     908 
     909 
     910         
    720911        cp.call(currObj.config['spellUrl'], 'showSuggestions', showSuggestions_cb, word, id, language); 
    721912}; // end showSuggestions 
    722913 
    723914 
     915 
    724916/************************************************************* 
    725917 * replaceWord 
    726918 * 
    727  * The replaceWord function takes the id of the misspelled word 
    728  * that the user clicked on and replaces the innerHTML of that 
    729  * span with the new word that the user selects from the suggestion 
    730  * div.  It hides the suggestions div and changes the color of 
     919 * The replaceWord function replaces the innerHTML of all the span tags 
     920 * that contains the old word with the new word that the user selects 
     921 * from the suggestion div.  It hides the suggestions div and changes the color of 
    731922 * the previously misspelled word to green to let the user know 
    732923 * it has been changed.  It then calls the switchText php function 
    733924 * with the innerHTML of the div to update the text of the text box. 
    734925 * 
    735  * @param id The id of the span that contains the word to be replaced 
    736  * @param newWord The word the user selected from the suggestions div 
     926 * @param id The id of the element to be checked 
     927 * @param newword The word the user selected from the suggestions div 
    737928 *                to replace the misspelled word. 
    738929 *************************************************************/ 
    739930function replaceWord(id, newWord) 
    740931{ 
    741       
    742         document.getElementById(id).innerHTML = trim(newWord); 
    743         if(spellingSuggestionsDiv) 
    744         { 
     932 
     933    
     934    var ifr= currObj.objToCheck; 
     935    if(ifr.contentWindow) 
     936        ifr=ifr.contentWindow.document; 
     937    else 
     938        ifr=ifr.contentDocument; 
     939 
     940    var valorNo = trim(ifr.getElementById(id).innerHTML); 
     941    
     942 
     943    if(spellingSuggestionsDiv) 
     944    { 
     945    spellingSuggestionsDiv.parentNode.removeChild(spellingSuggestionsDiv); 
     946    spellingSuggestionsDiv = null; 
     947    } 
     948 
     949 
     950    // Obtain all span tags which have highlight className and contais the old word 
     951    var nodeArray = ifr.getElementsByTagName("span"); 
     952    var totArray = nodeArray.length; 
     953    var nodeRemove = new Array(totArray); 
     954    var j = -1; 
     955    for (var i = 0 ; i < totArray ; i++) { 
     956        var node = nodeArray[i]; 
     957        if (node.className == "highlight" && trim(node.innerHTML) == valorNo ) { 
     958            j++; 
     959            nodeRemove[j] = node.id; 
     960        } 
     961    } 
     962 
     963    //Replace the class of the span tags with highlight and the innerHTML with the new_word 
     964    for (var i = 0 ; i <= j ; i++) { 
     965        ifr.getElementById(nodeRemove[i]).innerHTML = newWord; 
     966        ifr.getElementById(nodeRemove[i]).className = "corrected_word"; 
     967    } 
     968 
     969 
     970    return false; 
     971 
     972 
     973// FIMMMMMMMMMMMMMMMMMMMMMMMMMMMMM 
     974 
     975         //Função antiga - substitui apenas uma palavra 
     976   /*       var ifr= currObj.objToCheck; 
     977         if(ifr.contentWindow) 
     978            ifr=ifr.contentWindow.document; 
     979         else 
     980            ifr=ifr.contentDocument; 
     981 
     982        var valorNo = trim(newWord);         
     983        if(spellingSuggestionsDiv) 
     984        { 
     985 
     986                spellingSuggestionsDiv.style.display = 'none'; 
    745987                spellingSuggestionsDiv.parentNode.removeChild(spellingSuggestionsDiv); 
    746988                spellingSuggestionsDiv = null; 
    747989        } 
    748         document.getElementById(id).className = "corrected_word"; 
     990         
     991        var fake = document.createTextNode(valorNo); 
     992         
     993       var parent =  ifr.getElementById(id).parentNode; 
     994 
     995             
     996       parent.replaceChild(fake, ifr.getElementById(id));  
     997 
     998        return false;*/ 
     999 
     1000             
     1001 
     1002 
    7491003}; // end replaceWord 
    7501004 
     
    7651019function switchText() 
    7661020{ 
    767  
     1021         
    7681022        with(currObj); 
    7691023        //By Nathalie - The Element means that this div belongs to the current tab 
    770         var parentElement = Element(currObj.spellingResultsDiv.id);  
     1024        //var parentElement = Element(currObj.spellingResultsDiv.id); //alterado nathalie 
     1025        var ifr= currObj.objToCheck; 
     1026        if(ifr.contentWindow) 
     1027            ifr=ifr.contentWindow.document; 
     1028        else 
     1029            ifr=ifr.contentDocument; 
     1030        var parentElement =ifr.getElementById(currObj.spellingResultsDiv.id); //alterado nathalie 
    7711031        // Obtain all span tags which have highlight className or corrected_word className 
    772         var nodeArray = parentElement.getElementsByTagName("span"); 
     1032        var nodeArray = ifr.getElementsByTagName("span"); 
    7731033        var totArray = nodeArray.length; 
    7741034        var nodeRemove = new Array(totArray); 
     
    7871047        //Remove span tags which have highlight className or corrected_word className 
    7881048        for (var i = 0 ; i <= j ; i++) { 
    789             var valorNo = document.getElementById(nodeRemove[i]).innerHTML; 
     1049            var valorNo = ifr.getElementById(nodeRemove[i]).innerHTML; 
    7901050            var fake = document.createTextNode(valorNo); 
    791             var parent =  document.getElementById(nodeRemove[i]).parentNode; 
    792             parent.replaceChild(fake, document.getElementById(nodeRemove[i]));             
     1051            var parent =  ifr.getElementById(nodeRemove[i]).parentNode; 
     1052            parent.replaceChild(fake, ifr.getElementById(nodeRemove[i])); 
    7931053        } 
    7941054 
    795        var text = currObj.spellingResultsDiv.innerHTML; 
     1055        var text = ifr.getElementById(currObj.spellingResultsDiv.id).innerHTML; 
    7961056 
    7971057        text = text.replace(/&nbsp;/gi, " %u2026 "); // Replace &nbsp; with the code %u2026 
     
    8161076function switchText_cb(new_string) 
    8171077{ 
    818      
    819         with(currObj); 
     1078 
     1079 
     1080//adicionado Paula 
     1081    with(currObj); 
    8201082 
    8211083        new_string = new_string.replace(/ %u2026/gi, "&nbsp;"); // Replace the code %u2026 with &nbsp; 
     
    8341096            ifr=ifr.contentDocument; 
    8351097         var texto = ifr.body.innerHTML; 
    836       
     1098 
     1099         ifr.body.innerHTM = ""; //adicionado nathalie 
    8371100         ifr.body.innerHTML = new_string; 
     1101         currObj.spellingResultsDiv = null; //adicionado nathalie 
     1102 
     1103          
     1104 
    8381105        currObj.objToCheck.disabled = false; 
    8391106         
    840         if(currObj.spellingResultsDiv) 
    841         { 
    842                 currObj.spellingResultsDiv.parentNode.removeChild(currObj.spellingResultsDiv); 
     1107        //Removido Nathalie 
     1108        /*if(currObj.spellingResultsDiv) 
     1109        { 
     1110                ifr.removeChild(currObj.spellingResultsDiv); //Alterado nathalie 
    8431111                currObj.spellingResultsDiv = null; 
    844         } 
     1112        }*/ 
    8451113        currObj.objToCheck.style.display = "block"; 
    8461114        currObj.resetAction(); 
     
    8841152        { 
    8851153                 
    886                 spellingSuggestionsDiv.id.parentNode.removeChild(spellingSuggestionsDiv);  
     1154                spellingSuggestionsDiv.parentNode.removeChild(spellingSuggestionsDiv);  
    8871155                spellingSuggestionsDiv = null; 
    8881156        } 
     
    9001168function resetAction() 
    9011169{ 
     1170 
     1171//adicionado Paula 
    9021172        with(currObj); 
    9031173        /*if(currObj.config['useIcons']) 
     
    9251195function resetSpellChecker() 
    9261196{ 
    927     
    928         with(currObj); 
     1197         
     1198        //adicionado nathalie 
     1199        var ifr= currObj.objToCheck; 
     1200         if(ifr.contentWindow) 
     1201            ifr=ifr.contentWindow.document; 
     1202         else 
     1203            ifr=ifr.contentDocument; 
     1204 
     1205 
     1206        with(currObj); 
    9291207        currObj.resetAction(); 
    9301208         
     
    9351213        if(currObj.spellingResultsDiv) 
    9361214        { 
    937                 currObj.spellingResultsDiv.parentNode.removeChild(currObj.spellingResultsDiv); 
     1215                ifr.removeChild(currObj.spellingResultsDiv); //alterado nathalie 
    9381216                currObj.spellingResultsDiv = null; 
    9391217        } 
     
    9581236 * @return int The X coordinate of the object 
    9591237 *************************************************************/ 
    960 function findPosXById(object) 
    961 { 
    962          
     1238    function findPosXById(object) 
     1239{ 
     1240         
     1241        //adicionado Nathalie 
     1242        var ifr= currObj.objToCheck; 
     1243         if(ifr.contentWindow) 
     1244            ifr=ifr.contentWindow.document; 
     1245         else 
     1246            ifr=ifr.contentDocument; 
     1247        var obj = ifr.getElementById(object); 
     1248 
     1249 
    9631250        var curleft = 0; 
    964         var obj = document.getElementById(object); 
     1251        //var obj = document.getElementById(object); //removido nathalie 
     1252 
     1253 
    9651254        if(obj.offsetParent) 
    9661255        { 
     
    9911280function findPosYById(object) 
    9921281{ 
     1282         
     1283        //adicionado Nathalie 
     1284        var ifr= currObj.objToCheck; 
     1285         if(ifr.contentWindow) 
     1286            ifr=ifr.contentWindow.document; 
     1287         else 
     1288            ifr=ifr.contentDocument; 
     1289        var obj = ifr.getElementById(object); //removido Nathalie 
     1290 
    9931291     
    9941292        var curtop = 0;var curtop = 0; 
    995         var obj = document.getElementById(object); 
     1293        //var obj = document.getElementById(object); //removido Nathalie 
    9961294        if(obj.offsetParent) 
    9971295        { 
Note: See TracChangeset for help on using the changeset viewer.