CODE
function $(id){
return document.getElementById(id);
}
return document.getElementById(id);
}
and thats it, so instead of
CODE
document.getElementById('myidhere').style.display="none";
u can do
CODE
$('mydivhere').style.display="none";
simple, and saves time, aswell as looking better