risolto....

<tag id="id" onClick="fun(this.id)" >

grazie a tutti per l'aiuto