var pic = document.getElementById("preview"+Count);
var file = document.getElementById(id);
var filePath = file.files[0];
var reader = new FileReader();
reader.readAsDataURL(filePath);
reader.onload = function (e) {
pic.src = this.result;
}