function addLangRow(a) {
	var table=$(a).parent().parent().parent();
	var tr = $("#row_template").find("tr").eq(0);
	
	var ntr = tr.clone();
	
	var newindex = parseInt(table.find("tr:last-child").attr("index")) + 1;
	
	ntr.find("input").each(function(index){
		this.name = this.name.replace("[]","["+newindex+"]");
	});
	ntr.attr("index",newindex);
	
	table.append(ntr);
}