function changeimg(obj, im){
	// Find the image table
	var imgbox = document.getElementById('widget1');
	var sec = document.getElementById('sections');
	
	var innerdivs = sec.getElementsByTagName('div');
	
	// Get the value of the anchor tag href
	var links = obj.getElementsByTagName('a');
	var linksrc = links[0].href;
	
	// Find and change the image and link
	var theimg = imgbox.getElementsByTagName('img');
	theimg[0].src = im;
	var thelink = imgbox.getElementsByTagName('a');
	thelink[0].href = linksrc;
	
	// Change background colors
	for (var i=0; i<innerdivs.length; i++){
		innerdivs[i].style.background = "#fff";
	}
	
	obj.style.background = "#F2F6F9";
}