The only thing I can say based on your explanation is - yup, its doable.
Some links...uhhhh....the only links I can come-up with are those to the
DOM tutorials. There probably is no ready solution, but hope this gives you a starting point in case you are not familiar with DOM.
- m
Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81