function rand ( n )
{
  return ( Math.floor ( Math.random ( ) * n + 1 ) );
}
var random_images = new Array ( );
random_images[0] = "mm07j5.gif";
random_images[1] = "ct74ft.gif";
random_images[2] = "zhtu78.gif";
random_images[3] = "903rk4.gif";
random_images[4] = "8bv64t.gif";
random_images[5] = "jvx53t.gif";
random_images[6] = "an53we.gif";
random_images[7] = "5k2w3v.gif";
random_images[8] = "w5imsb.gif";
random_images[9] = "l7sc4x.gif";

var random_image_value = new Array ( );
random_image_value[0] = "MM07J5";
random_image_value[1] = "CT74FT";
random_image_value[2] = "ZHTU78";
random_image_value[3] = "903RK4";
random_image_value[4] = "8BV64T";
random_image_value[5] = "JVX53T";
random_image_value[6] = "AN53WE";
random_image_value[7] = "5K2W3V";
random_image_value[8] = "W5IMSB";
random_image_value[9] = "17SC4X";

// Pick a random image from the list,
// and set the image source to that image

function pick_image ( )
{
	var intIndex=rand(10);
	var sImage=random_images[intIndex-1];
	var sImageValue=random_image_value[intIndex-1];
  document.getElementById("random_image").src = "../rfpadmin/randomimage/" + sImage;
  document.getElementById("random_image_value").value = sImageValue;
  
}