function chart(){
var si =  document.frm.selbox.selectedIndex;
var sit = document.frm.selbox2.selectedIndex;
time=document.frm.selbox2.options[sit].value;
re = / /ig; 
var nome = TCod[si][0].replace(re,"");
var periodo =time.replace("\/", "&nbsp;").toUpperCase(); periodo.replace(" ", "_");
//var titolo="http://www.xtrader.net/chart42.html?"+time+TCod[si][1]+"&255,255,255&&nbsp;"+nome+"&nbsp;-&nbsp;"+periodo+"&nbsp;&nbsp;&nbsp;";
//alert(nome+"-");
var titolo="http://www.xtrader.net/chart42.html?"+time+TCod[si][1]+"&255,255,255&";
var KX=window.open(titolo,"Furyo", "width=620, height=440,resizable=yes,scrollbars=no,toolbar=no,location=no"); 
KX.focus();
}
document.write('<form name="frm" ><select   class=menuSJC name="selbox" size="1"   onchange="chart()">' );
NS4=(document.layers) ? true : false;IE4=(document.all)?true:false;	ver4 = (NS4 || IE4) ? true : false;
var a=0;for (var i=0;i<TCod.length;i++)	{  { var colX="class=rigaA";if (a==0) colX="class=rigaB";a++;if(a==2)a-=2;
if(IE4)document.write( "<option  value=\""+TCod[i][1]+"\"   "+colX+">"+TCod[i][0]+"</option>");
else document.write(' <option  value="'+TCod[i][1]+'" '+colX+' >'+TCod[i][0]+'</option> '); }}
document.write('</select> <input class=button type="button" value="Go!" onclick="chart()"  onmouseover="pulsante(this)" onmouseout="pulsante(this,true)"   >	<select class=FORM name="selbox2" size="1"> <option value="temp/"  >Step </option> <option  value="orario/">60-m</option><option selected value="day/" >Day </option><option value="wek/">Wek</option> </option><option value="M/">Month</option> </select></form>');