function loadPictureXMLDoc(pic,sessid) {
    
   var url="productsimage.php?pic="+pic+"&reverse="+rev+"&osCsid="+sessid+"&r=" + Math.floor(Math.random() * 99999);
/*   document.getElementById('prodimg').innerHTML = "<img border='0' vspace='5' hspace='5' src="+url+"/>";*/
   document.products_image.src = url;
   document.getElementById('prodaction').onclick = null;
   document.getElementById('prodaction').removeAttribute("href");
   /*document.getElementById('enlarge').innerHTML = "";*/
   backToTop(300);

   } 

var t;
function backToTop(toX) {
  t = setTimeout('goBackToTop()', 1);
}
function goBackToTop() {
    if (document.documentElement.scrollTop > 300) {
        window.scrollBy(0,-20);
        goBackToTop();
    } else {
      clearTimeout(t);
    }
}

