





function random_img(type)
{
	//Possible Folder
	// - trematode
	// - nematode
	if(type == "t")
	{
		folder = "trematode";
		folderCount = 12;
	}
	if(type == "n")
	{
		folder = "nematode";
		folderCount = 8;
	}
	
	//specify corresponding images below
	var myimages=new Array();
	  
	//For Loop for all the images
	for(i = 0; i < folderCount; i++)
	{
		myimages[i]='../vet_common/images/helminthology/' + folder + '/' + i + '.jpg';
	}
	//variable to choose a random number from 0 to the maximum amount of images
	var ry=Math.floor(Math.random()*myimages.length);

	//To write the random image and link into the table of the template 
	document.write('<img src="'+myimages[ry]+'" border="0" alt='+'"MHL Images"'+' align="right"></a>')
}

  //Function call
  //random_img();