function link(url, image, alt) 
{   
this.url = url
this.image = image   
this.alt = alt
}
var intNumAvailable = 11
var intNumRequired = 5
intSubset = new Array(intNumRequired)
intRange = new Array(intNumAvailable)
typLink = new Array(intNumAvailable)
typLink[1] = new link("http://www.philpreen.co.uk/folk/morris/webring/","mdwebring-logo.jpg","Morris Dancer's Webring")
typLink[2] = new link("http://mddl.blogspot.com/","mddl-logo.gif","Morris Dancing Discussion List")
typLink[3] = new link("http://www.morrisfed.org/","morrisfed-logo.gif","The Morris federation")
typLink[4] = new link("http://homepage.ntlworld.com/trevor.gilson/sw/","solentwaves-logo.gif","Newsletter of the Folk Association of South Hants")
typLink[5] = new link("http://www.tangwyn.clara.net/jackstraws/","jackstraws-logo.gif","Jack Straws Morris")
typLink[6] = new link("http://homepage.ntlworld.com/trevor.gilson/megabops/","m27-logo.jpg","The M27 MegaBops")
typLink[7] = new link("http://www.focsle.org.uk/","focsle-logo.jpg","The Fo'c'sle Folk Club")
typLink[8] = new link("http://www.meltingpot.org.uk/","meltpot-logo.jpg","The Melting Pot")
typLink[9] = new link("http://www.scoff.org.uk/","scoff-logo.jpg","The Southern Counties Folk Federation")
typLink[10] = new link("http://www.blodtandsmidigt.com/","blodt-logo.gif","Pete Sheil's Web Site")
typLink[11] = new link("http://www.efdss.org/","efdss-logo.gif","English Folk Dance & Song Society")

for (var intCountA = 1; intCountA <= intNumAvailable ; intCountA++ )
{
  intRange[intCountA]=intCountA
}
for (var intCountB = 1; intCountB <= intNumRequired ; intCountB++ )
{
  var intChosen = Math.floor(Math.random()*intNumAvailable)+1
  var intCountD=1
  for (var intCountC = 1; intCountC <= intNumAvailable ; intCountC++ )
  {
    if (intCountC == intChosen)
    {
      intSubset[intCountB] = intRange[intCountC]
    }
    else
    {    
      intRange[intCountD] = intRange[intCountC]
      intCountD++
    }
  }
intNumAvailable--
}
document.write ("<TR>")
for (var intCountE = 1 ; intCountE <= intNumRequired ; intCountE++ )
{
  document.write ("<TD WIDTH=20%>")
  if (intCountE > 1 && intCountE < intNumRequired){document.write ("<CENTER>")}
  document.write ("<A HREF=\""+typLink[intSubset[intCountE]].url+"\"><IMG ")
  if (intCountE == intNumRequired){document.write ("ALIGN=RIGHT")}
  document.write (" BORDER=0 SRC=\"./images/xtra/"+typLink[intSubset[intCountE]].image+"\"  ALT=\""+typLink[intSubset[intCountE]].alt+"\"></A>")
  if (intCountE > 1 && intCountE < intNumRequired){document.write ("</CENTER>")}
  document.write ("</TD>")
}
document.write ("</TR>")