function galeries_window(path,pic_width,pic_height) {
//win_left=(window.screen.width-571)/2+80;
if (window.screen.width<pic_width) {
    win_width = window.screen.width-20;
} else {
    win_width = pic_width;
}
if ((window.screen.height-80)<pic_height) {
    win_height = window.screen.height-80;
} else {
    win_height = pic_height;
}
//win_top=(window.screen.height-400)/2;
    window.open('show_pice644.html?pic='+path+'&width='+pic_width+'&height='+pic_height,'mywindow','resizable=no,scrollbars=yes,width='+(win_width+16)+',height='+(win_height+0)+',left=0,top=0');
}