var tortkod='';
function animationStart(){
var xmlhttp=false;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
// JScript gives us Conditional compilation, we can cope with old IE versions.
// and security blocked creation of the objects.
 try {
  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
 } catch (e) {
  try {
   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  } catch (E) {
   xmlhttp = false;
  }
 }
@end @*/
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
  xmlhttp = new XMLHttpRequest();
}
 var url='/5lat/tort.txt?'+(new Date()).getTime();
 xmlhttp.open("GET", url ,true);
 xmlhttp.onreadystatechange=function() {
  if (xmlhttp.readyState==4) {
   tortkod=xmlhttp.responseText;
  }
 }
 xmlhttp.send(null)

}
function animationEnd(){
      if (tortkod){
             if (tortkod=='nouser'){
                   window.location.href='/5lat/';
             } else {
                   window.location.href='/5lat/zalicz.html?ticket='+tortkod;
             }
      } else {
            setTimeout('animationEnd()', 400);
      }
}

function zlicz(go){
var url='/zlicz.html/'+zliczuri+','+go;
var htmlout;
var xmlhttp=false;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
// JScript gives us Conditional compilation, we can cope with old IE versions.
// and security blocked creation of the objects.
 try {
  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
 } catch (e) {
  try {
   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  } catch (E) {
   xmlhttp = false;
  }
 }
@end @*/
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
  xmlhttp = new XMLHttpRequest();
}

if (xmlhttp){
          xmlhttp.open("GET", url ,false);
          xmlhttp.send(null);
          htmlout=xmlhttp.responseText;
}
  return true;
}
