function $(id) { //alert(id); if(browsertyp.NS6) { return document.getElementById(id); } else { if(browsertyp.IE) { return document.all(id); } } }