ImageCount = 3;
img = Math.floor(Math.random() * ImageCount);
document.write("<IMG SRC='_userdata/js/img/main"+img+".jpg'>");
