﻿    function getrandom()
    {
      return parseInt(Math.random()*1000);
    }

    function showimagead(dom,photoArray,width)
    {
     var image=photoArray;
     var imgWidth=width;
     var num = getrandom()%image.length;
     var showhtml="<img src=\""+dom+"/"+image[num]+"\" width=\""+imgWidth+"\" />";
     document.write(showhtml);
    }