
//function to call two different random images
function hpimgs(inumb,itype) {

	var i1 = 0;
	var i2 = 0;

	i1 = Math.ceil(Math.random() * inumb);
	i2 = Math.ceil(Math.random() * inumb);

	while (i2 == i1) {
		i2 = Math.ceil(Math.random() * inumb);
	}

  if (document.getElementById) {
    document.getElementById("hpi1").src="images/cb_hmimage_" + i1 + "." + itype;
    document.getElementById("hpi2").src="images/cb_hmimage_" + i2 + "." + itype;
  }
}

