function xml_template(template_file)
	{
	xmlLoader = new loadXML(template_file + '.xml');
	if(xmlLoader.fail == true)
		{
		this.original = 'Sikertelen sablon-betöltés';
		}
	else
		{
		this.original = xmlLoader.xmlDoc.getElementsByTagName('templatedata')[0].firstChild.nodeValue;
		}
	this.current = this.original;
	this.addValue = addValue;
	this.show = show;
	this.reset = reset;
	}
	
function addValue(key, value)
	{
	this.current = this.current.replace('{'+key.toUpperCase()+'}', value);
	}
	
function show()
	{
	return this.current;
	}
	
function reset()
	{
	this.current = this.original;
	return true;
	}

