function showBox( nev, sorszam ) {
	var i         = 1;
	var sign      = 0;
	while ( sign == 0 ) {
		if ( document.getElementById( nev + i ) ) {
			var dobozle = document.getElementById( nev + i );
			dobozle.style.display = 'none';
		} else {
			sign = 1;
		}
		i++;
	}
	var doboz = document.getElementById( nev + sorszam );
	doboz.style.display = 'block';
}

function CreatePopup(URL, xsize, ysize) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=' + xsize + ',height=' + ysize + '');");
}

function loadDoc(docname, divname) {

	var xmlhttp=false;

	/*@cc_on @*/

	/*@if (@_jscript_version >= 5)

		try {
			xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (E) {
				xmlhttp = false;
			}
		}

	@else

		xmlhttp = false;

	@end @*/

	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {

		try {
	      xmlhttp = new XMLHttpRequest();
	    } catch (e) {
	      xmlhttp = false;
	    }
	}

	if (xmlhttp) {

	xmlhttp.open("GET", docname,true);
	 xmlhttp.onreadystatechange=function() {
	  if (xmlhttp.readyState==4) {
       document.getElementById(divname).innerHTML=xmlhttp.responseText;
	  }
	 }
	 xmlhttp.send(null)

	 }

}

function showVarosLista(megye) {
	now         = new Date();
	loadDoc('varoslista_alap.php?ts='+now+'&megye='+megye, 'city');
}

function setDeafultVaros(acturl) {
	now         = new Date();
	loadDoc('varoslista_alap.php?ts='+now+'&'+acturl, 'city');
}

function setDeafultVaros2(acturl) {
	now         = new Date();
	loadDoc('varoslista_alap.php?ts='+now+'&'+acturl, 'city');
}