Hasta ahora no había necesitado pasar ningún argumento a la función que contiene el readyState
Código:
  
Así que me salta el error: sid no tiene propiedad. ¿Como puedo solucionarlo?var xmlHttp
function ModValor(rastro, sid) {
    if (sid.length == 0) { 
          document.getElementById('porcion_'+sid).innerHTML="";
         return;
      }
xmlHttp=GetXmlHttpObject()
    if (xmlHttp == null) {
          alert ("Tu navegador no soporta AJAX!");
          return;
      } 
var url="modificar.asp";
url=url+"?r="+rastro;
url=url+"&s="+sid;
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
} 
function stateChanged(sid) { 
    if (xmlHttp.readyState == 4) { 
        document.getElementById('porcion_'+sid).innerHTML=xmlHttp.responseText;
    }
}
Gracias
 
