function showImage(url) {
var el=document.getElementById('previewImage');
if (el) el.src=url;
document.getElementById('currImage').value=url;
}