
//------------ propre au site -------------------------------------------------------------------------------

function siteNameDotCom()
{
  $s = "psychoechange.com";  
  return $s;
}


function phraseCharte()
{
        return "Les informations publiées dans le forum ne sont en aucun cas susceptibles de se substituer à une consultation ou à un diagnostic d'un professionnel (médecin, psychologue, sexologue,…)";
}

function openPopupDebate(link,rd){
        window.open(link,'psychologiedebate'+rd,'toolbar=no,location=no,locationbar=no,directories=no,status=yes,statusbar=yes,top=no,personalbar=no,pathname=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,height=650,width=850')
}

function boutonsGauchesHTML() { // must be different from the CGI script because of the relative paths

        // value of environment variable
        var sub_path = findsubpath();

           document.write("<table width='122'  border='0' cellspacing='0' cellpadding='0'>");
                     document.write("<tr>");
                              document.write("<td width='16%' align='left' valign='top' background='/images/xl/xl_pilier_gau.jpg'>");

                        document.write("<table width='122' border='0' cellpadding='0' cellspacing='0'>");
                          document.write("<tr>");
                            document.write("<td height='223' colspan='4' align='left' valign='top'><img src='/images/xl/xl_cg_bt_forum.jpg' width='156' height='223' border='0' usemap='#MapG'></td>");
                          document.write("</tr>");
                        document.write("</table>");

                        document.write("<table width='118' border='0' cellspacing='0' cellpadding='0'>");
                          document.write("<tr>");
                                document.write("<td colspan='3' align='right' valign='bottom' background='/images/xl/xl_cg_arti_under.jpg'><a href='/articles.htm'><img src='/images/xl/xl_cg_arti_fix.gif' width='118' height='99' border='0'></a></td>");
                          document.write("</tr>");
                          document.write("<tr>");
                                document.write("<td colspan='3' align='right' valign='top' background='/images/xl/xl_cg_fond_tit.jpg'><img src='/images/xl/xl_cg_titres.gif' width='118' height='851' border='0' usemap='#MapG2'></td>");
                          document.write("</tr>");
                          document.write("<tr>"); 
                                document.write("<td colspan='3' background='/images/xl/xl_cg_chat_under.jpg'><a href='http://connexion.asterochat.com/?id=43498' target='_blank'><img src='/images/xl/xl_cg_chatover.gif' width='118' height='75' border='0'></a></td>");
                          document.write("</tr>");

                          document.write("<tr align='left' valign='top' background='/images/xl/xl_cg_tv_under.gif'>");
                            document.write("<td colspan='3' background='/images/xl/xl_cg_tv_under.gif'><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='104' height='58'>");

                                        // TV France 2
                                        if (sub_path == 'membres') // (moderation directory)
                                        {
                                          document.write("<param name='movie' value='/images/xl/tv_fr2_neutre_membres.swf'>");
                                        }
                                        else {
                                          document.write("<param name='movie' value='/images/xl/tv_fr2_public.swf'>");
                                        }

                                          document.write("<param name='quality' value='high'>");

                                        if (sub_path == 'membres') // (moderation directory)
                                        {
                                          document.write("<embed src='/images/xl/tv_fr2_neutre_membres.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='104' height='58'></embed>");
                                        }
                                        else {
                                          document.write("<embed src='/images/xl/tv_fr2_public.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='104' height='58'></embed>");
                                        }

                                        document.write("</object></td>");

                                        document.write("</tr>");

                                              // entretoise entre les 2 TVs
                                        document.write("<tr><td colspan='3' background='/images/xl/xl_cg_entr_2TV.gif' width='80' height='13'></td></tr>");

                                        // TV psy
                                              document.write("<tr align='left' valign='top' background='/images/xl/xl_cg_tv_under.gif'>");

                                        document.write("<td colspan='3' background='/images/xl/xl_cg_tv_under.gif'><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='104' height='58'>");

                                        if (sub_path == 'membres') // (moderation directory)
                                        {
                                          document.write("<param name='movie' value='/images/xl/tv_PSY_membres.swf'>");
                                        }
                                        else {
                                          document.write("<param name='movie' value='/images/xl/tv_PSY_visiteurs.swf'>");
                                        }

                                          document.write("<param name='quality' value='high'>");

                                        if (sub_path == 'membres') // (moderation directory)
                                        {
                                          document.write("<embed src='/images/xl/tv_PSY_membres.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='104' height='58'></embed>");
                                        }
                                        else {
                                          document.write("<embed src='/images/xl/tv_PSY_visiteurs.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='104' height='58'></embed>");
                                        }

                            document.write("</object></td>");
                          document.write("</tr>");
                          document.write("<tr align='left'>");
                            document.write("<td colspan='3' valign='top'><img src='/images/xl/xl_cg_tab_haut.jpg' width='118' height='120'></td>");
                          document.write("</tr>");
                          document.write("<tr>");
                            document.write("<td width='21' align='left' valign='top'><img src='/images/xl/xl_cg_tab_gau.jpg' width='21' height='114'></td>");
                            document.write("<td width='70' align='left' valign='top'><a href='livre-comment-faire-amour-homme.html'><img src='/images/livre_moment/livre_pt_faire_amour.gif' width='70' height='114' border='0'></a></td>");
                            document.write("<td width='27' align='left' valign='top'><img src='/images/xl/xl_cg_tab_droi.jpg' width='27' height='114'></td>");
                          document.write("</tr>");
                          document.write("<tr align='left' valign='top'>");
                            document.write("<td colspan='3'><img src='/images/xl/xl_cg_tab_bas.jpg' width='118' height='14'></td>");
                          document.write("</tr>");
                        document.write("</table>");


                                document.write("<map name='MapG'>");
                                  document.write("<area shape='poly' coords='33,194,7,194,7,74,72,63,106,82,103,155,109,180,41,212' href='forum-psychologie.php?tri=chrono'>");
                                document.write("</map>");
                                document.write("<map name='MapG2'>");
                                        document.write("<area shape='rect' coords='2,17,115,46' href='psycho-amour-1-0.html'>");  
                                        document.write("<area shape='rect' coords='2,47,115,75' href='psycho-sexe-1-0.html'>");  
                                        document.write("<area shape='rect' coords='2,76,115,107' href='psycho-questions.honteuses-1-0.html'>");  
                                        document.write("<area shape='rect' coords='2,108,115,138' href='psycho-amitie-1-0.html'>");  
                                        document.write("<area shape='rect' coords='2,139,115,167' href='psycho-psy.public-1-0.html'>");  
                                        document.write("<area shape='rect' coords='2,168,115,197' href='psycho-homme-1-0.html'>");  
                                        document.write("<area shape='rect' coords='2,198,115,225' href='psycho-femme-1-0.html'>");  
                                        document.write("<area shape='rect' coords='2,226,115,268' href='psycho-religion-1-0.html'>");  
                                        document.write("<area shape='rect' coords='2,269,115,296' href='psycho-actualites-1-0.html'>");  
                                        document.write("<area shape='rect' coords='2,297,115,326' href='psycho-questions.eternelles-1-0.html'>");  
                                        document.write("<area shape='rect' coords='2,327,115,356' href='psycho-questions.ouvertes-1-0.html'>");  
                                        document.write("<area shape='rect' coords='2,357,115,383' href='psycho-mort-1-0.html'>");  
                                        document.write("<area shape='rect' coords='2,384,115,415' href='psycho-reves-1-0.html'>");  
                                        document.write("<area shape='rect' coords='2,416,115,443' href='psycho-coup.de.coeur-1-0.html'>");  
                                        document.write("<area shape='rect' coords='2,444,115,475' href='psycho-coup.de.gueule-1-0.html'>");  
                                        document.write("<area shape='rect' coords='2,476,115,507' href='psycho-peur-1-0.html'>");  
                                        document.write("<area shape='rect' coords='2,508,115,536' href='psycho-frustrations-1-0.html'>");  
                                        document.write("<area shape='rect' coords='2,537,115,565' href='psycho-famille-1-0.html'>");  
                                        document.write("<area shape='rect' coords='2,566,115,592' href='psycho-travail-1-0.html'>");  
                                        document.write("<area shape='rect' coords='2,593,115,618' href='psycho-sante-1-0.html'>");  
                                        document.write("<area shape='rect' coords='2,619,115,646' href='psycho-fantasmes-1-0.html'>");  
                                        document.write("<area shape='rect' coords='2,647,115,673' href='psycho-drague-1-0.html'>");  
                                        document.write("<area shape='rect' coords='2,674,115,700' href='psycho-livres-1-0.html'>");  
                                        document.write("<area shape='rect' coords='2,701,115,727' href='psycho-blog-1-0.html'>");  
                                        document.write("<area shape='rect' coords='2,728,115,754' href='psycho-sondages-1-0.html'>");  
                                        document.write("<area shape='rect' coords='2,755,115,782' href='psycho-divers-1-0.html'>");  
                                        document.write("<area shape='rect' coords='2,783,115,811' href='tops-questions-personnelles.html'>");
                                        document.write("<area shape='rect' coords='2,812,115,844' href='psycho-poubelle-1-0.html'>");
                                document.write("</map>");


                        document.write("</td>");
                document.write("</tr>");
        document.write("</table>");

}

function boutonsDroitsHTML() {

        document.write("<table width='109' border='0' cellpadding='0' cellspacing='0'>");
              document.write("<tr>");
                document.write("<td height='80' align='left' valign='top'><img src='/images/xl/xl_cd_tabhaut.jpg' width='156' height='80'></td>");
              document.write("</tr>");
              document.write("<tr>");
                document.write("<td height='70' align='left' valign='top'>");
                        document.write("<table width='136' border='0' cellspacing='0' cellpadding='0'>");
                          document.write("<tr>");
                            document.write("<td><img src='/images/xl/xl_cd_tabgau.gif' width='60' height='70'></td>");
                            document.write("<td>");
                                document.write("<img src='/categ_accueil.jpg' width='62' height='70'>");
                            document.write("</td>");
                            document.write("<td><img src='/images/xl/xl_cd_tabdroit.jpg' width='34' height='70'></td>");
                          document.write("</tr>");
                        document.write("</table>");
                document.write("</td>");
              document.write("</tr>");
              document.write("<tr align='left' valign='top'>");
                document.write("<td>");
                        document.write("<table width='156' border='0' cellspacing='0' cellpadding='0'>");
                          document.write("<tr>");
                            document.write("<td width='48' align='left' valign='top'><img src='/images/xl/xl_cd_tabbas_dev.gif' width='48' height='203'></td>");
                            document.write("<td width='108' align='left' valign='top'><img src='/images/xl/xl_cd_tabbas.jpg' width='108' height='203' border='0' usemap='#Map2'></td>");
                          document.write("</tr>");
                        document.write("</table>");
                document.write("</td>");
              document.write("</tr>");
              document.write("<tr valign='top' background='/images/xl/xl_cd_frame.gif'>");
                document.write("<td>");
                  document.write("<form name='form_club' method='post' action='club-entree-check.php' style='margin:0px;padding:0px'>");
                    document.write("<table width='108' border='0' cellspacing='0' cellpadding='0'>");
                      document.write("<tr>");
                        document.write("<td colspan='2' valign='top'>");
                          document.write("<table width='108' border='0' cellspacing='0' cellpadding='0'>");
                            document.write("<tr>");
                              document.write("<td width='10' background='/images/frame/xl_cd_ident1.gif'><img src='/images/frame/xl_cd_ident1.gif' width='50' height='39'></td>");
                              document.write("<td width='98' align='left' valign='top' background='/images/frame/xl_cd_identsous1.jpg'><input type='text' name='pseudo' size='6' maxlength='40'></td>");
                            document.write("</tr>");
                            document.write("<tr>");
                              document.write("<td valign='top' align='right'><img src='/images/frame/xl_cd_ident2.jpg' height='63'></td>");
                              document.write("<td align='left' valign='top' background='/images/frame/xl_cd_identsous2.jpg'>");
                                  document.write("<table width='95' height='54' border='0' cellpadding='0' cellspacing='0'>");
                                       document.write("<tr>");
                                            document.write("<td width='57' height='54' align='left' valign='top'><input type='password' name='pwd' size='6' maxlength='30'></td>");
                                            document.write("<td width='36' align='left' valign='top'><input name='submit' type='image' src='/images/frame/xl_cd_rechok.gif' width='23' height='31' border='0'>");
                                                document.write("<input type='hidden' name='submit' value='ok'></td>");
                                       document.write("</tr>");
                                  document.write("</table>");
                              document.write("</td>");
                            document.write("</tr>");
                          document.write("</table>");
                        document.write("</td>");
                      document.write("</tr>");
                    document.write("</table>");
                  document.write("</form>");
                document.write("</td>");
              document.write("</tr>");
              document.write("<tr align='left' valign='top'>");
                document.write("<td>");
                        document.write("<table width='156' border='0' cellspacing='0' cellpadding='0'>");
                          document.write("<tr>");
                            document.write("<td width='48' align='left' valign='top'><img src='/images/xl/xl_cd_3bt_dev.gif' width='48' height='295'></td>");
                            document.write("<td width='108' align='left' valign='top'><img src='/images/xl/xl_cd_3bt.jpg' width='108' height='295' border='0' usemap='#Map3'></td>");
                          document.write("</tr>");
                        document.write("</table>");
                document.write("</td>");
              document.write("</tr>");
              document.write("<tr>");
                document.write("<td>");
                  document.write("<form name='form_club' method='post' action='recherche.php' style='margin:0px;padding:0px'>");
                          document.write("<table width='108' border='0' cellspacing='0' cellpadding='0'>");
                            document.write("<tr>");
                              document.write("<td width='20' valign='top' background='/images/xl/xl_rechgau2_bg.gif'><img src='/images/xl/xl_rechgau2.gif' width='60' height='48'></td>");
                              document.write("<td align='left' valign='top' background='/images/frame/xl_cd_rechsous.jpg'>");
                              document.write("<table width='88' height='52' border='0' cellpadding='0' cellspacing='0'>");
                                  document.write("<tr>");
                                    document.write("<td width='42' align='left' valign='top'><input type='text' name='keyword' size='5' maxlength='300'><input type='hidden' name='categorie' value='toutes'><input type='hidden' name='ref_haut' value='1'></td>");
                                    document.write("<td width='46' align='left' valign='top'><input name='submit' type='image' src='/images/frame/xl_cd_rechok.gif' width='23' height='31' border='0'>");
                                      document.write("<input type='hidden' name='submit' value='ok'>");
                                    document.write("</td>");
                                  document.write("</tr>");
                              document.write("</table></td>");
                            document.write("</tr>");
                         document.write("</table>");
                  document.write("</form>");
                document.write("</td>");
              document.write("</tr>");
        document.write("</table>");

        document.write("<table width='156' border='0' cellspacing='0' cellpadding='0'>");
          document.write("<tr>");
            document.write("<td width='48' align='left' valign='top'><img src='/images/xl/spacer.gif' width='48' height='26'></td>");
            document.write("<td width='108' align='left' valign='top'><img src='/images/xl/xl_cd_multibt_06.jpg' width='108' height='605' border='0' usemap='#Map4'></td>");
          document.write("</tr>");
          document.write("<tr>");
            document.write("<td>&nbsp;</td>");
            document.write("<td align='left' valign='top' background='/images/xl/xl_cd_conseil_under.jpg'><a href='conseils-lecture.html'><img src='/images/xl/xl_cd_conseil_fix.gif' width='108' height='85' border='0'></a></td>");
          document.write("</tr>");
        document.write("</table>");

          document.write("<map name='MapDD3Map'>");
              document.write("<area shape='rect' coords='19,619,87,735' href='contact.html'>");
              document.write("<area shape='rect' coords='11,560,96,595' href='reglement.html'>");
            document.write("</map>");

        document.write("<map name='MapDD'>");
          document.write("<area shape='poly' coords='120,109,57,103,66,36,134,32' href='forum-exprimez-vous.php'>");
        document.write("</map>");

        document.write("<map name='Map'>");
          document.write("<area shape='rect' coords='6,28,92,112' href='#'>");
        document.write("</map>");

        document.write("<map name='Map2'>");
          document.write("<area shape='rect' coords='3,30,92,112' href='forum-exprimez-vous.php'>");
        document.write("</map>");

        document.write("<map name='Map3'>");
          document.write("<area shape='rect' coords='2,4,99,108' href='psychologue.html'>");
          document.write("<area shape='rect' coords='8,121,82,222' href='sexologue.html'>");
        document.write("</map>");

        document.write("<map name='Map4'>");
          document.write("<area shape='rect' coords='5,3,88,71' href='affichage-livredor.php'>");
          document.write("<area shape='rect' coords='4,107,93,238' href='contact.html'>");
          document.write("<area shape='rect' coords='9,267,104,326' href='conseiller-ami.html'>");
          document.write("<area shape='rect' coords='9,361,100,448' href='contact.html'>");
          document.write("<area shape='rect' coords='5,473,93,563' href='site_amis.html'>");
        document.write("</map>");

}

function Toit() {
        
        path_modo = GetModerationPath();
        path_modo_membres = GetModerationPath()+"/membres";

        // value of environment variable
        var url=location.href;
//document.write("url=",url,"<br>");

        var len = 0;
        if (len != undefined && len != 'undefined' && len != null) len = url.length;
        var mot_cherche = "/";
        var posiSlash = url.lastIndexOf(mot_cherche);

        var sub_path = url.substr(posiSlash-7,7); // posiSlash-7 : length of "/delete", 7 : pos of "delete"
        var sub_path2 = url.substr(posiSlash-15,15); // posiSlash-15 : length of "/delete/membres", 15 : pos of "delete/membres"
//document.write("url=",url,"<br>");
//document.write("sub_path=",sub_path,"<br>");
//document.write("sub_path2=",sub_path2,"<br>");


     document.write("<center>");
                    document.write("<table width='100%'  border='0' cellspacing='0' cellpadding='0'>");
                      document.write("<tr>");
                          document.write("<td width='1%' align='left' valign='top' background='/images/xl/xl_toit_fond.jpg'><img src='/images/xl/xl_toit_1.jpg' width='10' height='74'></td>");
                          document.write("<td width='98%' align='center' background='/images/xl/xl_toit_fond.jpg'><a href='http://www.psychoechange.com");

                          
                          if (sub_path == 'membres') { document.write("/membres");}
                          if (sub_path == GetModerationPath()) { document.write();}
                          if (sub_path2 == path_modo_membres) { document.write(path_modo_membres);}
                          
                                         document.write("' title='psychologie'><img src='/images/xl/xl_toit_2.gif' ALT='psychologie' width='983' height='74' border='0'></a></td>");
                          document.write("<td width='1%' align='right' background='/images/xl/xl_toit_fond.jpg'><img src='/images/xl/xl_toit_3.jpg' width='10' height='74'></td>");
                      document.write("</tr>");
                document.write("</table>");
     document.write("</center>");

//        else // the user is not in the /delete/ (moderation) directory
        {

             document.write("<center>");
                document.write("<table width='100%'  border='0' cellpadding='0' cellspacing='0'>");
                    document.write("<tr>");
                          document.write("<td height='60' colspan='2' align='left' valign='top'>");
                           document.write("<center>");
                              document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0'>");
                                  document.write("<tr>");
                                    document.write("<td width='104' align='left' valign='top' background='/images/xl/xl_poutre_fond.jpg'><img src='/images/xl/xl_poutre_gau.jpg' width='104' height='60'></td>");
                                    document.write("<td width='100%' align='center' valign='top' background='/images/xl/xl_poutre_fond.jpg'><div align='center'>");
                                      document.write("<table width='791'  border='0' cellpadding='0' cellspacing='0'>");
                                        document.write("<tr>");
                                          document.write("<td height='25'><img src='/images/xl/xl_pou_tit.gif' width='791' height='25'></td>");
                                        document.write("</tr>");
                                        document.write("<tr>");
                                          document.write("<td background='/images/xl/xl_pou_bt_red.gif'>");
                                                  document.write("<table width='791' border='0' cellspacing='0' cellpadding='0'>");
                                                    document.write("<tr>");
                                                      if (sub_path == 'membres') // (moderation directory)
                                                      {
                                                              document.write("<td width='61'><a href='messages-1-0.html?ref_haut=1&tri=alpha&mode=bals' onMouseOver=\"MM_swapImage('Image1','','/images/xl/spacer.gif',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src='/images/xl/xl_pou_bt_bal.gif' name='Image1' width='61' height='26' border='0' id='Image1'></a></td>");
                                                      }
                                                      else {
                                                              document.write("<td width='61'><a href='club-boite.php' onMouseOver=\"MM_swapImage('Image1b','','/images/xl/spacer.gif',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src='/images/xl/xl_pou_bt_bal.gif' name='Image1b' width='61' height='26' border='0' id='Image1b'></a></td>");
                                                      }
                                                      document.write("<td width='35'><img src='/images/xl/spacer.gif' width='35' height='26'></td>");
                                                      document.write("<td width='61'><a href='ecrire-a-un-membre.php' onMouseOver=\"MM_swapImage('Image2','','/images/xl/spacer.gif',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src='/images/xl/xl_pou_bt_ecri.gif' name='Image2' width='61' height='26' border='0' id='Image2'></a></td>");
                                                      document.write("<td width='34'><img src='/images/xl/spacer.gif' width='34' height='26'></td>");
                                                      document.write("<td width='109'><a href='club.php' onMouseOver=\"MM_swapImage('Image3','','/images/xl/spacer.gif',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src='/images/xl/xl_pou_bt_inscr.gif' name='Image3' width='109' height='26' border='0' id='Image3'></a></td>");
                                                      document.write("<td width='34'><img src='/images/xl/spacer.gif' width='34' height='26'></td>");

                                                      if (sub_path == 'membres') // (moderation directory)
                                                      {
                                                        document.write("<td width='61'><a href='modifier-profil.php' onMouseOver=\"MM_swapImage('Image4','','/images/xl/spacer.gif',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src='/images/xl/xl_pou_bt_modi.gif' name='Image4' width='61' height='26' border='0' id='Image4'></a></td>");
                                                      }
                                                      else {
                                                        document.write("<td width='61'><a href='club-modif-profil.php' onMouseOver=\"MM_swapImage('Image4','','/images/xl/spacer.gif',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src='/images/xl/xl_pou_bt_modi.gif' name='Image4' width='61' height='26' border='0' id='Image4'></a></td>");
                                                      }



                                                      document.write("<td width='28'><img src='/images/xl/spacer.gif' width='28' height='26'></td>");
                                                      document.write("<td width='61'><a href='voir-tous-profils.php?ref_haut=1&tri=chrono' onMouseOver=\"MM_swapImage('Image5','','/images/xl/spacer.gif',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src='/images/xl/xl_pou_bt_list.gif' name='Image5' width='61' height='26' border='0' id='Image5'></a></td>");
                                                      document.write("<td width='25'><img src='/images/xl/spacer.gif' width='25' height='26'></td>");
                                                      document.write("<td width='109'><a href='recherche-debats-filtre.php' onMouseOver=\"MM_swapImage('Image6','','/images/xl/spacer.gif',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src='/images/xl/xl_pou_bt_rech.gif' name='Image6' width='109' height='26' border='0' id='Image6'></a></td>");
                                                      document.write("<td width='25'><img src='/images/xl/spacer.gif' width='25' height='26'></td>");
                                                      document.write("<td width='61'><a href='reglement.html' onMouseOver=\"MM_swapImage('Image7','','/images/xl/spacer.gif',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src='/images/xl/xl_pou_bt_regl.gif' name='Image7' width='61' height='26' border='0' id='Image7'></a></td>");
                                                      document.write("<td width='25'><img src='/images/xl/spacer.gif' width='26' height='26'></td>");
                                                      document.write("<td width='62'><a href='index.html' onMouseOver=\"MM_swapImage('Image8','','/images/xl/spacer.gif',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src='/images/xl/xl_pou_bt_acc.gif' name='Image8' width='61' height='26' border='0' id='Image8'></a></td>");
                                                    document.write("</tr>");
                                                document.write("</table>");
                                              document.write("</td>");
                                        document.write("</tr>");
                                      document.write("</table>");
                                      document.write("<img src='/images/xl/xl_pou_bas.gif' width='791' height='9'></div>");
                                    document.write("</td>");
                                    document.write("<td width='79' align='right' valign='top' background='/images/xl/xl_poutre_fond.jpg'><img src='/images/xl/xl_poutre_droi.jpg' width='108' height='60'>");
                                    document.write("</td>");
                                  document.write("</tr>");
                                document.write("</table>");
                           document.write("</center>");
                        document.write("</td>");
                    document.write("</tr>");
                document.write("</table>");
            document.write("</center>");

            if (sub_path == GetModerationPath() || sub_path2 == path_modo_membres) // (moderation directory)
            {
        
                        document.write("<center>");
                        document.write("<table width='776' border='0' cellspacing='0' cellpadding='0' height='44' background='/bas_toit4.jpg'>");
                            document.write("<tr>");
                                document.write("<td colspan='2' align='center'>");
                                    document.write("<table width='100%'  border='0' cellspacing='0' cellpadding='0'>");
                                        document.write("<tr>");
                                            document.write("<td width='10%' align='left' background='/images/modo/modo_under.gif'>");
                                                document.write("<img src='/images/modo/modo_poutr_gau.jpg' width='104' height='31'>");
                                            document.write("</td>");
                                            document.write("<td width='79%' align='center' background='/images/modo/modo_under.gif'>");
                                                document.write("<table width='790' border='0' cellspacing='0' cellpadding='0'>");
                                                    document.write("<tr>");
                                                        document.write("<td align='center' background='/images/modo/modo_back_blue.gif'>");
                                                            document.write("<table width='790' border='0' cellspacing='0' cellpadding='0'>");
                                                                document.write("<tr>");
                                                                    document.write("<td width='157'><a href='psycho-moderateurs-1-0.html' onMouseOver='MM_swapImage('modo_rub','','/images/xl/spacer.gif',1)' onMouseOut='MM_swapImgRestore()'><img src='/images/modo/modo_bt_rubrik.gif' name='modo_rub' width='157' height='31' border='0' id='modo_rub'></a></td>");
                                                                    document.write("<td width='177'><img src='/images/xl/spacer.gif' width='177' height='31'></td>");
                                                                    document.write("<td width='150'><a href='modomails.php' onMouseOver='MM_swapImage('modo_sign','','/images/xl/spacer.gif',1)' onMouseOut='MM_swapImgRestore()'><img src='/images/modo/modo_bt_signal.gif' name='modo_sign' width='150' height='31' border='0' id='modo_sign'></a></td>");
                                                                    document.write("<td width='159'><img src='/images/xl/spacer.gif' width='159' height='31'></td>");
                                                                    document.write("<td width='147'><a href='recherche-debats-filtre-ip.php' onMouseOver='MM_swapImage('modo_rechip','','/images/xl/spacer.gif',1)' onMouseOut='MM_swapImgRestore()'>");
                                                                                        document.write("<img src='/images/modo/modo_bt_ip.gif' name='modo_rechip' width='148' height='31' border='0' id='modo_rechip'></a>");
                                                                    document.write("</td>");
                                                                document.write("</tr>");
                                                            document.write("</table>");
                                                        document.write("</td>");
                                                    document.write("</tr>");
                                                document.write("</table>");
                                            document.write("</td>");
                                            document.write("<td width='11%' align='right' background='/images/modo/modo_under.gif'><img src='/images/modo/modo_poutr_droi.jpg' width='108' height='31'></td>");
                                        document.write("</tr>");
                                    document.write("</table>");
                                document.write("</td>");
                            document.write("</tr>");
                        document.write("</table>");
                        document.write("</center>");
            }


        }


}

function PilierG() {

        document.write("<table width='156'  border='0' cellpadding='0' cellspacing='0'>");
          document.write("<tr>");
            document.write("<td valign='top' >");
                boutonsGauchesHTML();
            document.write("</td>");
          document.write("</tr>");
        document.write("</table>");

}


function Toit_PilierG() {
          document.write("<body bgcolor='#E2E8F8' text='#000000' marginwidth='0' marginheight='0' topmargin='0' leftmargin='0'>");
           document.write("<center>");
              document.write("<table width='963'  border='0' cellpadding='0' cellspacing='0'><tr><td>"); // frame struct : grand-mother table encapsulating the mother tables
                                             // one mother table = one bloc of list of debates for exple with align=center otherwise the mother tables are on the side of each other if align=left
                                             // but we want the mother tables on the left so we put align=left in the grand-mother table
                Toit();

         document.write("</td></tr><tr><td>"); // frame mother-table encapsulation

        document.write("<table width='963'  border='0' cellpadding='0' cellspacing='0'>"); // frame struct : frame mother table
          document.write("<tr>"); // frame struct : left cell of the mother table for the left column

            document.write("<td width='156' background='/images/xl/xl_pilier_gau.jpg' height='413' valign='top' align='center' rowspan='3'>"); // frame struct

                PilierG();

        document.write("</td>"); // end cell of left column

}

function HparchTitre() {
    document.write("<tr valign='top'><td width='100%' align='left' valign='top' background='/images/xl/xl_parch_fond.jpg'>"); // Frame struct : parch of 2nd middle cell

}

function HparchTitreCourbe() {

        document.write("<td width='70%' align='left' valign='top' background='/images/xl/xl_parch_fond.jpg'>"); // frame struct
           // curved top part of parchment
           document.write("<table width='100%'  border='0' cellspacing='0' cellpadding='0'>");
                  document.write("<tr>");
                   document.write("<td align='left' valign='top' background='/images/xl/xl_parch_haut_fond.jpg'>");
                        document.write("<table width='100%'  border='0' cellspacing='0' cellpadding='0'>");
                           document.write("<tr>");
                                document.write("<td width='52%' align='left' valign='top'><img src='/images/xl/xl_parch_haut_gau.jpg' width='358' height='72'></td>");
                                document.write("<td width='48%' align='right' valign='top'><div align='right'><img src='/images/xl/xl_parch_haut_droit.gif' width='333' height='72'></div></td>");
                           document.write("</tr>");
                        document.write("</table>");
                   document.write("</td>");
                  document.write("</tr>");
           document.write("</table>");
}

function HparchCourrier() {
    document.write("<td width='552' background='/parchemind_haut_tableau2_clair2_courrier.jpg' height='78' valign='top' align='left'>");
}

function HparchLivredor() {
    document.write("<td width='552' background='/parchemind_haut_tableau2_clair2_livre.jpg' height='30' valign='top' align='left'>");
}

function PilierD_Block1() {
        document.write("</td>"); // frame struct (for closing middle top cell od curved parch
            document.write("<td width='14%' align='center' valign='top' rowspan='3' background='/images/xl/xl_pilier_droit.jpg'>"); // frame struct : oepning right column cell
}

function PilierD_End() {
        document.write("</td>"); // frame struct : closing right column cell
      document.write("</tr>");  // frame struct : closing right column line
}


function PilierD() {
        PilierD_Block1();
        boutonsDroitsHTML();
        PilierD_End();


}

function BparchCorps_Escalier() {


    document.write("<center>");
          document.write("<table width='963'  border='0' cellpadding='0' cellspacing='0'>"); // frame struct
            document.write("<tr valign='top'>");
                document.write("<td colspan='2'>");
                              document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0'>");
                          document.write("<tr>");
                            document.write("<td width='51%' align='left' valign='top' background='/images/xl/xl_esc_fond.jpg'><img src='/images/xl/xl_esc_gau.jpg' width='514' height='83'></td>");
                            document.write("<td width='49%' align='right' valign='top' background='/images/xl/xl_esc_fond.jpg'><img src='/images/xl/xl_esc_droit.jpg' width='489' height='83'></td>");
                          document.write("</tr>");
                      document.write("</table>");
                document.write("</td>");
            document.write("</tr>");
          document.write("</table>");
    document.write("</center>");

//    document.write("</tr></td></table></center>"); // end grand-mother table

}


function BparchCorps_Escalier_index() {


        document.write("<center><table border='0' cellpadding='0' cellspacing='0' width='775'>");
          document.write("<tr>");
            document.write("<td><img name='esc_basegauche' src='/esc_basegauche.jpg' width='107' height='29' border='0' alt=''></td>");
            document.write("<td><img name='esc_parch1mini' src='/esc_parch1mini.jpg' width='278' height='29' border='0' alt=''></td>");
            document.write("<td><img name='esc_parch2mini' src='/esc_parch1mini.jpg' width='279' height='29' border='0' alt=''></td>");
            document.write("<td><img name='esc_basedroite' src='/esc_basedroite.jpg' width='111' height='29' border='0' alt=''></td>");
          document.write("</tr>");
          document.write("<tr>");
            document.write("<td colspan='4'><img name='/esc_plateforme' src='/esc_plateforme.jpg' width='775' height='54' border='0' alt=''></td>");
          document.write("</tr>");
        document.write("</table></center>");


}

function findsubpath() {
        // value of environment variable
        var url=location.href;
        var len = 0;
        if (len != undefined && len != 'undefined' && len != null) len = url.length;
        var mot_cherche = "/";
        var posiSlash = url.lastIndexOf(mot_cherche);
        var sub_path = url.substr(posiSlash-7,7); // posiSlash-7 : length of "/delete", 7 : pos of "delete"

        return sub_path;
}


//------------ commun -------------------------------------------------------------------------------

function GetModerationPath()
{
        return "/J1LMS6";
}


function MM_preloadImages() { //v3.0
        var d=document;
        if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments;
        for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){
        d.MM_p[j]=new Image;
        d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
        var i,x,a=document.MM_sr;
        for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)
        x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
        var p,i,x;
        if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length)
        {    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
        if(!(x=d[n])&&d.all) x=d.all[n];
        for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
        for(i=0;!x&&d.layers&&i<d.layers.length;i++)
        x=MM_findObj(n,d.layers[i].document);
        if(!x && d.getElementById)
        x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
        var i,j=0,x,a=MM_swapImage.arguments;
        document.MM_sr=new Array;
        for(i=0;i<(a.length-2);i+=3)
        if ((x=MM_findObj(a[i]))!=null)
        {document.MM_sr[j++]=x;
        if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function ouvrirFicheInscription(){
        window.open('fiche-inscription.php','ficheinscription','toolbar=yes,location=no,locationbar=no,directories=no,status=yes,statusbar=yes,top=no,personalbar=no,pathname=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,height=700,width=680')
}

function ouvrirprofil(ref,rd,width){
        window.open('fiche-profil.php?reference='+ref+'&num=0','membreouvrirprofil'+ref+rd,'toolbar=yes,location=yes,locationbar=no,directories=no,status=yes,statusbar=yes,top=no,personalbar=no,pathname=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,height=570,width='+width)
}

function ecrireprofil(ref,rd,width){
        window.open('fiche-ecrire-profil.php?reference='+ref+'&num=0','membreecrireprofil'+ref+rd,'toolbar=yes,location=yes,locationbar=yes,directories=no,status=yes,statusbar=yes,top=yes,personalbar=no,pathname=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,height=550,width='+width)
}



function openPopupAvatars(link){
        var winavat = window.open(link,'avatars','toolbar=yes,location=yes,locationbar=no,directories=no,status=yes,statusbar=yes,top=no,personalbar=no,pathname=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,height=550,width=750')
}


function openAlarm(strURL, num_categ, ref, num_post) {
        var strOptions='';
        strOptions='toolbar=no,location=no,locationbar=no,directories=no,status=no,statusbar=yes,top=no,personalbar=no,pathname=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,height=455,width=352';
        window.open(strURL, 'Avertir'+num_categ+ref+num_post, strOptions);
}

// to open the URL link from a post
function openLink(strURL, num) {
        var strOptions='';
        strOptions='toolbar=yes,location=yes,locationbar=yes,directories=yes,status=yes,statusbar=yes,top=yes,personalbar=yes,pathname=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,height=400,width=600';
        window.open(strURL, 'Link'+num, strOptions);
}

function openWinLostConfirmationEmail(strURL, num) {
        var strOptions='';
        strOptions='toolbar=no,location=no,locationbar=no,directories=no,status=no,statusbar=no,top=no,personalbar=no,pathname=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,height=500,width=580';
        window.open(strURL, 'LostEmail'+num, strOptions);
}


function openAlarmPopupFromFrame(mylink, windowname)
{
        if (! window.focus) // if popup already open
        {  return true;
        }

        var href;
        if (typeof(mylink) == 'string')
        {  href=mylink;
        }
        else
        {  href=mylink.href;
        }
        window.open(href, windowname, 'toolbar=no,location=no,locationbar=no,directories=no,status=no,statusbar=yes,top=no,personalbar=no,pathname=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,height=700,width=400');

        return false;
}




function TagsBetweenPilerDAndHParch() {

}

function PilierD_bluepaid() {
        PilierD_Block1();
        boutonsDroitsHTML();
        document.write("<br><br>");
        document.write("<div align='center'><a href='http://www.bluepaid.com' target='_blank'><img src='/logo-bluepaid-fr.gif' width='90' height='35' border='0'></a></div>");
        PilierD_End();
}


function EndTableTags() {
                document.write("</td>"); // frame struct : closing middle text cell
          document.write("</tr>"); // frame struct : closing middle text table line
          document.write("</table>"); // frame struct : closing middle text table line

        //first block with temple roof; closing mother table encapulating the roof and the first block (for extensibility of the temple)
        document.write("</td></tr></table>");

    document.write("</center>"); // frame struct : closing middle text table line
}



function PrintBottomSpaces()
{
        // prints spaces at the bottom of the page to avoid having a big space at the top of the page
        document.write("<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>");
}




function openThawtePopup(){
  window.open('https://www.thawte.com/core/process?process=public-site-seal-cert-details&public-site-seal-cert-details.referer=https://ssl.stream-payement.com','certificat','toolbar=no,location=yes,locationbar=yes,directories=no,status=yes,statusbar=yes,top=no,personalbar=no,pathname=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,height=520,width=540')
}

function openFunRidePopup(){
  window.open('http://www.funridesurfcamp.com/fr/','certificat','toolbar=yes,location=yes,locationbar=yes,directories=yes,status=yes,statusbar=yes,top=no,personalbar=no,pathname=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,height=600,width=800')
}


function find_page_url() {
  // value of environment variable
  var url=location.href;
  var len = 0;
  if (len != undefined && len != 'undefined' && len != null) len = url.length;
  var mot_cherche = "/";
  var posiSlash = url.lastIndexOf(mot_cherche);
  var sub_path = url.substr(posiSlash,len); 

  return sub_path;
}


function openPopup(link){
  window.open(link,'validation mail','toolbar=no,location=no,locationbar=no,directories=no,status=yes,statusbar=yes,top=no,personalbar=no,pathname=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,height=650,width=850')
}

function openPopup3(){
  window.open('index.html','validation mail','toolbar=no,location=no,locationbar=no,directories=no,status=yes,statusbar=yes,top=no,personalbar=no,pathname=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,height=650,width=850')
}

function OpenPopUp2(MyFile,MyWindow,MyWidth,MyHeight)
//MyFile :	  nom du fichier contenant le code HTML du pop-up
//MyWindow :	  nom de la fenêtre (ne pas mettre d'espace)
//MyWidth :	  entier indiquant la largeur de la fenêtre en pixels
//MyHeight :	  entier indiquant la hauteur de la fenêtre en pixels

{	  
var ns4 = (document.layers)? true:false; 	  //NS 4
var ie4 = (document.all)? true:false;	  //IE 4
var dom = (document.getElementById)? true:false;	  //DOM
var xMax, yMax, xOffset, yOffset;;	  

    if (ie4 || dom)
        {
        xMax = screen.width;
        yMax = screen.height;
        }
    else if (ns4)
        {
        xMax = window.outerWidth;
        yMax = window.outerHeight;
        }
    else
        {
        xMax = 800;
        yMax = 600;
        }
    xOffset = (xMax - MyWidth)/2;
    yOffset = (yMax - MyHeight)/2;
    window.open(MyFile,MyWindow,'width='+MyWidth
+',height='+MyHeight
+',screenX='+xOffset
+',screenY='+yOffset
+',top='+yOffset
+',left='+xOffset
+',scrollbars=yes,resizable=yes');
}