var cnt = 14;

var i1, i2, i3, i4;

i1 = Math.round(cnt*Math.random());
i2 = i3 = i4 = i1;

while (i2 == i1)
  i2 = Math.round(cnt*Math.random());
  
while ((i3 == i1) || (i3 == i2))
  i3 = Math.round(cnt*Math.random());

while ((i4 == i1) || (i4 == i2) || (i4 == i3))
  i4 = Math.round(cnt*Math.random());

document.write("<table cellpadding='0' cellspacing='0'>");
document.write("<tr><td width='190'><img class='jimg' width='190' height='150' src='/james/gfx/sq");
document.write(i1);
document.write(".jpg'></td><td width='13'>&nbsp;</td><td width='190'><img class='jimg' width='190' height='150' src='/james/gfx/sq");
document.write(i2);
document.write(".jpg'></td><td width='13'>&nbsp;</td><td width='190'><img class='jimg' width='190' height='150' src='/james/gfx/sq");
document.write(i3);
document.write(".jpg'></td><td width='13'>&nbsp;</td><td width='190'><img class='jimg' width='190' height='150' src='/james/gfx/sq");
document.write(i4);
document.write(".jpg'></td></tr></table>");
