function EvalSound(soundobj) { var thissound=document.getElementById(soundobj); thissound.play(); } function playme(your_sound){ document.getElementById('my_ID').src=your_sound }