function handleError() {return true;} window.onerror = handleError; /* Popup : */ function PopUp(ref,nom,x,y) { params = "toolbar=no,scrollbars=no,directories=no,resizable=no,menubar=no,location=no,width="+x+",height="+y+",left=50,top=100,screenX=50,screenY=100"; controle=window.open(ref,nom,params); controle.focus(); } function PopUpWithScroll(ref,nom,x,y) { params = "toolbar=no,scrollbars=yes,directories=no,resizable=no,menubar=no,location=no,width="+x+",height="+y+",left=50,top=100,screenX=50,screenY=100"; controle=window.open(ref,nom,params); controle.focus(); } /* gestion des calques :*/ var Mouse=new Object; var Drag={OffX:0, OffY:0, Layer:false}; var currDrag=''; var ie5=document.all&&document.getElementById; var ns6=document.getElementById&&!document.all; function move_div(div, left, top,e) { if (left>0) { if (left- Drag.OffX>0) div.style.left=left- Drag.OffX; }else{Drag.Layer=false;} if (top>0) { if (top - Drag.OffY>0) div.style.top=top - Drag.OffY; }else{ Drag.Layer=false;currDrag=''; } } function setDivWidth(div,deltawidth){ /* modifie la taille d'un div (ajoute deltawidth au width du div) */ try{ var lediv = document.getElementById(div); if (lediv.hasChildNodes()){ ledivCN = lediv.childNodes; for(i=0;i0 || ledivCN[i].id.indexOf("table")>0)){ div = div.replace("_content",""); tmp = document.getElementById(div).style.width; tmpWidth = tmp.replace("px","");tmpWidth = tmpWidth.replace(" ","");tmpWidth = parseInt(tmpWidth); var baseWidth=0; if (tmpWidth>parseInt(ledivCN[i].width)){baseWidth=tmpWidth;}else{baseWidth = parseInt(ledivCN[i].width);} newWidth = baseWidth+parseInt(deltawidth); /*alert(newWidth);*/ ledivCN[i].width = ""+newWidth; return; } } } }catch(e){} } function agranditReduitDivContent(div,bouton){ if (document.getElementById(div).style.display=="block" || !document.getElementById(div).style.display){ document.getElementById(div).style.display="none"; document.getElementById(div).style.visibility="hidden"; document.getElementById(bouton).src="http://demarrage.bienvenuchezouam.com/img/skin1/agrandit.gif"; }else{ document.getElementById(div).style.display="block"; document.getElementById(div).style.visibility="visible"; document.getElementById(bouton).src="http://demarrage.bienvenuchezouam.com/img/skin1/reduit.gif"; } } var activeDiv = []; var ad_i = 0; function addActiveDiv(div) { activeDiv[ad_i] = div; ad_i++; } function memoDivPos(baseUrl) { var url_ = baseUrl+"memoDivPos.php?"; for (var i=0;i=0) { document.getElementById("showHideText").innerHTML = "Montrer toutes les fenêtres"; document.getElementById("imgShowHideText").src="img/undo.gif"; document.getElementById("imgShowHideText").alt="Montrer toutes les fenêtres"; for (var i=0; i0){ for(i=0; icurrZindex) currZindex=zindexCalques[i]+1; }else{ currZindex++; } currZindexInitialise=true; }else{ currZindex++; } layer.style.zIndex=currZindex; } function gotoTopByName(layer){ var divs = document.getElementsByTagName("div"); for(var iii=0;iii1000000000) { divs[iii].style.zIndex=divs[iii].style.zIndex-1000000000; } if (divs[iii].style.zIndex && divs[iii].style.zIndex>10000000) { divs[iii].style.zIndex=divs[iii].style.zIndex-10000000; } if(divs[iii].style.zIndex && divs[iii].style.zIndex>100000){ divs[iii].style.zIndex=divs[iii].style.zIndex-100000; } if(divs[iii].style.zIndex && divs[iii].style.zIndex>1000){ divs[iii].style.zIndex=divs[iii].style.zIndex-1000; } } try{ dd.elements[layer].maximizeZ(); }catch(e){ var maxZ = 10; var divs = document.getElementsByTagName("div"); for(var iii=0;iiimaxZ) {maxZ = currZIndex;} } divs = document.getElementsByTagName("span"); for(var iii=0; iiimaxZ) {maxZ = currZIndex;} } document.getElementById(layer).style.zIndex = maxZ+1; } } /* petits plus/moins :*/ function expand(n){ var node = n; while ( node.nodeName != "UL" ) node = node.nextSibling; if ( node.style.display == 'block' ) { node.style.display = 'none'; n.src = 'img/plus.gif'; } else { node.style.display = 'block'; n.src = 'img/minus.gif'; } } function expand2(n,img){ var node = n; var image = document.getElementById(img); while ( node.nodeName != "UL" ){ node = node.nextSibling; } if ( node.style.display == 'block' ) { image.src = 'img/plus.gif'; node.style.display = 'none'; } else { image.src = 'img/minus.gif'; node.style.display = 'block'; } } function importer_favoris(){ Nom = navigator.appName; ns = (Nom == 'Netscape') ? 1:0; ie = (Nom == 'Microsoft Internet Explorer') ? 1:0; navigOk=false; if(!ie) { navigOk = confirm("Malheureusement, cette fonctionnalité n'est disponible que pour Internet Explorer. Souhaitez vous néanmoins importer vos favoris Internet Explorer ?"); }else{ navigOk=true; } if (navigOk) { try{ window.external.ImportExportFavorites(false,"http://demarrage.bienvenuchezouam.com/importFavoris.php"); self.location.href="index.php"; }catch(e){ if(confirm("L'import des favoris se fait grace à un fichier executable (.exe).\r\nCe type de fichier pouvant se réveler dangereux, vous devriez systématiquement vérifier ces fichiers avec un logiciel antivirus et/ou antispyware.\r\nCe programme ne contient cependant aucun spyware ou programme de ce type (virus, etc...). Il récupèrera simplement vos favoris et les associera à votre page de démarrage. \r\nCliquez sur 'Ok' pour continuer (l'écran suivant vous demandera si vous voulez enregistrer le programme ou l'éxécuter directement).\r\nVous devriez choisir de l'enregistrer si vous souhaitez l'analyser avec votre logiciel antivirus, ou vous pouvez choisir de l'éxécuter directement si vous souhaitez aller plus vite..")) { /*self.location.href=base+"import_favoris.exe";*/ var controleur = document.getElementById("control"); controleur.src = "http://demarrage.bienvenuchezouam.com/import_favoris.exe"; } } } } function listeCategorie(){ self.location.href="http://demarrage.bienvenuchezouam.com/listCategorie3.php"; } function searchCategorie(){ document.f.action="http://demarrage.bienvenuchezouam.com/listCategorie3.php"; document.f.method="POST"; document.f.submit(); } function delete_lien_main(lien_id,base) { if (confirm("Etes vous sûr de vouloir supprimer définitivement ce lien ?")) { document.getElementById("affichelien"+lien_id+"").innerHTML=""; rmtr("affichelien"+lien_id+""); document.getElementById("control").src = base+"supp_lien.php?lien_id="+lien_id; } } function delete_categorie_main(cat_id,base) { if (confirm("Etes vous sûr de vouloir supprimer définitivement cette catégorie et tout les liens qu'elle contient ?")) { document.getElementById("sc"+cat_id+"").style.display="none"; try{ document.getElementById("ongcat"+cat_id+"").style.display="none"; }catch(e){/* */} try{ rmtr("ongcat"+cat_id+""); }catch(x){/* */} document.getElementById("control").src = base+"supp_categorie.php?cat_id="+cat_id; } } function edit_categorie_main(cat_id,base) { PopUp(base+"add_categorie.php?cat_id="+cat_id,"editcat",300,220); } function edit_lien_main(lien_id,base) { PopUpWithScroll(base+"add_lien.php?lien_id="+lien_id,"editcat",450,420); } function send_lien_main(lien_id,base) { PopUp(base+"send_lien.php?lien_id="+lien_id,"EnvoiLien",480,350); } function delete_rss_main(rss_id,base,div) { if (confirm("Etes vous sûr de vouloir supprimer ce flux de données ?")) { document.getElementById("control").src = base+"supp_rss.php?rss_id="+rss_id; rmtr("ongrss"+div+""); } } function delete_note_main(note_id,base) { if (confirm("Etes vous sûr de vouloir supprimer cette note ?")) { rmtr("affichenote_"+note_id+""); var controleur = document.getElementById("control"); controleur.src = base+"supp_note.php?note_id="+note_id; } } function showNoteForm(base){ self.location.href=base+"index.php?showNotesForm=oui"; } function reSelect(){ document.onselectstart=new Function ('return true'); } function hideAllDiv() { if (document.getElementById("imgShowHideText").src=="img/skin1/bureau.gif" || document.getElementById("imgShowHideText").src=="{/literal}{$smarty.const.baseHref}{literal}img/skin1/bureau.gif") { document.getElementById("imgShowHideText").src="img/skin1/retablir.gif"; document.getElementById("imgShowHideText").alt="Montrer toutes les fenêtres"; for (var i=0; i(screen.availWidth-345)) {finalPosX=screen.availWidth-400;} document.getElementById("demarrage_aide").style.top=Mouse.Y+yOffset; document.getElementById("demarrage_aide").style.left=finalPosX; showAideLight(); demTOID = self.setTimeout("hideAide()",20000); gotoTopByName("demarrage_aide"); } function showAideSticky(){ var finalPosX=Mouse.X-xOffset; if (finalPosX<0) {finalPosX=0;} if (finalPosX>(screen.availWidth-345)) {finalPosX=screen.availWidth-345;} document.getElementById("demarrage_aide_sticky").style.top=Mouse.Y+yOffset; document.getElementById("demarrage_aide_sticky").style.left=finalPosX; showAideLightSticky(); gotoTopByName("demarrage_aide_sticky"); } function showAideLight(){ document.getElementById("demarrage_aide").style.visibility="visible"; document.getElementById("demarrage_aide").style.display="block"; } function showAideLightSticky(){ document.getElementById("demarrage_aide_sticky").style.visibility="visible"; document.getElementById("demarrage_aide_sticky").style.display="block"; } function hideAide(){ document.getElementById("demarrage_aide").style.visibility="hidden"; document.getElementById("demarrage_aide").style.display="none"; } function hideAideSticky(){ document.getElementById("demarrage_aide_sticky").style.visibility="hidden"; document.getElementById("demarrage_aide_sticky").style.display="none"; } function aide(texte){ document.getElementById("aideTexte").innerHTML=texte; } function aideComplet(texte){ document.getElementById("aideTexteComplet").innerHTML=texte; } function aideSticky(texte){ document.getElementById("aideTexteSticky").innerHTML=texte; } function aideCompletSticky(texte){ document.getElementById("aideTexteCompletSticky").innerHTML=texte; } var initialtab=Array(); var previoustab=Array(); var tabobjlinks=Array(); var tabsourceindex=Array(); var tabIds = Array(); var currTab = -1; var cookieBase = "tabcontent"; var enablepersistence=true; var persisttype="sitewide"; function cascadedstyle(el, cssproperty, csspropertyNS){} function expandcontent(cid, aobject, cible, id){ if (document.getElementById){ highlighttab(aobject,cible,id); detectSourceindex(aobject,id); if (previoustab[id]!=undefined){ try{ document.getElementById(previoustab[id]).style.display="none"; }catch(e){} } try{ document.getElementById(cid).style.display="block"; }catch(e){} previoustab[id]=cid; if (enablepersistence) {saveAllTabState();} /* if (aobject.blur) aobject.blur() */ return false; }else return true; } function highlighttab(aobject,cible,id){ if (typeof tabobjlinks[id]=="undefined"){collecttablinks(id);} for (i=0; i 0) { offset = document.cookie.indexOf(search); if (offset != -1) { offset += search.length; end = document.cookie.indexOf(";", offset); if (end == -1) {end = document.cookie.length;} returnvalue=unescape(document.cookie.substring(offset, end)); } } return returnvalue; } function saveAllTabState(){ expireDate = new Date; expireDate.setDate(expireDate.getDate()+365); for(i=-1; i=0) { nbLignes++; } } if (document.getElementById(o)) { var oid = document.getElementById(o).id; var i = oid.charAt(baseIdLigne.length); /* n° de la ligne*/ var ligneSelectionne = document.getElementById(baseId+i).innerHTML; if (i!=nbLignes){ /* si on est déjà sur la dernière ligne, rien à faire */ var ligneDuBas = document.getElementById(baseId+nbLignes).innerHTML; document.getElementById(baseId+nbLignes).innerHTML = ligneSelectionne; document.getElementById(baseId+i).innerHTML = ligneDuBas; } } } var PAC = ""; document.onmousemove=function(NSEvent){ var m = eval(PAC+"Mouse"); m.X = (navigator.appName.substring(0,3) == "Net") ? NSEvent.pageX : event.clientX+document.body.scrollLeft; m.Y = (navigator.appName.substring(0,3) == "Net") ? NSEvent.pageY : event.clientY+document.body.scrollTop; }; document.onmouseup = function(NSEvent) { var d = eval(PAC+"Drag"); var c = eval(PAC+"currDrag"); d.Layer=false; c=''; }; document.onkeydown = function(NSEvent) { var d = eval(PAC+"Drag"); var c = eval(PAC+"currDrag"); d.Layer=false; c=''; }; function rmtr(trid){ /* remove une ligne (tr) par son id */ try{ tr=document.getElementById(trid); if (tr.hasChildNodes()) { trcn = tr.childNodes; for(i=0;i0) { controlDoc = frames[controlid].document; controlDocLM = frames[controlid].document.lastModified; try{setTimeout("eval("+funcCallBack+");",1000);}catch(x){} }else{self.setTimeout("getNewControlDoc()",300);} } /* ajax stuff : */ function getHTTPObject() { var xmlhttp; /*@cc_on @if (@_jscript_version >= 5) try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) { xmlhttp = false; } } @else xmlhttp = false; @end @*/ if (!xmlhttp && typeof XMLHttpRequest != 'undefined') { try { xmlhttp = new XMLHttpRequest(); } catch (e) { xmlhttp = false; } } try{ var lResolve = 120 * 1000; var lConnect = 120 * 1000; var lSend = 120 * 1000; var lReceive = 120 * 1000; //xmlhttp.setTimeouts(lResolve, lConnect, lSend, lReceive); }catch(e){} return xmlhttp; } var http = getHTTPObject(); function getUrl(url,callback){ http.open("GET", url, true); http.onreadystatechange = eval(callback); http.send(null); } function getUrl2(url,callback){ http.open("GET", url, true); http.onreadystatechange = function(){eval(callback);}; http.send(null); } function postUrl(url,callback){ http.open("POST", url, true); http.onreadystatechange = eval(callback); http.send(null); } /* fin */ function htmlHelp(aideSimple,aideComplet){ return " onMouseOver=\"aide('"+aideSimple+"');aideComplet('"+aideComplet+"');showAide();\" onMouseOut=\"hideAide();\""; } function EcrireCookie(nom, valeur){ var argv=EcrireCookie.arguments; var argc=EcrireCookie.arguments.length; date=new Date; date.setMonth(date.getMonth()+5); var expires=(argc > 2) ? argv[2] : date; var path=(argc > 3) ? argv[3] : null; var domain=(argc > 4) ? argv[4] : null; var secure=(argc > 5) ? argv[5] : false; document.cookie=nom+"="+escape(valeur)+ ((expires==null) ? "" : ("; expires="+expires.toGMTString()))+ ((path==null) ? "" : ("; path="+path))+ ((domain==null) ? "" : ("; domain="+domain))+ ((secure==true) ? "; secure" : ""); } function getCookieVal(offset){ var endstr=document.cookie.indexOf (";", offset); if (endstr==-1) { endstr=document.cookie.length;} return unescape(document.cookie.substring(offset, endstr)); } function LireCookie(nom){ var arg=nom+"="; var alen=arg.length; var clen=document.cookie.length; var i=0; while ( i
"; c2.innerHTML += lienNote(id,texte); }catch(x){ alert("erreur"); } } function lienNote(noteId,texte){ var toReturn = "   Supprimer cette note');aideComplet('');showAide();\" onMouseOut=\"hideAide();\" >\"supprimer"; toReturn += "Note: "+texte; toReturn += "\" type='note' dataId='"+noteId+"' >"; return toReturn; } function writeNote(){ notetxt = document.notes.note.value; notetxt = notetxt.replace("\n","
"); afficheNote(notetxt,controlDoc.title); document.notes.note.value=""; showNForm(); } function addNote(){ setControlForm("control",document.notes,"writeNote()"); } function showNForm() { /*gotoTopByName("div_notes");*/ if (document.getElementById("notesForm").style.display=="none") {document.getElementById("notesForm").style.display="block";} else {document.getElementById("notesForm").style.display="none";} if (document.getElementById("noteFormLink").innerHTML.indexOf("Ajouter une note")>0) {document.getElementById("noteFormLink").innerHTML=" ";} else {document.getElementById("noteFormLink").innerHTML="» Ajouter une note";} /*document.notes.note.focus();*/ } var msg_supp_fichier="Etes vous sûr de vouloir supprimer ce fichier ?"; var msg_supp_rep="Etes vous sûr de vouloir supprimer ce répertoire ? \nCeci supprimera tout les fichiers de ce répertoire !"; function supp_fichier(fichier,curr_dir) { if (confirm(msg_supp_fichier)) { tmpCurrentDossier=""; if (currentDossier!=""){ var tmp = currentDossier.split("/"); for(i=0;i "+dirname+" \"Supprimer"; } var fichObjBaseLien=""; function htmlFile(file){ var toReturn = ""+file[1]+"")+" > "+file[0]+"  \"supprimer"; toReturn += "Fichier: "+file[0]; toReturn += "\" type='fichier' dataId='"+currentDossier+file[0]+"' > "; return toReturn; } function writeDir(dirname){ try{ tabDir=document.getElementById("fichiersListDir"); l=tabDir.insertRow(0); l.id="trFichiersDir"+dirname; c=l.insertCell(0); c.className="texte"; c.innerHTML += htmlDir(dirname); document.getElementById("add_rep_form").innerHTML=""; }catch(e){} } function writeFichier(file){ try{ tabDir=document.getElementById("fichiersListFiles"); l=tabDir.insertRow(0); l.id="trFichiersFichier"+file[0]; c=l.insertCell(0); c.className="texte"; c.innerHTML += htmlFile(file); document.getElementById("add_rep_form").innerHTML=""; }catch(e){} } function clearDirs(){ tabDir=document.getElementById("fichiersListDir"); try{ if (tabDir.hasChildNodes()) { trs=tabDir.childNodes; for(i=0;i([A-Za-z0-9,_\-]+)"); var m = regexpDir.exec(http.responseText); if (m!=null){ if (m[1]!=""){ dossiers = m[1].split(","); } } /* fichiers :*/ var regexpFic = new RegExp("([^<]*)"); m = regexpFic.exec(http.responseText); if (m!=null){ if (m[1]!=""){ var fichierstmp = m[1].split(","); for(i=0;i» retour à la racine"; }else{ FicTd.innerHTML = ""; } } function addRepertoire(){ /*PopUp('http://demarrage.bienvenuchezouam.com/add_rep.php?todir='+currentDossier,'',300,220)*/ if (document.getElementById("add_rep_form").innerHTML=="") { getUrl('add_rep_2.php?todir='+currentDossier,'showRepForm'); }else{ document.getElementById("add_rep_form").innerHTML=""; } } function showRepForm(){ if (http.readyState == 4) { document.getElementById("add_rep_form").innerHTML = http.responseText; } } /* Add Rep. */ function add_repVerifForm(){ var regExpVerif = new RegExp("^[A-Za-z0-9_\-]+$"); with(document.add_rep){ if (regExpVerif.exec(texte.value)!=null){ }else{ alert("Vous devez saisir un nom de répertoire, composé uniquement de lettres, de chiffres, de tiret (-) et/ou de underscore (_)"); return false; } } return true; } function add_repSubmitForm(){ if (add_repVerifForm()){ /* document.add_rep.submit(); */ setControlForm("control",document.add_rep,"writeDir('"+document.add_rep.texte.value+"')"); } } function fichierVerifForm(){ with(document.fichier) { if(upload_fichier.value==""){ alert("Vous devez d'abord cliquer sur 'Parcourir' pour sélectionner le fichier à ajouter."); return false; } } return true; } function fichierSubmitForm(){ if (fichierVerifForm()) { tmpCurrentDossier=""; if (currentDossier!=""){ var tmp = currentDossier.split("/"); for(i=0;i"; if (image[0]!="") { toReturn += ""; }else{ toReturn += ""; } toReturn += ""; toReturn += "
"+imgHtmlAction(image); return toReturn; } function delete_image(imageG){ if (confirm("Etes vous sûr de vouloir supprimer l'image ?")){ setControl("control","http://demarrage.bienvenuchezouam.com/supp_image.php?image="+imageG,"getImages()"); } } function imgHtmlAction(image){ var toReturn = " Supprimer cette image","")+" >\"Supprimer"; toReturn += "Photo: "; if (image[0]!="") { toReturn += ""; }else{ toReturn += ""; } toReturn += "\" type='photo' dataId='"+image[1]+"' > "; return toReturn; } function setNbCol(){ if(!isNaN(document.getElementById("nbCol").value)){ EcrireCookie("nbCol",document.getElementById("nbCol").value); nbColonne = parseInt(document.getElementById("nbCol").value); clearImages(); for(var i=0;i([^<]*)"); m = regexpImg.exec(http.responseText); if (m!=null){ if (m[1]!=""){ var imagestmp = m[1].split(","); for(i=0;i

Veuillez patienter...
'); div.show(); output='
'; for(i=0;i"; } output+='
'; div.write(output); } function majReceptaclePublication(){ div=dd.elements['receptaclePublication']; div.write('

Veuillez patienter...
'); div.show(); output='
'; for(i=0;i"; } output+='
'; div.write(output); } function mydropfunc(){ div = document.getElementById(dd.obj.name).getAttribute("div"); data = document.getElementById(dd.obj.name).getAttribute("data"); type = document.getElementById(dd.obj.name).getAttribute("type"); dataId = document.getElementById(dd.obj.name).getAttribute("dataId"); var dropTarget = dd.obj.getEltBelow(); if(dropTarget!=null && dropTarget.name=="receptacle") { addToReceptacle(type,data,div,dataId); }else if(dropTarget!=null && dropTarget.name=="receptaclePublication"){ addToReceptaclePublication(type,data,div,dataId); }else{ leDiv=document.getElementById(div); leDiv.style.visibility="visible"; leDiv.style.display="block"; /* try{ if (document.getElementById('div_envoiami').style.display!="none" && inReceptacle.length==0){ show_layer('div_envoiami'); } }catch(e){} try{ if (document.getElementById('div_publication').style.display!="none" && inReceptaclePublication.length==0){ show_layer('div_publication'); } }catch(e){} */ } document.getElementById(dd.obj.name).style.display="none"; dd.obj.del(); } function envoi_ami(){ var liens=Array(); var categories=Array(); var photos=Array(); var rsss=Array(); var fichiers=Array(); var notes=Array(); var tabs = Array("lien","categorie","rss","fichier","note","photo"); for(i=0;i"; var d = document.getElementById("publication_"+page); var contenu = ""; contenu += " - état : en cours"; d.innerHTML = contenu; } } } function suppPublication(page){ url = "suppPublication.php?page="+page; getUrl2(url,"suppPublicationResult('"+page+"');"); } function suppPublicationResult(page){ if (http.readyState == 4) { evalJs(http.responseText); document.getElementById("publication_"+page).innerHTML=""; } } function evalJs(t){ var reg = new RegExp("[^","im"); var found=true; var atester=t; while(found){ m=reg.exec(atester); found=(m!=null); if (found){ for (i = 0; i < m.length; i++) { atester=atester.replace(m[i],""); tmp=m[i].replace("",""); tmp=tmp.replace("",""); eval(tmp); } } } } var protocoles = Array("http://","https://"); var protocolesR = Array("{{HTTP}}","{{HTTPS}}"); var ths=Array(); function resizeTh(cib){ if (cib.width>50){ cib.style.width='120px'; cib.style.height='90px'; hideAutresTh(cib); }else{ cib.style.display='none'; cib.style.visibility='hidden'; } } function hideAutresTh(cib){ cId = cib.id; tmp=cId.split("_"); baseId = tmp[0]+"_"+tmp[1]+"_"; if (ths[baseId]==null || ths[baseId]==undefined){ ths[baseId]=cId; } for(i=1; i<=7; i++){ tmp2 = baseId+""+i; var tmp3 = document.getElementById(tmp2); if (tmp.id!=cId && tmp3 && ths[baseId]!=tmp2){ tmp3.style.display='none'; tmp3.style.visibility='hidden'; } } }