function clearme(myfield) {
	if (myfield.defaultValue==myfield.value) myfield.value=""
}






function showrands() {
var myhost=window.location.host;
var currentdate = 0
var core = 0

function StringArray (n) {
  this.length = n;
  for (var i =1; i <= n; i++) {
    this[i] = ' '

  }
}

image = new StringArray(12)
image[0] = 'couragebathoil'
image[1] = 'couragebodyoil'
image[2] = 'couragecandle'
image[3] = 'lovebathoil'
image[4] = 'lovebodyoil'
image[5] = 'lovecandle'
image[6] = 'strengthbathoil'
image[7] = 'strengthbodyoil'
image[8] = 'strengthcandle'
image[9] = 'wisdombathoil'
image[10] = 'wisdombodyoil'
image[11] = 'wisdomcandle'

xalt = new StringArray(12)
xalt[0] = 'courage bath oil'
xalt[1] = 'courage body oil'
xalt[2] = 'courage candle'
xalt[3] = 'love bath oil'
xalt[4] = 'love body oil'
xalt[5] = 'love candle'
xalt[6] = 'strength bath oil'
xalt[7] = 'strength body oil'
xalt[8] = 'strength candle'
xalt[9] = 'wisdom bath oil'
xalt[10] = 'wisdom body oil'
xalt[11] = 'wisdom candle'

xlink = new StringArray(12)
xlink[0] = 'courage/bathoil.asp'
xlink[1] = 'courage/bodyoil.asp'
xlink[2] = 'courage/candle.asp'
xlink[3] = 'love/bathoil.asp'
xlink[4] = 'love/bodyoil.asp'
xlink[5] = 'love/candle.asp'
xlink[6] = 'strength/bathoil.asp'
xlink[7] = 'strength/bodyoil.asp'
xlink[8] = 'strength/candle.asp'
xlink[9] = 'wisdom/bathoil.asp'
xlink[10] = 'wisdom/bodyoil.asp'
xlink[11] = 'wisdom/candle.asp'

var ran = 60/image.length

function ranimage() {
  currentdate = new Date()
  core = currentdate.getSeconds()
  core = Math.floor(core/ran)
    image=image[core]
    xlink=xlink[core]
    xalt=xalt[core]
}
ranimage()
document.write("<a href=\"shop/"+xlink+"\">");
document.write("<img src=\"images/home/rands/"+image+".jpg\" alt=\""+xalt+"\" width=\"634\" height=\"336\" border=\"0\" />");
document.write("</a>");
}
