<html>
<script type="text/javascript">
var x = 3;
function changeTextOne(){
document.getElementById('boldStuff').innerHTML = 'Shane ' + x;
}
function changeTextTwo(){
document.getElementById('boldStuff').innerHTML = 'Harry ' + x*x;
}
function changeTextThree(){
document.getElementById('boldStuff').innerHTML = 'Matt ' + x*x*x;
}
</script>
<p>Welcome to the site <b id='boldStuff'>dude</b> </p>
<input type='button' onclick='changeTextOne()' value='Change Text to..'/>
<input type='button' onclick='changeTextTwo()' value='Change Text to something else'/>
<input type='button' onclick='changeTextThree()' value='or if still not happy'/>
</html>