function changing(bgcolor,txtcolor){if (event.srcElement.tagName=="INPUT"){event.srcElement.style.backgroundColor=bgcolor;event.srcElement.style.color = txtcolor;}}

function setindex()
{
//document.Player_1.URL = "streamings/asx_br/br_all.asx"; 
document.Player_2.controls.stop();
idx = document.change.nb_song.value;
idx--;  // first=0

var pl = document.Player_1.currentPlaylist; 

if (idx < pl.count && idx >= 0)   // Test whether idx is within a valid range.
  {
  document.Player_1.controls.currentItem = pl.item(idx);    // Set the currentItem to the desired playlist item.
  window.setTimeout('document.Player_1.controls.play();', 3000);
  }
else
  {
  // The index is out of range, stop the Player, alert the user.
  alert("Index out of range");
  }
}


