<script language="javascript">
function change_path()
{
var obj=document.all.image1;
var file_path = document.all.file_path
alert(file_path.value);
obj.src=file_path.value;
}
</script>
<img id="image1" />
<input type="file" name="file_path" οnchange="change_path()">