function readURL(input)
{
document.getElementById("tableBanner").style.display = "block";
if (input.files && input.files[0]) {
var reader = new FileReader();
reader.onload = function (e) {
document.getElementById('tableBanner').src = e.target.result;
}
reader.readAsDataURL(input.files[0]);
}
}
-------------------------