function window_template(template) {
	this.template=template;
	this.parse=function(tags) {
		template=this.template;
		for(iTags in tags) {
			template=template.replace('['+iTags+']',tags[iTags]);
		}
		return template;
	}
}
