I need to write something on document window with variables included.
Now I'm doing it in HTML and it looks like this:


<SPAN ID=Item1
Style="position:absolute;Visibility:hidden;Filter:revealTrans;
width:400;height:180;top:200;left:200;
background-color:green;COLOR: #FFFFFF; FONT-SIZE: 15pt">
<!--#include virtual="cgi-bin/rnd_vic.pl?item=1"-->
</SPAN>


and I'm using this piece of Java to activate it:


function go() {

sh.filters[0].Apply();

if (sh.style.visibility == "visible") {
sh.style.visibility = "hidden";
sh.filters.revealTrans.transition=15;
sh.filters.revealTrans.duration=0.2;
}
else {
sh.style.visibility = "visible";
sh.filters[0].transition=12;
sh.filters[0].duration=0.2;
}
sh.filters[0].Play();
}

-----------------
Earlier, in script I'm setting variables for COLOR, and
<!--#include virtual="cgi-bin/rnd_vic.pl?item=1"-->
in SPAN section.

My script is now fully functional, but I have written SPAN html code for each item, and I want to do it
using variables to shorten html size.
You can see how it works at: http://upitnik.net/span.html

Any help is appreciated.