
function upokno_all(adres,imja,vis,dlin)
{
okno_all=window.open(adres,imja,"height=5, width=350");
//opener.focus();
var v_a_n=(((screen.height)/2)-(vis/2));
var v_a_n=(((screen.width)/2)-(dlin/2));
okno_all.moveTo(v_a_n,v_a_n)
}
var okno;
function upokno(adres)
{
okno=window.open(adres,"viza","height=350,width=600");
okno.focus();

var v_h=(((screen.height)/2)-(350/2));
var v_w=(((screen.width)/2)-(600/2));

okno.moveTo(v_w,v_h)


}
var okno_n;
function upokno_n(adres,vis,dlin)
{
okno_n=window.open(adres,"foto","height="+vis+","+"width="+dlin);
okno_n.focus();
var v_h_n=(((screen.height)/2)-(vis/2));
var v_w_n=(((screen.width)/2)-(dlin/2));
okno_n.moveTo(v_w_n,v_h_n)
}

var okno_cam;
function upokno_cam(adres,vis,dlin)
{
okno_cam=window.open(adres,"foto","height="+vis+","+"width="+dlin);
okno_cam.focus();

var v_h_n=(((screen.height)/2)-(vis/2));
var v_w_n=(((screen.width)/2)-(dlin/2));

okno_cam.moveTo(v_w_n,v_h_n)

}

var okno_bol;
function big_open_out(adres)
{
okno_bol_out=window.open(adres,"sms","fullscreen=1, height=600,width=700");

okno_bol.moveTo(5000,0);
okno_bol.resizeTo(700,600);


var v_h=(((screen.height)/2)-(600/2));
var v_w=(((screen.width)/2)-(700/2));

okno_bol.moveTo(v_w,v_h)
okno_bol.focus();

};
var okno_bol;
function big_open(adres)
{
okno_bol=window.open(adres,"okno","height=600,width=700,scrollbars=1,resizable=1");

okno_bol.moveTo(5000,0);
okno_bol.resizeTo(700,600);


var v_h=(((screen.height)/2)-(600/2));
var v_w=(((screen.width)/2)-(700/2));

okno_bol.moveTo(v_w,v_h)
okno_bol.focus();

};
var okno_zak;
function zak_open(adres)
{
okno_zak=window.open(adres,"okno","height=250,width=600,scrollbars=0,resizable=0");

okno_zak.moveTo(5000,0);
okno_zak.resizeTo(600,250);


var v_h=(((screen.height)/2)-(250/2));
var v_w=(((screen.width)/2)-(600/2));

okno_zak.moveTo(v_w,v_h)
okno_zak.focus();

};
function vertual(url, width, height, title) 
{
 win=open('','','width='+width+',height='+height+',scrollbars=no,menubar=no,status=no,location=no,fullscreen=no,directories=no,resizable=no');
 win.document.open();
 win.document.write("<html><head><title>"+title+"</title>");
 win.document.write("<meta http-equiv='Content-Type' content='text/html; charset=windows-1251'>");
 win.document.write("</head><body style=\"margin: 0;\">");
 win.document.write("<img src='"+url+"' width='"+width+"' height='"+height+"' border='0'>");
 win.document.write("</body></html>");
 
 var v_h_n=(((screen.height)/2)-(height/2));
var v_w_n=(((screen.width)/2)-( width/2));

win.moveTo(v_w_n,v_h_n)

 win.document.close();
}
