// JavaScript Document
function changeimg(sphoto){
	var end_index = sphoto.id.indexOf('_'); 
	var img_id = sphoto.id.substring(0,end_index);
	var linkimg_id = "link"+img_id;
	//alert(img_id);
	document.getElementById(img_id).src = sphoto.src;
	s = new String(document.getElementById(img_id).src);
	a = s.replace("/m_","/");
	document.getElementById(linkimg_id).href = a;

}
