<script>
function lazyloadimg(){
imgs=document.getElementsByTagName("img");
imgsnum=imgs.length;
for(i=0;i<imgsnum;i++){
if((typeof(imgs[i].src)=='undefined'||imgs[i].src=='')&&imgs[i].getAttribute('imgsrc')!=null){
imgs[i].src=imgs[i].getAttribute('imgsrc');
}
}
}
lazyloadimg();
</script>