The parameter that i passed to the function will be in the below format.
var attr = {node:"<tr>,id=tr1$<td>,id=td1,colspan:2,style.wid th=100%$<div>,id=oWaiter,name=oWaiter,style=positi on:relative,border:1px gray solid,overflow:hidden,width:200px,height:15px,back ground-color:#FFF;"}
for eg: when the value style.width=100% passed to parameter it should assign to the element. If i use setattributes instead of 'style=position:relative' it will return 'style=position=relative'. which is not correct.