function randomimage(elementName,basePath,imgCount,imgType)
{
var randomnumber=Math.floor(Math.random()*imgCount);
var imgpath=basePath+randomnumber+'.'+imgType
document.getElementById(elementName).src = imgpath;
return true;
}
