function SImage (url, resX, resY, title, uid) {
	maxX=screen.availWidth;
	maxY=screen.availHeight;
	scrollbars=0;
	if (resX>maxX) {reX=maxX-30;leftC=30;reY+=15;scrollbars=1;}else {reX=parseInt(resX)+5;leftC=(maxX-resX)/2;}
	if (resY>maxY) {reY=maxY-30;topC=30;reX+=15;scrollbars=1;}else {reY=resY;topC=(maxY-resY)/2;}
	w=window.open('', 'ph_'+uid, 'width=' + reX + ',height=' + reY+',status=0,toolbar=0,resizable=1, top='+topC+', left='+leftC+',scrollbars='+scrollbars);
	if (title!=""){title1=title;}else{	title1="";}

	w.document.open();
	w.document.write('<HTML><HEAD><TITLE>' + title1 + '</TITLE></HEAD>');
	w.document.write('<BODY bgcolor="#ffffff" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0"  onKeyPress="if (event.keyCode==27) window.close();">');
	w.document.write('<CENTER><A href="javascript:window.close();">');
	w.document.write('<IMG border=0 align=center src="'+url+'" alt="'+title+' \nЛевая кнопка мыши - Закрыть" width="'+resX+'" height="'+resY+'">');
	w.document.write('</A></BODY></HTML>');
	w.document.close();
	if (w!=null){w.focus();};

}
var confirmMsg  = 'Вы действительно желаете ';

function confirmLink(theLink, theQuery)
{
    if (confirmMsg == '' || typeof(window.opera) != 'undefined') {
        return true;
    }

    var is_confirmed = confirm(confirmMsg + ':\n' + theQuery);
    if (is_confirmed) {
        theLink.href += '?&js_conf=1';
    }

    return is_confirmed;
} 


    function show(ob) 
    { 
      var okno = "scrollbars=1,fullscreen=0,status=0,toolbar=0,"+ 
                 "top=0,left=0,width=600,height=460,resizable=1"; 
      var Win=window.open("", null, okno); 
      Win.document.open(); 
      var i; 
      var s = ""; 
      for (i in ob) s += "<B>"+i+"</B>"+" = "+ob[i]+"<BR>"; 
      Win.document.write(s); 
      Win.document.close(); 
    } 


