function showimage(file) {
    var prev=document.getElementById('preview');
    prev.src='preview.php?img='+file;
}
