﻿
if(getCookies('ttt')!='over'){
  var wholeC=indexC=listC=md=false;
  if(getCookies('wholeTimeCookie')==false){
    document.cookie="wholeTimeCookie="+wholeTime+";";
  }
  wholeC=getCookies('wholeTimeCookie');
  if(typeof(thisWholeTime)!='undefined' && wholeC!='false' && wholeC!=''){
    if(thisWholeTime!=wholeC) md=true;
  }

  if(typeof(thisIndexTime)!='undefined'){
    if(path=='' || path=='./'){
      if(getCookies('indexTimeCookie')==false){
        document.cookie="indexTimeCookie="+indexTime+";";
      }
      indexC=getCookies('indexTimeCookie');
      if(indexC!='false' && indexC!=''){
        if(thisIndexTime!=indexC) md=true;
      }
    }else if(path=='../'){
      if(getCookies('listTimeCookie')==false){
        document.cookie="listTimeCookie="+indexTime+";";
      }
      listC=getCookies('listTimeCookie');
      if(listC!='false' && listC!=''){
        if(thisIndexTime!=listC) md=true;
      }
    }
  }
  if(md==true){
    document.getElementById('lastFrame').src=''+path+'Z_reset.php?article='+window.location.href+'&iW='+wholeC+'&iI='+indexC+'&iL='+listC+'';
    //window.open(''+path+'Z_reset.php?article='+window.location.href,'lastFrame');
  }
}

document.cookie="ttt=start";