

function edit_kontrola()
{
    
    if (self.document.forms.edit_akce.heslo.value.length==0 && self.document.forms.edit_akce.id.value==0)
    {
	   alert('Chyba, nebylo zadáno heslo');
	   return false;
    }
    
    return true;
}


function confirm_delete(text)
{
    if (confirm (text)) return true;
    else return false;
}



function bar(url)
{
	wasOpen  = false;
    win = window.open(url);  
		return (typeof(win)=='object')?true:false;
}
