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 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 GetMap(img,vx,vy,objname)
{
var vxm=vx+40;
var vym=vy+30;
myWin= window.open ("", "window",
    "width="+vxm+",height="+vym+",toolbar=yes,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 ChangeImage (srcmid,vx,vy,imgn,alttext)
{
    selm=document.getElementsByTagName("img");
    document.middle_image.src=srcmid;
	document.middle_image.width=vx;
	document.middle_image.height=vy;
	document.middle_image.alt=alttext;
	for (i=0; i < selm.length ; i++) {
       selm[i].id='notactive';
	   if(selm[i].name=="small_image_" + imgn ) selm[i].id='active';
	}
}
