function delet(text, lnk) {
    if(text=='') text='Вы действительно хотите удалить?';
    if(confirm(text)){
        self.location.href=lnk;
    } else{
        return;
    }
}

function showpic(pic, w, h, tit) {
    pw=window.open('', 'pw', 'height='+h+28+',width='+w+6+',screenX=50,screenY=50,top=50,left=50,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
    if(!tit) tit='Картинка';
    buf = '<html><head><title>'+tit+'</title></head><body topmargin=0 leftmargin=0 marginwidth=0 marginheight=0><a href=# onClick=self.close()><img src='+pic+' alt="Щелкните на картинке, чтобы закрыть окно" border=0></a></body></html>'
    pw.document.write(buf);
    pw.document.close();
    pw.resizeTo(w+6, h+28);
    pw.focus();
}

function openwin(w,h,url) {
    w+=40;h+=30;window.open(url,'','width='+w+',height='+h+',status=no,toolbar=no,resizable=no,scrollbars=yes');
}

function chang(r1,r2) {
    document.getElementById(r1).checked = true;
    document.getElementById(r2).checked = false;
}

function showdesc(file, w, h) {
    dw=window.open(file, 'dw', 'height='+h+',width='+w+',screenX=50,screenY=50,top=50,left=50,toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
    dw.resizeTo(w, h);
    dw.focus();
}


