function disabler(who){
 if(document.getElementById(who) != null){
  document.getElementById(who).disabled = true;
 }
}

function ask_del(url){
 if(confirm('Вы уверены, что хотите произвести удаление?')){
  window.location.href = url + "&_ref=" + window.location;
 }
}

function open_me(o){
w=342;h=392;
url = o.getAttribute('href');
opened = window.open(url, 'kw', 'location=0, resizable=0, status=0, titlebar=0, directories=0, toolbar=0, menubar=0, scrollbars=1, width='+w+', height='+h);
return false;
}
