function LC()
{
	this.str="";
	this.maxl=60;
	this.index=0;
	this.refresh=800;

	this.update = function()
	{
		this.str=this.str.replace(/\|\|/g, '|');
		this.str=this.str.replace(/\%20/g, " ");
		tmpstr=""
		if((this.str+"").length>0)
		{
			if((this.str+"").length<this.maxl)
			{
				var ind=this.str.length;
				tmpstr=this.str.substring(0, ind)+"|";
			}
			else
			{
				var ind=this.maxl;
				tmpstr=(this.str+"").substring(0, ind);
// check of er een = teken of een | teken moet komen.. = teken als string afgebroken is
				if(this.str.charAt(ind)=="|") tmpstr+="|"; else tmpstr+="=";
			}
			this.str=(this.str+"").substring(ind);

//			top.document.title='IQI|'+this.ltime()+'|'+tmpstr;
		}
//		else top.document.title='IQI|99||';
		setTimeout( "Q_LC.update();", this.refresh);
	}
	this.Wr = function(name, val, nxt)
	{
		name=name.replace(/\||\[|\]/g, '');
		val=val.replace(/\|/g, '');
		nxt=nxt||false;
		if(!nxt) this.str+='|XT["X'+name+'"]="'+val+'"|';
		else this.str+="|"+name+"="+val+"|";
	}
	this.Raw = function(val)
	{
		val=val.replace(/\||\[|\]/g, '');
		this.str+="|"+val+"|";
	}

	this.stop = function(arg)
	{
		this.str+='|_STOP_|';
	}
	this.ltime = function()
	{
		return ((this.index++) % 10);
	}
	this.get = function(name)
	{
		name='X'+name.replace(/\W+/g,'')
		eval('tmp=XT["'+name+'"]||false')
		return tmp
	}
	this.str+='|XLCEn=true|XT=new Array()|';
	setTimeout( "Q_LC.update();", 1000);
}

