function submitForm() {
	updateRTEs();
	return true;
}

function openConnection() {
	req = false;
	if(window.XMLHttpRequest) {
		try {
			req = new XMLHttpRequest();
		} catch(e) {
			req = false;
		}
	}

	if (window.ActiveXObject && !req) {
		try {
			req = new ActiveXObject("Msxml2.XMLHTTP");
		} catch(e) {
			try {
				req = new ActiveXObject("Microsoft.XMLHTTP");
			} catch(e) {
				req = false;
			}
		}
	}
	
	return req;
}

	

	
	function city_changer(city_id) 
	{
		//alert(date.value);
		var div = 'forecastsin';
			ajaxo = openConnection();
			if (!ajaxo) return false;
	
			ajaxo.onreadystatechange = function () {
				if (ajaxo.readyState == 4) {
					document.getElementById(div).innerHTML = ajaxo.responseText;
				}
				return true;
			}
			ajaxo.open("GET", "http://nefron.net/news/Foreca1.php?town="+city_id, true);
			ajaxo.send(null);
	}
	
	
	
