function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}



  function doClick( el ) {
    alert("Выбран пункт: " + el.id)
  }




     <!--
        var DIV_CUR_SHOW = -1; // кусочек который сейчас виден, если = -1, то ничего не видно

        function hide ()
        {
            if (DIV_CUR_SHOW == -1) return;

            obj = eval ("document.all.div" + DIV_CUR_SHOW);
            obj.style.display = "none";
        }

        function show (id)
        {
          hide ();

          if (DIV_CUR_SHOW == id)
          {
            DIV_CUR_SHOW = -1;
            return;
          }

          DIV_CUR_SHOW = id;
          obj = eval ("document.all.div" + id);
          obj.style.display = "block";
        }
      //-->
     
      function VK_validate_form (strAlr, objForm)
  {
    for (arg = 2; arg < arguments.length; arg++)
      if (!objForm.elements[arguments[arg]].value)
      {
         alert (strAlr);
         objForm.elements[arguments[arg]].focus ();
         return false;
      }
    return true;
  } 
  
function openWin1(){
 myWin=open("p641.php","windowDisplay","width=520, height=400 scrollbars=yes, noresize");
}
function openWin2(){
 myWin=open("p8300.php","windowDisplay","width=520, height=400 scrollbars=yes, noresize");
}
function openWin3(){
 myWin=open("p8500.php","windowDisplay","width=520, height=400 scrollbars=yes, noresize");
}
function openWin5(){
 myWin=open("p8510.php","windowDisplay","width=520, height=207 scrollbars=no, noresize");
}
function openWin6(){
 myWin=open("p5000.php","windowDisplay","width=520, height=280 scrollbars=no, noresize");
}
function openWin7(){
 myWin=open("p6500.php","windowDisplay","width=520, height=280 scrollbars=no, noresize");
}
function openWin8(){
 myWin=open("p451.php","windowDisplay","width=520, height=400 scrollbars=yes, noresize");
}
function openWin9(){
 myWin=open("p9000.php","windowDisplay","width=520, height=100 scrollbars=no, noresize");
}