// JavaScript Document
var xmlhttp;
var xmlhttp1;
var xmlhttp2;
var xmlhttp3;
var xmlhttp4;

function showhVacancyData()
{
	xmlhttp=GetXmlHttpObject();
	if(xmlhttp==null)
	{
		alert("Browser does not support HTTP Request");
		return;
	}
	var url="php/gethvacancydata.php";
	xmlhttp.onreadystatechange=stateChanged;
	xmlhttp.open("GET",url,true);
	xmlhttp.send(null);
}

function stateChanged()
{
	if(xmlhttp.readyState==4)
	{
		document.getElementById("hvacancy").innerHTML=xmlhttp.responseText;
	}
}

function GetXmlHttpObject()
{
	if(window.XMLHttpRequest)
	{
		return new XMLHttpRequest();
	}
	if(window.ActiveXObject);
	{
		return new ActiveXObject("Microsoft.XMLHTTP");
	}
	return null;
}

function showhVacancyDataInformal()
{
	xmlhttp1=GetXmlHttpObject1();
	if(xmlhttp1==null)
	{
		alert("Browser does not support HTTP Request");
		return;
	}
	var url="php/gethvacancydatainformal.php";
	xmlhttp1.onreadystatechange=stateChanged1;
	xmlhttp1.open("GET",url,true);
	xmlhttp1.send(null);
}

function stateChanged1()
{
	if(xmlhttp1.readyState==4)
	{
		document.getElementById("hvacancyinformal").innerHTML=xmlhttp1.responseText;
	}
}

function GetXmlHttpObject1()
{
	if(window.XMLHttpRequest)
	{
		return new XMLHttpRequest();
	}
	if(window.ActiveXObject);
	{
		return new ActiveXObject("Microsoft.XMLHTTP");
	}
	return null;
}
				
function showhVacancyDataForeign()
{
	xmlhttp2=GetXmlHttpObject2();
	if(xmlhttp2==null)
	{
		alert("Browser does not support HTTP Request");
		return;
	}
	var url="php/gethvacancydataforeign.php";
	xmlhttp2.onreadystatechange=stateChanged2;
	xmlhttp2.open("GET",url,true);
	xmlhttp2.send(null);
}

function stateChanged2()
{
	if(xmlhttp2.readyState==4)
	{
		document.getElementById("foreign_vacancy").innerHTML=xmlhttp2.responseText;
	}
}

function GetXmlHttpObject2()
{
	if(window.XMLHttpRequest)
	{
		return new XMLHttpRequest();
	}
	if(window.ActiveXObject);
	{
		return new ActiveXObject("Microsoft.XMLHTTP");
	}
	return null;
}

function showhVacancyDataForeignCountry()
{
	xmlhttp3=GetXmlHttpObject3();
	if(xmlhttp3==null)
	{
		alert("Browser does not support HTTP Request");
		return;
	}
	var url="php/gethvacancydataforeigncountry.php";
	xmlhttp3.onreadystatechange=stateChanged3;
	xmlhttp3.open("GET",url,true);
	xmlhttp3.send(null);
}

function stateChanged3()
{
	if(xmlhttp3.readyState==4)
	{
		document.getElementById("foreign_country").innerHTML=xmlhttp3.responseText;
	}
}

function GetXmlHttpObject3()
{
	if(window.XMLHttpRequest)
	{
		return new XMLHttpRequest();
	}
	if(window.ActiveXObject);
	{
		return new ActiveXObject("Microsoft.XMLHTTP");
	}
	return null;
}

function showhSalaryRange()
{
	xmlhttp4=GetXmlHttpObject4();
	if(xmlhttp4==null)
	{
		alert("Browser does not support HTTP Request");
		return;
	}
	var url="getSalaryrange.php";
	xmlhttp4.onreadystatechange=stateChanged4;
	xmlhttp4.open("GET",url,true);
	xmlhttp4.send(null);
}

function stateChanged4()
{
	if(xmlhttp4.readyState==4)
	{
		document.getElementById("salary_range").innerHTML=xmlhttp4.responseText;
	}
}

function GetXmlHttpObject4()
{
	if(window.XMLHttpRequest)
	{
		return new XMLHttpRequest();
	}
	if(window.ActiveXObject);
	{
		return new ActiveXObject("Microsoft.XMLHTTP");
	}
	return null;
}