grazie, ma dopo come recupero il valore?

ho provato così

codice:
function cerca(el)  {
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)   {   
alert ("Browser does not support HTTP Request")
return
}
 str=el.getAttribute('value'); 
alert (str)
}
ma non funziona