function test(){
document.all.showimg.src=document.all.file1.value;
}
<table border="0" class="perview">
<tr>
<th WIDTH="110">实验室示意图:</th>
<th width="50%">预览图</th>
</tr>
<tr>
<td align="center" height="400" WIDTH="200"><input id="file1" name="bean.labImg" type="file" οnchange="test()" /></td>
<td align="center" height="400" WIDTH="400"><img id="showimg" src="${imageadd?if_exists}" /></td>
</tr>
</table>