var Fie = (document.all) ? true : false;
function hideID(objID){
    var element = (Fie) ? document.all(objID) : document.getElementById(objID);
    var elelink = (Fie) ? document.all("link"+objID) : document.getElementById("link"+objID);
	
    element.style.display="none";
    elelink.style.color="#FFAD5B";
    elelink.style.textDecoration ="underline";
    elelink.style.backgroundImage ="url(http://fly2.co.il/images/radion_off.png)";	
}
function showID(objID){
    var element = (Fie) ? document.all(objID) : document.getElementById(objID);
    var elelink = (Fie) ? document.all("link"+objID) : document.getElementById("link"+objID);
    element.style.display="block"
    elelink.style.color="#666666";
    elelink.style.textDecoration ="none";
    elelink.style.backgroundImage ="url(http://fly2.co.il/images/radion_on.png)";	


}

function openMenu(id)
		{			document.getElementById(id).style.display="inline";		}

		function closeMenu(id)
		{			document.getElementById(id).style.display="none";		}





function changeSrc(newSrc)
{
 elem = document.getElementById("myFrame");
 elem.src = newSrc;
}


/// SEARCH JS///

function ShowCountry2(str)
{
if (str=="")
  {
  document.getElementById("CountryName").innerHTML="";
  return;
  }
if (window.XMLHttpRequest)
  {// דפדפנים IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// דפדפנים IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("CountryName").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","country_filter.php?q2="+str,true);
xmlhttp.send();
}



/////////


function ShowCity2(str)
{
if (str=="")
  {
  document.getElementById("CityName").innerHTML="";
  return;
  }
if (window.XMLHttpRequest)
  {// דפדפנים IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// דפדפנים IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("CityName").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","city_filter.php?q2="+str,true);
xmlhttp.send();
}

function ShowContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "block";
}

function HideContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "none";
}





/////////
function ShowCountry3(str)
{
if (str=="")
  {
  document.getElementById("CountryName").innerHTML="";
  return;
  }
if (window.XMLHttpRequest)
  {// דפדפנים IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// דפדפנים IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("CountryName").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","country_filter3.php?q2="+str,true);
xmlhttp.send();
}

///////////////

function ShowCity3(str)
{
if (str=="")
  {
  document.getElementById("CityName3").innerHTML="";
  return;
  }
if (window.XMLHttpRequest)
  {// דפדפנים IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// דפדפנים IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("CityName3").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","city_filter3.php?q2="+str,true);
xmlhttp.send();
}


//////
function ShowContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "block";
}

function HideContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "none";
}

