
function UkazOkno(obr, x , y) {
  temp = window.open(obr,"newwin","height="+(y)+",width="+(x)+",scrollbars=0,resizable=0");
  temp.focus();
}

function showAlfred(url, x , y) {
  temp = window.open(url,"alfred","height="+(y)+",width="+(x)+",scrollbars=1,resizable=0");
  temp.focus();
}

function insertZeroes(str) {
  str = "00" + str;
  return str.substring(str.length - 3);
}

// odtsranění diakritiky
function bezdiak(str) {
  var sdiak = "áäčďéěíĺľňóôöŕšťúůüýřžÁÄČĎÉĚÍĹĽŇÓÔÖŔŠŤÚŮÜÝŘŽ +*/?!";
  var bdiak = "aacdeeillnooorstuuuyrzAACDEEILLNOOORSTUUUYRZ------";
  var tx = "";
  for(p = 0; p < str.length; p++) {
    if (sdiak.indexOf(str.charAt(p)) != -1) {
      tx += bdiak.charAt(sdiak.indexOf(str.charAt(p)));
    }
    else tx += str.charAt(p);
  }
  return tx;
} 
