// changes the url in  image.src, if necc.
function setImageSource(img, url) 
{ 
	img.src = url;
}

// function to alter the url, used in all the functions below
function AlterURL(url, popUp)
{
	if (popUp && (url.indexOf("http://") == -1 ))
	{
		url = "http://" + document.location.host + url;
	}
	return url;
}
