var tdselsubbot = "";
var tdmarcadasubbot = "";

function rolloversubbot(i){
   if (document.getElementById("td" + i).style.background != "#820001") { //color de fondo marcado(minusculas)
    document.getElementById("td" + i).style.background="#820000"; //color de fondo rollover
    document.getElementById("td" + i).style.color = "#ffffff"; // color de texto rollover
  }

  tdselsubbot = i;
}

function estadoinicialsubbot(i){
	if (document.getElementById("td" + tdselsubbot).style.background != "#820001"){ //color de fondo marcado (minusculas)
  	  document.getElementById("td" + i).style.background = "#FDEED0"; // color de fondo normal
      document.getElementById("td" + i).style.color = "#820001"; // color de texto normal
	}
}

function marcartdsubbot(i){
  
  //Seleccionamos la fila que ha pinchado
  if (tdmarcadasubbot != ""){
    document.getElementById("td" + tdmarcadasubbot).style.background="#FDEED0";//color de fondo estado normal
	document.getElementById("td" + tdmarcadasubbot).style.color = "#820001"; // color de texto estado normal
  }
  
  document.getElementById("td" + i).style.background="#820001"; //color de fondo marcado
  document.getElementById("td" + i).style.color = "#ffffff"; //color texto marcado

  tdmarcadasubbot = i;
}

