<!DOCTYPE html>
<html>
<script src="utility.js" type="text/javascript"></script>
<script>
function selectPart1() {
selectText('div1');
}
function selectPart2() {
selectText('div2');
}
</script>
<body>
<div id="div1">
<img src="icon16.png">
<p> first part </p>
</div>
<div id="div2">
<img src="icon128.png">
<p> second part </p>
</div>
</body>
</html>