<!--
//xmlHTTP object
	function getHTTPObject() {
	  var xmlhttp;
	  /*@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;
		}
	  }
	  return xmlhttp;
	}
		
/////////////////////// getCounty FN///////////////////////
	
	function getCounty(county){
		//titlu = document.getElementById("titluZona");
		//if(county == 'Bucuresti') titlu.src = 'http://www.iris-color.ro/includes/titleMagazinPoli.php?title=Bucuresti%20%26%20Ilfov';
			//else titlu.src = 'http://www.iris-color.ro/includes/titleMagazinPoli.php?title=Judetul%20' + county;
			
		objXMLHTTP = getHTTPObject(); // HTTP Object created	
		var urlAction = "ajax/getCounty.php?judet="+county;
		objXMLHTTP.open("POST", urlAction, true);
		objXMLHTTP.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
		objTarget1 = document.getElementById("magazine");
		objXMLHTTP.onreadystatechange = function sendFBack(){
			if (objXMLHTTP.readyState == 4){
				objTarget1.innerHTML = objXMLHTTP.responseText;		
				initLightbox();
			} else {
				objTarget1.innerHTML = '<img src="http://www.iris-color.ro/images/loading.gif" name="prev_loading" width="43" height="11" hspace="10" vspace="0" border="0" id="prev_loading" class="mrgL mrgR" align="absmiddle" /><span class="notez">se incarca...</span>';
				objTarget2.innerHTML = '<img src="http://www.iris-color.ro/images/loading.gif" name="prev_loading" width="43" height="11" hspace="10" vspace="0" border="0" id="prev_loading" class="mrgL mrgR" align="absmiddle" /><span class="notez">se incarca...</span>';
				objTarget3.innerHTML = '<img src="http://www.iris-color.ro/images/loading.gif" name="prev_loading" width="43" height="11" hspace="10" vspace="0" border="0" id="prev_loading" class="mrgL mrgR" align="absmiddle" /><span class="notez">se incarca...</span>';
			}
		}
		objXMLHTTP.send("county=" + county);
		initLightbox();
	}

//-->
