function $(id){ return document.getElementById(id); } if(!Array.prototype.indexOf){ Array.prototype.indexOf=function(obj, fromIndex) { if(fromIndex==null || fromIndex<0) fromIndex=0; for(var i=fromIndex;i