code:<script language="Javascript">var element = document.getElementById("IdOfTheDivYouWant");element.innerHTML = element.innerHTML.substr(0,4);</script>