function random_imglink(){
  var myimages=new Array()
  //specify random images below. You can have as many as you wish
  myimages[1]="http://www.newbraunfelstxproperty.com/images/headerImages/headerNB1.jpg"
  myimages[2]="http://www.newbraunfelstxproperty.com/images/headerImages/headerNB2.jpg"
  myimages[3]="http://www.newbraunfelstxproperty.com/images/headerImages/headerNB3.jpg"

  //specify corresponding links below
  var imagelinks=new Array()
  imagelinks[1]="#"
  imagelinks[2]="#"
  imagelinks[3]="#"

  var ry=Math.floor(Math.random()*myimages.length)

  if (ry==0)
     ry=1
     document.write('<a href='+'"'+imagelinks[ry]+'"'+'><img src="'+myimages[ry]+'" border=0></a>')
}

  random_imglink()