var l_CachedImg = new Array();
    l_CachedImg[0] = "/i/i1s.jpg";
    l_CachedImg[1] = "/i/i2s.jpg";
    l_CachedImg[2] = "/i/i3s.jpg";
    l_CachedImg[3] = "/i/i4s.jpg";
    l_CachedImg[4] = "/i/i5s.jpg";

    l_Preload = new Array();
    for (i = 0; i < l_CachedImg.length; i++) {
      l_Preload[i] = new Image();
      l_Preload[i].src = l_CachedImg[i];
    }

function mds_Active(n) {
  obj = document.getElementById("id" + n);
  obj.src = l_CachedImg[n - 1];
}

function mds_OpenStandard() {
   nWidth = 650;
   nHeight = 400;
   leftVal = (screen.width - nWidth) / 2; 
   topVal = (screen.height - nHeight) / 2; 
   window.open("http://www.tehc.ru/gost/prn", "", "status=no,statusbar=no,toolbar=no, scrollbars=yes, resizable=no, menubar=no, status=no, width="+nWidth+", height="+nHeight+", left=" + leftVal +", top="+topVal );

   return false;
}

function mds_Print() {
   window.open(window.location.href + "prn", "", "");

   return false;
}
