function changeImage(idNode, imgUrl, node, idActive, caption) {
	if (node) node.blur();
	
	var imgNode = document.getElementById(idNode);
	if (!imgNode) return false;
	
	if (imgNode.src != imgUrl) {
		imgNode.src = imgUrl;
	}
	
	var activeNode = document.getElementById(idActive);
	if (activeNode) activeNode.id = false;
	if (node && idActive) node.id = idActive;
	
	var captionNode = document.getElementById(idNode+"Caption");
	if (!captionNode) {
		return false;
	}
	
	while (captionNode.firstChild) {
		captionNode.removeChild( captionNode.firstChild );
	}
	
	captionNode.appendChild( document.createTextNode( caption||"" ) );
	
	return false;
}
