function DeleteConfirm(delurl) {
  if (window.confirm("Opravdu chcete smazat?")) {
    document.location=delurl;
    return true;
  } else {
    return false;
  }
}

function DeleteFormConfirm() {
  if (window.confirm("Opravdu chcete smazat?")) {
    return true;
  } else {
    return false;
  }
}

function markAllRows( container_id ) {
    var inputs = document.getElementById(container_id).getElementsByTagName('input');
    var unique_id;
    var checkbox;

    for ( var i = 0; i < inputs.length; i++ ) {

        checkbox = inputs[i];

        if ( checkbox && checkbox.type == 'checkbox' ) {
            if ( checkbox.disabled == false ) {
                checkbox.checked = true;
            }
        }
    }

    return true;
}

function unMarkAllRows( container_id ) {
    var inputs = document.getElementById(container_id).getElementsByTagName('input');
    var unique_id;
    var checkbox;

    for ( var i = 0; i < inputs.length; i++ ) {

        checkbox = inputs[i];

        if ( checkbox && checkbox.type == 'checkbox' ) {
            if ( checkbox.disabled == false ) {
                checkbox.checked = false;
            }
        }
    }

    return true;
}

function onfocusclear(item) {
  if (item.value == item.defaultValue) item.value='';
  return(true);
}

function onfocusselect(item) {
  return(true);
}


