var d = document;
d.getElementById
document.getElementById
<img src="images/discount.png" id="discount" style="display: none;">