﻿// JScript File
function GetRandomParameterValue()
{
    return Math.random();
}

function UpdateImage(p_imageId, p_imgBaseSrc, p_updateInMs)
{
	var img = document.getElementById(p_imageId);
	if(null != img && "undefined" != typeof(img))
	{
		img.src = p_imgBaseSrc + "?rand=" +  GetRandomParameterValue();
		var imgUpdate = setInterval("_Update('"+p_imageId+"', '"+p_imgBaseSrc+"')",p_updateInMs); 
	}
}

function _Update(p_imageId, p_baseSrc)
{
	var img = document.getElementById(p_imageId);
	if(null != img && "undefined" != typeof(img))
	{
		img.src = p_baseSrc + "?rand=" +  GetRandomParameterValue();
	}
}

