<html>
<head>
<style type="text/css">
@media print {
.noprint { display: none; }
}
</style>
<script type="text/javascript">
function f(dId)
{
document.getElementById("pr").innerHTML = document.getElementById(dId).innerHTML;
}
</script>
</head>
<body>
<div id="d1" class="noprint">
First DIV<br>
Some text
</div>
<div id="d2" class="noprint">
Second DIV<br>
Tram-pam-pam!
</div>
<div id="d3" class="noprint">
Third DIV<br>
ABCDEGFGH abcdefgh 1234567890
</div>
<div class="noprint">
<select onchange="f(this.options[this.selectedIndex].value)">
<option value="d1">First div</option>
<option value="d2">Second div</option>
<option value="d3">Third div</option>
</select>
</div>
<div id="pr">
</div>
</body>
</html>