var tt_image_url = 'http://timeslog.indiatimes.com/tlg.dll/pgcnt';
var  max_string_length = 1500;
function tt_errorblock_handler(message, url, line) 
{return true;}
function tt_error_handler(message, url, line) 
{
  tt_imagewrite();

  return true;
}


function tt_append_url(param, value) 
{
if (value) {

    if ((tt_image_url.indexOf('?')) == -1) {window.tt_image_url += '?' + param + '=' + value;}
   else {window.tt_image_url += '&' + param + '=' + value;}
}}

function tt_image_write() 
{window.onerror = tt_errorblock_handler;
if (document.referrer.length > 0) {
 tt_append_url('RUR', escape(document.referrer));}
tt_append_url('SCWD',screen.width);
tt_append_url('SCHT',screen.height);
tt_append_url('SUR',escape(location.href)); 
tt_append_url('CHUR',escape(timeslog_channel_url));
tt_image_url = tt_image_url.substring(0, max_string_length);

document.write('<img width="1" height="1" src=' + tt_image_url +'>');
}
window.onerror = tt_error_handler;

tt_image_write();

