//f_img.appendChild(new_div_text);



document.write('<table cellspacing=0 cellpadding=0 width=100% height=100% style="position: absolute;display:none" border=0 id="full_holder">');
document.write('<tr><td style="text-align:center">');
document.write('<table cellspacing=0 cellpadding=0 border=0 width=640>');
document.write('<tr><td style="border:0px none #cccccc;text-align:right;padding:0xp;margin:0px">');
document.write('<a href=javascript:{} onclick="hide_full();"><b style="text-decoration:none;color:#ffffff;font-family:tahoma;font-size:11px;margin:0px;padding:5px;background-color:#cccccc">закрыть</b></a>');
document.write('</td></tr>');
document.write('<tr><td style="border:1px solid #aaaaaa;padding:3px;background-color:#ffffff">');
document.write('<p><img id="img_full" style="margin:0px;padding:0px"></p>');
document.write('</td></tr>');
document.write('</table>');
document.write('</td></tr>');
document.write('</table>');
//var popup_img = document.getElementById("popup_1");
//var full_img=document.createElement("img");


//var new_div_text=document.createTextNode("some text");

//popup_img.appendChild(full_img);

function show_full(img_src,img_wdt,img_hgh) {
  var f_img = document.getElementById("img_full");
  var f_holder = document.getElementById("full_holder");

  f_img.src=img_src;
  f_holder.style.display='';
  f_img.style.cursor='hand';
  f_img.onclick=function() { f_holder.style.display='none'; f_img.src=''; }

}

function hide_full() {
  var f_img = document.getElementById("img_full");
  var f_holder = document.getElementById("full_holder");
  f_holder.style.display='none'; f_img.src='';
}
