 function ZkontrolujPodporu()
{
  var nojs=document.getElementById("nojs");
  var supp=document.getElementById("support");
  supp.removeChild(nojs);
  var supp=document.getElementById("details");
  supp.style.visibility="visible";
  var canvas=false;
  var xhr=false;
  var webworkers=false;
  var uloziste=false;
  
  try
  {
    document.createElement("canvas").getContext("2d");
    canvas=true;
  }
  catch(e)
  {
  }
  if(typeof(Worker)!=="undefined") 
    webworkers=true;
  if(window.sessionStorage) 
    uloziste=true;
  var txhr = new XMLHttpRequest();
  if(typeof txhr.withCredentials !== "undefined") 
    xhr=true;
    
  var vse=true;
  
  if(xhr==false)
  {
    vse=false;
    var el=document.getElementById("xhr");
    el.src="introduction/images/no.png"
  }
  if(canvas==false)
  {
    vse=false;
    var el=document.getElementById("can");
    el.src="introduction/images/no.png"
  }
  if(webworkers==false)
  {
    vse=false;
    var el=document.getElementById("ww");
    el.src="introduction/images/no.png"
  }
  if(uloziste==false)
  {
    vse=false;
    var el=document.getElementById("ss");
    el.src="introduction/images/no.png"
  }
  var napis=document.createElement("span");
  if(vse==true)
  {
    var reg=document.getElementById("submitd");
    reg.disabled=false;
    reg.id="submita";
    var reg=document.getElementById("submiterd");
    reg.disabled=false;
    reg.id="submitera";
    napis.appendChild(document.createTextNode(phrases["allaccepted"]));
  }
  else
  {
    napis.style.color="red";
    napis.appendChild(document.createTextNode(phrases["notallaccepted"]));
  }
  supp.appendChild(napis);
}
