What does this have to do with P2P feedback? You need to post this question in the Javascript forum.
The answer to your query is as follows:
<script type="text/javascript" language="javascript">
function alertBox (txt)
{
alert(txt.id);
}
</script>
<input type="textbox" id="foo" name="foo" onFocus="alertBox(this);" />
hth.
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========