
function getImageUrl(theImage,img,w,h,type,bc) {
	if(theImage.onErrorEvent==null)
	{
		theImage.src = "/BDS/image.ashx?img="+img+"&w="+w+"&h="+h+"&t="+type+"&bc="+bc;
		theImage.onErrorEvent = true;
	}
	else
	{
		theImage.style.display="none";
		theImage.parentElement.removeChild(theImage);
	}
	return true;
}
