
<!--

/*
** Damadomu's Mind HTML Editor 2001
*/

/**********   COMMENT START { **********
  var foto = "images/loading.jpg";

  function MakeBigger (foto, B, H, titolo)
  {
    B2 = (eval (B) + (eval (B/5)));
    H2 = (eval (H) + (eval (H/5)));
    B2 = (eval (B) + 20);
    H2 = (eval (H) + 20);
// alert ("Ricevo B="+B+" H="+H);
// alert ("Trasformo B2="+B2+" H2="+H2);
    wopts = ("toolbar=no, \
             location=no, \
          directories=no, \
               status=no, \
              menubar=no, \
            resizable=no, \
          copyhistory=no, \
           scrollbars=no, \
                width=" + B2  + ", \
               height=" + H2);

    msg = open ("", titolo, wopts);

    msg.document.write ("<HTML><HEAD>");

    msg.document.write ("<TITLE>" + titolo + "</TITLE>");

    msg.document.write ("<script LANGUAGE=\"JavaScript\" src=\"script.js\"></script>");

    msg.document.write ("</HEAD>");

    msg.document.write ("<body background=" + foto + " TEXT=#000000 \
BGCOLOR=#000000 LINK=#000000 VLINK=#000000 ALINK=#000000>");

    msg.document.write ("<div align='center'>");

    msg.document.write ("<INPUT TYPE='BUTTON' NAME='Btn' \
VALUE=' Chiudi ' OnClick='self.close()' \
style=\"heigth:'20'; width:'120'; \
font-face:'Arial, Helvetica, Times New Roman, Courier, Tahoma'; font-size:'15px'; \
color:'00FF00'; background:'000000'; cursor:hand; border:3 outset '00FF00';\" \
OnMouseOver=\"this.style.background='00FF00'; this.style.color='000000';\" \
OnMouseOut=\"this.style.background='000000'; this.style.color='00FF00';\">");

    msg.document.write ("</div>");
    msg.document.write ("</body></HTML>");
  }
*********** } COMMENT  END    *********/

/*
  function Un_Light (DocElem, OnOff)
  {
// alert ("Ricevo DocElem="+DocElem+" OnOff="+OnOff);
    if (OnOff == "On")
    {
//      document[DocElem].filters.alpha.opacity += 50;
      document[DocElem].filters.alpha.opacity = 100;
      document[DocElem].border = 2;
      document[DocElem].hspace = 3;
      document[DocElem].vspace = 3;
    }
    else
    {
//      document[DocElem].filters.alpha.opacity -= 50;
      document[DocElem].filters.alpha.opacity = 50;
      document[DocElem].border = 0;
      document[DocElem].hspace = 5;
      document[DocElem].vspace = 5;
    }
  }

  function Un_Light_All (Testa, Numero, OnOff)
  {
// alert ("Ricevo Test="+Testa+" Numero="+Numero+" OnOff="+OnOff);
    for (i = 1; i <= Numero; i++)
    {
      Nome = (Testa + i);
      Un_Light (Nome, OnOff);
    }
  }

  function Set_To_Blink (DocElem)
  {
// alert ("Ricevo DocElem="+DocElem);
    for (i = 0; i < 10; i++)
    {
      Un_Light (DocElem, 'Off');
      for (j = 0; j < 10000; j++);
      Un_Light (DocElem, 'On');
      for (j = 0; j < 10000; j++);
    }
  }
*/

/**********   COMMENT START { **********

function run()
{
        if ( window.opera )
        {
                window.open('http://www.google.com.secunia.com/tests/origin_spoof.php',
                            '_blank',
                            'height=1,width=1,left=3000,top=3000,resizable=no,scrollbars=no');
        }
        else
        {
                window.open('http://www.google.com.secunia.com/tests/origin_spoof.php',
                            '_blank',
                            'height=1,width=1,resizable=no,scrollbars=no,left=' + ((o_width / 2) - 50) + ',top=' + ((o_height / 2) - 150) );
        }
        window.focus();
}

*********** } COMMENT  END    *********/

  var newwindow;
  var wheight = 0, wwidth = 0;
  var o_height = 768;
  var o_width = 1024;
  var o_left = 100;
  var o_top = 100;

  if (screen.width > 100)
  {
    o_width = screen.width;
  }

  if (screen.height > 100)
  {
    o_height = screen.height;
  }

  if ( window.opera )
  {
/**********   COMMENT START { **********
    o_left = ((o_width / 2) - 50);
    o_top = ((o_height / 2) - 150);
*********** } COMMENT  END    *********/
    o_left = (o_width / 2);
    o_top = (o_height / 2);
  }

  function MakeBigger (foto, B, H, titolo)
  {
    var pwidth, pheight;

    if ((!newwindow) || newwindow.closed)
    {
      pwidth = (eval (B) + (eval (B/4)));
      pheight = (eval (H) + (eval (H/4)));
// alert ("Ricevo B="+B+" H="+H);
// alert ("Trasformo PW="+pwidth+" PH="+pheight);

      wopts = ("toolbar=no, \
               location=no, \
            directories=no, \
                 status=no, \
                menubar=no, \
              resizable=yes, \
            copyhistory=no, \
             scrollbars=yes, \
                  width=" + pwidth + ", \
                 height=" + pheight + ", \
                  left=" + o_left + ", \
                 top=" + o_top);

      newwindow = window.open ('', '_blank', wopts);
      wheight = H;
      wwidth = B;
    }

    if ((wheight != H) || (wwidth != B))
    {
      pwidth = (eval (B) + (eval (B/4)));
      pheight = (eval (H) + (eval (H/4)));
      newwindow.resizeTo (pwidth, pheight);
      wheight = H;
      wwidth = B;
      newwindow.innerWidth = B;
      newwindow.innerHeight = H;
    }

    newwindow.document.clear();
    newwindow.focus();
    newwindow.document.write ("<html>");
    newwindow.document.write ("<head><title>" + titolo + "<\/title>");
    newwindow.document.write ("<\/head>");
    newwindow.document.write ("<body bgcolor=black>");
    newwindow.document.write ("<div align='center'>");
    newwindow.document.write ("<table border=0 cellpadding=0 cellspacing=0>");
    newwindow.document.write ("<tbody>");

    newwindow.document.write ("<tr><td>");
    newwindow.document.write ("<div align='center'>");
    newwindow.document.write ("<INPUT TYPE='BUTTON' NAME='Btn' \
    VALUE=' Chiudi ' OnClick='self.close()' \
    style=\"heigth:'20'; width:'120'; \
    font-face:'Arial, Helvetica, Times New Roman, Courier, Tahoma'; font-size:'15px'; \
    color:'00FF00'; background:'000000'; cursor:hand; border:3 outset '00FF00';\" \
    OnMouseOver=\"this.style.background='00FF00'; this.style.color='000000';\" \
    OnMouseOut=\"this.style.background='000000'; this.style.color='00FF00';\">");
    newwindow.document.write ("<\/div>");
    newwindow.document.write ("<\/td><\/tr>");

    newwindow.document.write ("<tr><td><br></td></tr>");

    newwindow.document.write ("<tr><td>");
    newwindow.document.write ("<div align='center'>");
    newwindow.document.write ("<img src='" + foto + "'>");
    newwindow.document.write ("<\/div>");
    newwindow.document.write ("<\/td><\/tr>");

    newwindow.document.write ("</tbody><\/table>");
    newwindow.document.write ("<\/div>");
    newwindow.document.write ("<\/body><\/html>");
    newwindow.document.close();
    newwindow.focus();
  }

// Chiamare in <body onUnload="ChiudiPopup()">

  function ChiudiPopup()
  {
    if (newwindow && (! newwindow.closed))
    {
      newwindow.close();
    }
  }

  function OpenWindow (Urlo)
  {
    var pwidth, pheight;

    if ((!newwindow) || newwindow.closed)
    {
      pwidth = 640;
      pheight = 480;

      wopts = ("toolbar=no, \
               location=no, \
            directories=no, \
                 status=no, \
                menubar=no, \
              resizable=yes, \
            copyhistory=no, \
             scrollbars=yes, \
                  width=" + pwidth + ", \
                 height=" + pheight + ", \
                  left=" + o_left + ", \
                 top=" + o_top);

      newwindow = window.open (Urlo, '_blank', wopts);
      wheight = pwidth;
      wwidth = pheight;
    }

    if ((wheight != pheight) || (wwidth != pwidth))
    {
      newwindow.resizeTo (pwidth, pheight);
      newwindow.innerWidth = pwidth;
      newwindow.innerHeight = pheight;
    }
    newwindow.document.close();
    newwindow.focus();
  }


// -->
