//<!--

var iShift = 0;

function setNewURL(url)
{
	        h_skr = screen.height
	        w_win = Math.floor((screen.width-iShift)/1.2);
    	    h_win = Math.floor(h_skr/2);

		    l_win = iShift + Math.floor((screen.width-iShift-w_win)/2);
	        t_win = Math.floor((h_skr-h_win)/4);

		    winop = window.open(url,"","toolbar=no,status=no,location=no,resizable=yes,scrollbars=yes,menubar=yes,width="+w_win+",height="+h_win+",top="+t_win+",left="+l_win);
}

function setNewURLname(url,name)
{
        h_skr = screen.height
        w_win = Math.floor((screen.width-iShift)/1.2);
        h_win = Math.floor(h_skr/2);

	    l_win = iShift + Math.floor((screen.width-iShift-w_win)/2);
        t_win = Math.floor((h_skr-h_win)/4);
		
	    winop = window.open(url,name,"toolbar=no,status=no,location=no,resizable=yes,scrollbars=yes,menubar=yes,width="+w_win+",height="+h_win+",top="+t_win+",left="+l_win);
		winop.focus();
}

function setNewURLns(url,info)
{
		var reg_expr = /\/|\./g;
		var name = url.replace(reg_expr,"_");

<!--	alert(name); -->

		width = 550;
		height = 425;
		
        h_skr = screen.height;
		w_skr = screen.width - iShift;
		
		h_win = height;
		if (h_skr < h_win ) {h_win = h_skr;}
		
		w_win = width;
		if (w_skr < w_win ) {w_win = w_skr;}
		
	    l_win = iShift + Math.floor((w_skr-w_win)/2);
        t_win = Math.floor((h_skr-h_win)/4);
		
<!--    winop = window.open(url,name,"toolbar=no,status=no,location=no,resizable=yes,scrollbars=no,menubar=no,width="+w_win+",height="+h_win+",top="+t_win+",left="+l_win); -->
<!--	winop.focus();  -->
		
	    winop = window.open("",name,"toolbar=no,status=no,location=no,resizable=yes,scrollbars=no,menubar=no,width="+w_win+",height="+h_win+",top="+t_win+",left="+l_win);
		if (winop.document.images[name] == null){
			winop.document.write('<html><head><meta http-equiv="Content-Type" content="text\/html\; charset=windows-1251"><title>Подробно ' + info + '.<\/title><\/head><body bgcolor="\#E7F9E3">');
			winop.document.write('<table border="0" width="100\%" height="100\%"><tr><td align="center" valign="middle">');
			winop.document.write('<table border="0" cellspacing="0" cellpadding="0">');
			if (info != "") {
				winop.document.writeln('<tr><td bgcolor="\#008020"><p align="left"><font face="Tahoma" size="2" color="white">\&nbsp\;' + info + '<\/font><\/p><\/tr>');
			}
			winop.document.writeln('<tr><td><p align="center"><img name="'+name+'" border="0" src="' + url + '"><\/p><\/td><\/tr>');
			winop.document.write('<\/td><\/tr><\/table>');
			winop.document.write('<\/table><\/body><\/html>');		
		}
		else {
			winop.focus();
		}
}

function setNewURLped(url)
{
		var reg_expr = /\/|\./g;
		var name = url.replace(reg_expr,"_");

		width = 550;
		height = 425;
		
        h_skr = screen.height;
		w_skr = screen.width - iShift;
		
		h_win = height;
		if (h_skr < h_win ) {h_win = h_skr;}
		
		w_win = width;
		if (w_skr < w_win ) {w_win = w_skr;}
		
	    l_win = iShift + Math.floor((w_skr-w_win)/2);
        t_win = Math.floor((h_skr-h_win)/4);
		
        winop = window.open(url,name,"toolbar=no,status=no,location=no,resizable=yes,scrollbars=yes menubar=no,width="+w_win+",height="+h_win+",top="+t_win+",left="+l_win);
        winop.focus();
}

//-->