Hi

I am javacript function in aspx page
function check()
{
var letters = window.document.forms(0).txtItem1.value.length+1;
if (letters <= 16)
{
window.document.forms(0).txtItem1.focus()
}
else
{
window.document.forms(0).txtItem2.focus()
}
}


I want to move focus on 24 textbox( txtItem1 to txtItem24)
can any one tell me how should i move focus on 24 Textbox.
when user eneterd maxlength in each textbox. as above.