Replacement of setAttribute for IE6-7
<p>I am using <code>elem.setAttribute()</code> method extensively though out my javascript. My script is working fine on all browsers except IE6 and 7. I know both of them doesn't support this method. </p>

<p>Is there any way to generalize or redefine <code>setAttibute()</code> so that it is recognized by all browsers, since my JavaScript is too long to be modified separately line by line.</p>
