function preloadImages() {
  var d=document; 
  if(d.images) { 
      if(!d.MMp) d.MMp=new Array();
      var i,j=d.MMp.length,a=preloadImages.arguments; 
      for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MMp[j]=new Image; d.MMp[j++].src=a[i];}
  }
}

function changeImage(ImageName, ImageNumber) {
  if (document.MMp){document.images[ImageName].src=document.MMp[ImageNumber].src;}
}

function show_pic(pname,  ptitle, w, h) {  
  var hh = h+1;
  var ww = w+1;
  NWin = open ('', 'Pic', 'menubar=0,location=0,status=0,toolbar=0,scrollbars=0,resizable=0,height='+hh+',width='+ww);
  NWin.document.open();
  NWin.document.write('<HTML><HEAD><TITLE>'+ptitle+'</TITLE></HEAD>');
  NWin.document.write('<STYLE type=text/css>BODY {margin: 0px 0px 0px 0px;}</STYLE>');
  NWin.document.write('<BODY bgColor=#DDE3F5><TABLE width=100% height=100% cellspacing=0 cellpadding=0 border=0><TR><TD height=100% width=100% align=center valign=center><IMG src='+pname+' alt="'+ptitle+'" align=center></TD></TR></TABLE></BODY></HTML>');
  NWin.document.close();
}

function OpenNew(url) {  
  NWin = open (url, 'additional', 'menubar=0,location=0,status=0,toolbar=0,scrollbars=1,resizable=1,height=500,width=600');
}

function changeURL(Url) {
  location.href=Url;         // +document.form.;
}

