
function linkmojo() {

// Link Mojo: A Link Exchange For Small Software Developers
// Copyright 2007/2010 Topcat/Michael S. Sanders

var url=[] // url array

url[8]="Ian's BCX Page|http://www.bcxgurus.com/bcxusers/Ian/Default.html"
url[7]="Symbiotic Software Development|http://www.symbioticsoftware.net"
url[6]="BCX Games, Puzzles & Curiosities|http://www.bcxgurus.com/bcxusers/gpc/index.html"
url[5]="Hytext Consulting|http://hytext.com/index.htm"
url[4]="Krisu's BASIC programming & osBasic website|http://www.basicprogramming.org/ekv/index.php"
url[3]="Parabolic Logic|http://www.paraboliclogic.com/index.html"
url[2]="Programmer's Haven|http://codecraft.proboards59.com"
url[1]="Topcat Software LLC.|http://www.topcat.hypermart.net/index.html"
url[0]="Link Mojo|http://www.topcat.hypermart.net/linkmojo.html"

var rnd=Math.floor(Math.random()*url.length)

while (url[rnd].indexOf(document.location.host) > -1) {
  rnd=Math.floor(Math.random()*url.length)
}

var tmp=url[rnd].split("|",2)
var lnk="<a href=" + tmp[1] + " target=_blank>" + tmp[0] + "</a>"

document.write(lnk)

}
