       var system_lang = new String
        var Lang_boolean = new Boolean(false)
        var Lang_string = ("")
        var My_lang= 0
        var cookie_found = new Boolean(false)
        var cookie_data = new String("")
        var cookie_name = "gaynewsboard.net"
        var do_init = true
        var init_done = false
        var new_cookie = false
        var session_cookie_written = false
        var C_username = "UN          "
        var C_PW = "pwd           "
        var C_email = "emailer      "
        var C_Plang = "   "
        var C_exp =Date
        var C_server = "NAME=strato.de"
        var currentDate = new Date()
        var c_dummy = 0
        var test_string = new String
        var Rslt_b =  new Boolean(false)
        var D_string = " "
        var DET_gif = "gif/germanyf2t11x.gif"


      function for_IE(){
        document.write("<table width='100%' cellspacing='0' cellpadding='0' border='0' bgcolor='#ffffff'");
        document.write("<tr> <td>");
        document.write("<marquee height='5%' width='100%' direction='RIGHT' scrollamount='10' scrolldelay='1' behavior='SLIDE'");
        document.write(" <b><align='Left'><font size='6'; color='#000000'></font></b>");
        document.write("<img border='2' align='LEFT' width='200' height='45'  ");
        document.write(" src='gif/rainbowflag.jpg'  alt='Image' />");
        document.write(" <b><align='RIGHT'><font size='6'; color='#000000'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;")
        document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;")
        document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gay World News &nbsp;</font></b>");
        document.write(" </marquee>");
        document.write("</td> </tr>");
        document.write("</table>");
        document.write("<hr size=2 width = '100%'>");
        document.write("<table width='100%' cellspacing='0' cellpadding='0' border='0' bgcolor='#ffffff'");
        document.write("<tr> <td>");
        document.write("<marquee height='5%' width='100%' scrollamount=10 scrolldelay= 1 behavior='SLIDE' direction=LEFT <align='Left'>");
        document.write("<table border='0' cols='3'width='100%'> ");
        document.write("<tr> <td><b><font size='6'; valign='left' width='50%' color='#000000'> Schwules aus aller Welt&nbsp;&nbsp;&nbsp;&nbsp;</font></b> </td>");
        document.write("<td>  <font size='6'color='#000000' align='right'><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
        document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
        document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</b></font> </td>");
        document.write("<td> <image height='45' width='320' src='gif/outline_2.gif' valign='bottom'></td></tr></table>");
        document.write("</marquee>");
        document.write("</td> </tr>");
        document.write("</table>");
        document.write("<hr size=2 width = '100%'>");
                }

 function for_OTHERS(){
        document.write("<table width='750' cellspacing='0' cellpadding='0' border='0' bgcolor='#ffffff'");
        document.write("<tr> <td>");
        document.write("<b><align='RIGHT'><font size='6'; color='#000000'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></b> </td>");
        document.write("<td> <img border='2' valign = 'top' align='LEFT' width='70' height='40'  src='gif/earthzoom.gif'  alt='Image' /> </td>");
        document.write(" <td> <b><align='RIGHT'><font size='6'valign='bottom' color='#000000'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;")
        document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;")
        document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gay World News &nbsp;</font></b>");
        document.write("</td> </tr>");
        document.write("</table>");
        document.write("<hr size=2 width = '750'>");
        document.write("<table width='750' cellspacing='0' cellpadding='0' border='0' bgcolor='#ffffff'");
        document.write("<tr> <td>");
        document.write("<table border='0' cols='2'width='750'> ");
        document.write("<tr> <td><b><font size='6'; valign='center' width='400' align='Left' color='#000000'> Schwules aus aller Welt</font></b>");
        //document.write("<td>  <font size='6'color='#000000'align='right'><b>1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1</b></font> </td>  ");
        document.write("<td> <image border='0' height='45' width='320' src='gif/outline_2.gif' valign='Top' align='left'></td></tr></table>");
        document.write("</td> </tr>");
        document.write("</table>");
        document.write("<hr size=2 width = '750'>");
         }

     function Init(){
        system_lang =window.clientInformation.systemLanguage;
        Lang_boolean = false;
        Lang_string = "   ";
        My_lang = 0;
        cookie_found = false;
        cookie_data="";
        with (currentDate) {
                setFullYear((getFullYear()) + 5)
                };
        do_init = false;
        init_done = true;
        cookie_found = Cookie_Read();
//  alert(cookie_data);

//         if ((cookie_found == true) && (C_username != null) && (C_username != "undefined")){
//                             c_dummy = 0; } ;
 //        else {
 //            if(system_lang = "en-us"){
 //            C_username = Prompt("Sorry! Unable to obtain your username from the cookie. Please enter a user name.", "None");
 //               c_dummy=10;
 //                  };
 //            else{
//                alert("German equivalent here");
 //               c_dummy=11;
 //               };
             Cookie_Placed();
 /*        if ((cookie_found == true) &&  (C_Plang != "undefined")){
           switch (C_Plang){
           case "ENG" :
                c_dummy = 0 ;
                document.getElementById('news_gif').src="gif/usaCa.gif";
                document.getElementById('news_ref').href = "show_eng_news.php";
                document.getElementById('archive_ref').href = "show_eng_archives.php";
                document.getElementById('search_ref').href = "show_eng_search.php";
                document.getElementById('NEWS').bgcolor="#ffffff" ;
                document.getElementById('ARCHIVE').bgcolor="#ffffff" ;
                document.getElementById('SEARCH').bgcolor="#ffffff" ;
               break;



           case "DET" :
                c_dummy = 0 ;
                document.getElementById('news_gif').src="gif/germanyf2t11x.gif";
                document.getElementById('news_ref').href = "show_det_news.php ";
                document.getElementById('archive_ref').href = "show_det_archives.php";
                document.getElementById('search_ref').href = "show_det_search.php";
                document.getElementById('NEWS').bgcolor="#ffffff" ;
                document.getElementById('ARCHIVE').bgcolor="#ffffff" ;
                document.getElementById('SEARCH').bgcolor="#ffffff" ;
              break;

           case "ESP" :
                c_dummy = 0 ;
                document.getElementById('news_gif').src="gif/spainC1.gif";
                document.getElementById('news_ref').href = "show_esp_news.php";
                document.getElementById('archive_ref').href = "show_esp_archives.php";
                document.getElementById('search_ref').href = "show_esp_search.php";
                document.getElementById('NEWS').bgcolor="#ffffff" ;
                document.getElementById('ARCHIVE').bgcolor="#ffffff" ;
                document.getElementById('SEARCH').bgcolor="#ffffff" ;
                break;

           default :
                c_dummy=25;
                break;
                       }   //  end switch

                };    // end if   */

              }     // end function





        function Addlink() {
         Cookie_Read();
        c_dummy = 0 ;

        Rslt_b = false
        D_string = "  "

        if ((cookie_found == true)&& (C_username != null)) {
           test_string = C_username.toUpperCase();


          if (test_string.substring(0,6) == 'GUNNAR'){
            D_string = "Mega Hugs! " + C_username + ", Do you want to activate the back door to Rota directory?";
            Rslt_b= confirm(D_string);
                if (Rslt_b){
                 c_dummy = 1;
                 };






                };
          if (test_string.substring(0,5) == 'SCMAN'){
             D_string =  C_username + ", Do you want to activate the back door to Rota directory?";
             Rslt_b = confirm(D_string);

               if (Rslt_b){
                 c_dummy = 1;
                 };
                };
             };

         switch(c_dummy) {
                case 1 :
                  document.write("<td> <table cellspacing='0' cellpadding='0' width='20%' border='0' align='RIGHT'> <a href='/httpdocs/rota/index.php'/a> <img border='0' align='Right' width='275' height='170' src='gif/biglogo3[1].gif' alt='w/link'>  </td>");
                  break;
                  default :
                   document.write("<td> <table cellspacing='0' cellpadding='0' width='20%' border='0' align='RIGHT'> <img border='0' align='Right' width='275' height='170' src='gif/biglogo3[1].gif' alt='w/olink'> </td>");
                  break;
                        };

                 }


        function BreaktheCookie(omit_it){
        var s = new Array(10);
        s = document.cookie.split("í");

        if (omit_it !=0){
                C_server = s[0]};
        if (omit_it !=0){
                C_username =s[1]};
        if (omit_it !=2){
                C_PW =s[2]};
        if (omit_it !=3){
                C_email =s[3]};
        if (omit_it !=4){
                Lang_string =s[4];
                C_Plang = Lang_string;};
        if (omit_it !=4){
                C_exp =s[4]};
                }

     function Update_Cookie(){
        cookie_data =  C_server + "í" + C_username  +"í" + C_PW +"í" + C_email + "í" + C_Plang + "í" + ("Expires=") + currentDate ;

        c_dummy=1;
        document.cookie=cookie_data;
        cookie_found = true;
        return cookie_found;
                }

    function Choose_Det(caller){
        Lang_boolean=true;
        Lang_string=("DET");
        C_Plang = Lang_string;
        My_lang=2;

        c_dummy=2;

        if (caller=="INDEX"){
                window.location="http://gaynewsboard.net/nav_det.html";
                return;
                    };
        if (caller=="NAV"){
                window.location="http://gaynewsboard.net/nav_det.html";
                return;
                    };
        if (caller=="NEWS"){
                window.location="http://gaynewsboard.net/show_det_news.php";
                return;
                    };
        if (caller=="ARCH"){
                window.location="http://gaynewsboard.net/show_det_archives.php";
                return;
                    };
        if (caller=="SEARCH"){
                window.location="http://gaynewsboard.net/show_det_search.php";
                return;
                    };

        if(cookie_data==document.cookie >""){
                BreaktheCookie(4);
                Update_Cookie();
                document.getElementById('news_gif').src="gif/germanyf2t11x.gif";
                document.getElementById('news_ref').href = "show_det_news.php ";
                document.getElementById('archive_ref').href = "show_det_archives.php";
                document.getElementById('ARCHIVE').Title = "ARCHIV";
                document.getElementById('search_ref').href = "show_det_search.php";
                document.getElementById('SEARCH').Title = "SUCHE";
                document.getElementById('NEWS').bgcolor="#ffffff" ;
                document.getElementById('ARCHIVE').bgcolor="#ffffff" ;
                document.getElementById('SEARCH').bgcolor="#ffffff" ;
                                   } ;
         // else{
         //       //                alert("ENG")
          //      c_dummy=3;
          //      };
                }

    function Choose_Eng(caller){
        Lang_boolean=true;
        Lang_string="ENG";
        C_Plang = Lang_string;
        My_lang=1;
       // alert(caller);

        c_dummy=1;
        if (caller=="INDEX"){
                window.location="http://gaynewsboard.net/nav_eng.html";
                return;
                    };
        if (caller=="NAV"){
                window.location="http://gaynewsboard.net/nav_eng.html";
                return;
                    };
        if (caller=="NEWS"){
                window.location="http://gaynewsboard.net/show_eng_news.php";
                return;
                    };
        if (caller=="ARCH"){
                window.location="http://gaynewsboard.net/show_eng_archives.php";
                return;
                    };
        if (caller=="SEARCH"){
                window.location="http://gaynewsboard.net/show_eng_search.php";
                return;
                    };
        if(cookie_data==document.cookie >" "){
                BreaktheCookie(4);
                Update_Cookie();
                document.getElementById('news_gif').src="gif/usaCa.gif";
                document.getElementById('news_ref').href = "show_eng_news.php";
                document.getElementById('archive_ref').href = "show_eng_archives.php";
                document.getElementById('ARCHIVE').Title = "ARCHIVE";
                document.getElementById('search_ref').href = "show_eng_search.php";
                document.getElementById('SEARCH').Title = "SEARCH";
                document.getElementById('NEWS').bgcolor="#ffffff" ;
                document.getElementById('ARCHIVE').bgcolor="#ffffff" ;
                document.getElementById('SEARCH').bgcolor="#ffffff" ;
                        };
         // else{
          //      c_dummy=4;
         //       };
                }


    function Choose_Esp(caller){
        Lang_boolean=true;
        Lang_string="ESP";
        C_Plang = Lang_string;
        My_lang=1;

        c_dummy=1;
        if (caller=="INDEX"){
               window.location="http://gaynewsboard.net/nav_esp.html";
                return;
                    };
        if (caller=="NAV"){
               window.location="http://gaynewsboard.net/nav_esp.html";
                return;
                    };
        if (caller=="NEWS"){
                window.location="http://gaynewsboard.net/show_esp_news.php";
                return;
                    };
        if (caller=="ARCH"){
                window.location="http://gaynewsboard.net/show_esp_archives.php";
                return;
                    };
        if (caller=="SEARCH"){
                window.location="http://gaynewsboard.net/show_esp_search.php";
                return;
                    };
        if(cookie_data==document.cookie >""){
                BreaktheCookie(4);
                Update_Cookie();
                document.getElementById('news_gif').src="gif/spainC1.gif";
                document.getElementById('news_ref').href = "show_esp_news.php";
                document.getElementById('archive_ref').href = "show_esp_archives.php";
                document.getElementById('ARCHIVE').Title = "ARCHIVO";
                document.getElementById('search_ref').href = "show_esp_search.php";
                document.getElementById('SEARCH').text = "B+SQUEDA";
                document.getElementById('NEWS').Title = "NOTICIAS";
                document.getElementById('NEWS').bgcolor="#ffffff" ;
                document.getElementById('ARCHIVE').bgcolor="#ffffff" ;
                document.getElementById('SEARCH').bgcolor="#ffffff" ;
                         } ;
         // else{
         //       c_dummy=4;
         //       };
                }


     function Cookie_Read(){
        var c_data = new Array(10)
         document.cookie = cookie_name ;
        if(cookie_data==document.cookie >""){
          cookie_found = true;
          (cookie_data = document.cookie);
          c_data = document.cookie.split("í");
          C_username = c_data[1];
          C_PW = c_data[2];

          C_email = c_data[3];
          C_Plang = c_data[4];

                  }
         else{
          cookie_found = false;
             };
        return cookie_found;
                }

     function Cookie_Placed(){
        document.cookie = cookie_name ; expires="Monday,04-Apr-2010 05:00:00 GMT";
        cookie_data =  C_server + "í" + C_username  +"í" + C_PW +"í" + C_email + "í" + C_Plang + "í" +  "Expires=" + currentDate ;
         document.cookie=cookie_data;
        new_cookie = true;
        cookie_found = true;
        return cookie_found;
                }