function change_order() {
	
	arr = document.getElementsByTagName('label');
	regular = new RegExp("^locationlabel_.+\$");
	k = 1;
	for (i=1;i<=arr.length;i++) {
		a = arr[i];
		if (regular.test(a.id)) {
			a.innerHTML = 'Map Location '+k;
			k++;
		}
	}
	
	
}
var order =1;
function add_new_element(request, json) {
	
	text = '';
	if ( request != undefined && request.responseText != undefined ) {
		
		
		text = request.responseText.stripScripts();
		window.eval_frame_scripts(request.responseText);
	}
	var div = document.createElement('div');
	div.id = 'next_'+order;
	div.innerHTML = text;
	$("main_location").appendChild(div);
	//$("main_location").innerHTML += text;
	
	order++;
	
}