rem: prev.setAttribute('src',obj.value); 
add: prev.setAttribute('src','file: 
context: function imagepreview(obj) {   prev = document.getElementById('preview');   prev.style.visibility = 'hidden';   var i = 0;   var delimiter = ' ';    var imageext = 'gif jpg jpeg png';   var isimage = false;   var _tempArray = new Array();   _tempArray = imageext.split(delimiter);   for(i in _tempArray) {      if(obj.value.indexOf('.' + _tempArray[i]) != -1) { // file is an image.        isimage = true;      }    }    if (isimage) {      prev.setAttribute('src',obj.value);     prev.style.visibility = 'visible';   }}
meta: 791	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/42b2d7a3870d57ad816b249544186c0446c092d2/asset.js/clean/src/webapp/lenya/resources/javascript/asset.js