function GetImage(img,vx,vy,objname)
{
var vxm=vx+40;
var vym=vy+30;
myWin= window.open ("", "window",
    "width="+vxm+",height="+vym+",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes");
myWin.focus();
myWin.document.open();
myWin.document.write('<html><head><meta http-equiv="content-type" content="text/html; charset=windows-1251">');
myWin.document.writeln('<title> '+objname+'</title>');
myWin.document.writeln('<p><img src='+img+' width='+vx+' height='+vy+' onClick=window.close(); style=CURSOR:hand;></p>  ');

myWin.document.close();
}

function GetNewWindow(vx,vy,num)
{
var vxm=vx+40;
var vym=vy+150;
myWin=window.open ("/gallery/open_w_photo.php?phid="+num+"","window",
    "width="+vxm+",height="+vym+",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes");
myWin.focus();
}
function GetNewWindowEng(vx,vy,num)
{
var vxm=vx+40;
var vym=vy+150;
myWin=window.open ("/eng/gallery/open_w_photo.php?phid="+num+"","window",
    "width="+vxm+",height="+vym+",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes");
myWin.focus();
}

function GetText(name,text)
{
myWin= window.open ("", "window",
 "width=400,height=400,toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes");
myWin.focus();
myWin.document.open();
myWin.document.write('<html><head><meta http-equiv="content-type" content="text/html; charset=windows-1251">');
myWin.document.writeln('<title> '+name+'</title></head>');
myWin.document.writeln('<body  onClick=window.close();  style=CURSOR:hand; style="margin:10px;background:#F7F6EF;font-family:Arial;font-size:75%;">');
myWin.document.writeln('<div style="margin:10px;"><p>'+text+'</p></div> </body></html> ');
myWin.document.close();
}

function  VoteAdmit() {
	if (confirm("Вы уверены? Проголосовать на конкурсе можно только за 1 фото.")) {
	   window.opener.location.reload();
	  return true;
	} else {
	  return false;
  	}

}

function  VoteAdmitEng() {
	if (confirm("Are you sure? You may choose only 1 photo.")) {
	   window.opener.location.reload();
	  return true;
	} else {
	  return false;
  	}

}

 function SubscrB(){
   alert("Спасибо за внимание! ");
   return true;
 }
