	function showContent(link, where, res) {

		var cont = document.getElementById(res);
		var loading = document.getElementById('loading');
		var whe = document.getElementById(where);
		var params = 'id=' + encodeURIComponent(whe.value);
		//cont.innerHTML = link + '?' + params;
		
		//document.getElementById('regioninput').innerHTML = link;

		cont.innerHTML = loading.innerHTML;

		var http = createRequestObject();
		if( http ) {
			http.open("GET", link + '?' + params, true);
			http.onreadystatechange = function () {
				if(http.readyState == 4) {
					cont.innerHTML = http.responseText;
				}
			}
			http.send(null);    
		} else {
			document.location = link;
		}
	}

	function createRequestObject() {
		try { return new XMLHttpRequest() }
		catch(e) {
			try { return new ActiveXObject('Msxml2.XMLHTTP') }
			catch(e) {
				try { return new ActiveXObject('Microsoft.XMLHTTP') }
				catch(e) { return null; }
			}
		}
	}
