﻿var imgs = document.images; 
for(var i = 0;i < imgs.length;i++){ 
	imgs[i].onerror = function(){ 
		this.src = "images/notpic.jpg"; 
	} 
}