Hi SHAJANCHERIAN,
I think no need to get Textbox id. you can sent the text box object directly to your function.
for example:
<script type="text/javascript">
function gettextboxobject()
{
}
</script>
<input type="text" id="textbox1" onblur="gettextboxobject(this)" önfocus="gettextboxobject(this)" />
you can get the textbox object directly.
please reply if you want more.