function getImgFileName() {

var mydiv = document.getElementById('mydiv');
var imgPath = mydiv.getElementsByTagName('img')[0].src;
var imgFile = imgPath.substring(imgPath.lastIndexOf('/')+1,imgPath.length);

var realpath = 'http://lowfieldtimberframes.co.uk/admin/spawnew/uploads/images/'+imgFile;

mydiv.getElementsByTagName('img')[0].src = realpath;

//alert(realpath);

}