<!--

  function foto2(id,name,desc,kod,foto, width, height,weight)
  { bigfoto=document.getElementById("bigfot");
  	var foto_path="/photo/gallery/";
  	var desc=document.getElementById("desc_"+id).innerHTML;
  	var body="";
//OnClick="javascript:foto('+id+','+name+','+desc+','+kod+','+foto+','+width+','+height+','+weight+');"
  	var body="<table cellpadding=0px cellspacing=0px><tr><td align=left width=400px><h2 class=top style=margin:0px>"+unescape(name)+"</h2><br></td></tr><tr><td title='Щелкните чтобы закрыть фото.' valign=top><img src="+foto_path+foto+" border=0 alt='"+unescape(name)+"' OnClick=\"bigfoto.innerHTML=''\" align=bottom class=img_gal><br><br><iframe src=/count_photo.php?id="+id+" width=0 height=0></iframe><p class=text style=margin-left:0px>"+unescape(desc)+"</td></tr></table>";
  	bigfoto.innerHTML=body;

  }

// функция для вывода большого фото товара
  function foto(id,name,desc,kod,foto, width, height,weight)
  {
	var foto_path="/photo/gallery/";
  	var desc=desc.replace("&nbsp;"," ");
  	myfoto=open("", "fotoWindow","width="+width+", height="+height+", status=no, toolbar=no, menubar=no, scrollbars=no, left=20, top=20, screenx=20, screeny=20");
  	var body="";
  	var body='<img src='+foto_path+foto+' alt='+unescape(name)+'>';
  	myfoto.document.open();
  	myfoto.document.write('<html><head><title>Фото '+unescape(name)+'</title><meta http-equiv="Content-Type" content="text/html; charset=windows-1251"><link rel=stylesheet type="text/css" href="style.css"></head><body style="padding:0px; margin:0px; font-family:Arial; color:#2e6db4">');
  	myfoto.document.write(body);
  	myfoto.document.write("</body></html>");
//закрыть документ - (но не окно!)
  	myfoto.document.close();
//  	myfoto.moveTo(0, 0);
//  	myfoto.focus();
  	var width=0;
  	var height=0;
  }


//-->

