//===========================Start Work Location By Work Area========================================//
var xmlhttp_wk = false;
try {
	xmlhttp_wk = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
	try {xmlhttp_wk = new ActiveXObject("Microsoft.XMLHTTP");} catch (E) { xmlhttp_wk = false;}
}
if (!xmlhttp_wk && typeof XMLHttpRequest != 'undefined') 
	{ xmlhttp_wk = new XMLHttpRequest(); }

function workloc(WorkingArea,IDAccId)
{
	var obj=document.getElementById("work-location");
	var locationarea=location.host;
	var url='http://'+locationarea+'/loading-data.php?mode=worklocation';
	url=url+'&WorkingArea='+WorkingArea
	url=url+'&IDAccId='+IDAccId
	xmlhttp_wk.open("GET", url);
	xmlhttp_wk.onreadystatechange = function() 
	{
		if ( xmlhttp_wk.readyState == 4 && xmlhttp_wk.status == 200 ) 
		{ obj.innerHTML = xmlhttp_wk.responseText; } 
			else 
		{ obj.innerHTML = "<span align ='center'><img src='http://localhost/chevron.formycareer.com/images/loader.gif' alt='Loading' /></span>"; }
	}
	xmlhttp_wk.send(null);
}
//===========================End Work Location By Work Area==========================================//
//===========================Start Training By Province========================================//
var xmlhttp_tra = false;
try {
	xmlhttp_tra = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
	try {xmlhttp_tra = new ActiveXObject("Microsoft.XMLHTTP");} catch (E) { xmlhttp_tra = false;}
}
if (!xmlhttp_tra && typeof XMLHttpRequest != 'undefined') {
	xmlhttp_tra = new XMLHttpRequest();
}

function provtra(LocProv,IDTra)
{
	var obj=document.getElementById("tra-city");
	var provtra=location.host;
	var url='http://'+provtra+'/loading-data.php?mode=tra-prov';
	url=url+'&LocProv='+LocProv
	url=url+'&IDTra='+IDTra
	xmlhttp_tra.open("GET", url);
	xmlhttp_tra.onreadystatechange = function() 
	{
		if ( xmlhttp_tra.readyState == 4 && xmlhttp_tra.status == 200 ) 
		{ obj.innerHTML = xmlhttp_tra.responseText; } 
			else 
		{ obj.innerHTML = "<span align ='center'><img src='http://localhost/chevron.formycareer.com/images/loader.gif' alt='Loading' /></span>"; }
	}
	xmlhttp_tra.send(null);
}
//===========================End Training By Province==========================================//
//===========================Start Education By Province========================================//
var xmlhttp_edu = false;
try {
	xmlhttp_edu = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
	try {xmlhttp_edu = new ActiveXObject("Microsoft.XMLHTTP");} catch (E) { xmlhttp_edu = false;}
}
if (!xmlhttp_edu && typeof XMLHttpRequest != 'undefined') {
	xmlhttp_edu = new XMLHttpRequest();
}

function provedu(ProvId,IDUniq)
{
	var obj=document.getElementById("edu-prov");
	var provad=location.host;
	var url='http://'+provad+'/loading-data.php?mode=edu-prov';
	url=url+'&ProvId='+ProvId
	url=url+'&IDUniq='+IDUniq
	xmlhttp_edu.open("GET", url);
	xmlhttp_edu.onreadystatechange = function() 
	{
		if ( xmlhttp_edu.readyState == 4 && xmlhttp_edu.status == 200 ) 
		{ obj.innerHTML = xmlhttp_edu.responseText; } 
			else 
		{ obj.innerHTML = "<span align ='center'><img src='http://localhost/chevron.formycareer.com/images/loader.gif' alt='Loading' /></span>"; }
	}
	xmlhttp_edu.send(null);
}
//===========================End Education By Province==========================================//
//===========================Start City By Id Card========================================//
var xmlhttp_idcard = false;
try {
	xmlhttp_idcard = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
	try {xmlhttp_idcard = new ActiveXObject("Microsoft.XMLHTTP");} catch (E) { xmlhttp_idcard = false;}
}
if (!xmlhttp_idcard && typeof XMLHttpRequest != 'undefined') {
	xmlhttp_idcard = new XMLHttpRequest();
}
function provid(IdcardProvince,IDAccId)
{
	var obj=document.getElementById("city-card");
	var alamat=location.host;
	var url='http://'+alamat+'/loading-data.php?mode=city-card';
	url=url+'&IdcardProvince='+IdcardProvince
	url=url+'&IDAccId='+IDAccId
	xmlhttp_idcard.open("GET", url);
	xmlhttp_idcard.onreadystatechange = function() 
	{
		if ( xmlhttp_idcard.readyState == 4 && xmlhttp_idcard.status == 200 ) 
		{ obj.innerHTML = xmlhttp_idcard.responseText; } 
			else 
		{ obj.innerHTML = "<span align ='center'><img src='http://localhost/chevron.formycareer.com/images/loader.gif' alt='Loading' /></span>"; }
	}
	xmlhttp_idcard.send(null);
}
//===========================End City By Id Card==========================================//
//===========================Start City By Birth==========================================//
var xmlhttp_birth = false;
try {
	xmlhttp_birth = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
	try {xmlhttp_birth = new ActiveXObject("Microsoft.XMLHTTP");} catch (E) { xmlhttp_birth = false;}
}
if (!xmlhttp_birth && typeof XMLHttpRequest != 'undefined') {
	xmlhttp_birth = new XMLHttpRequest();
}

function provbirth(BirthProvince,IDAccId)
{
	var obj=document.getElementById("city-birth");
	var alamatb=location.host;
	var url='http://'+alamatb+'/loading-data.php?mode=city-birth';
	url=url+'&BirthProvince='+BirthProvince
	url=url+'&IDAccId='+IDAccId
	xmlhttp_birth.open("GET", url);
	xmlhttp_birth.onreadystatechange = function() 
	{
		if ( xmlhttp_birth.readyState == 4 && xmlhttp_birth.status == 200 ) 
		{ obj.innerHTML = xmlhttp_birth.responseText; } else { obj.innerHTML = "<span align ='center'><img src='http://localhost/chevron.formycareer.com/images/loader.gif' alt='Loading' /></span>"; }
	}
	xmlhttp_birth.send(null);
}
//===========================End City By Birth============================================//
//===========================Start City By Permanent=======================================//
var xmlhttp_permanent = false;
try {
	xmlhttp_permanent = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
	try {xmlhttp_permanent = new ActiveXObject("Microsoft.XMLHTTP");} catch (E) { xmlhttp_permanent = false;}
}
if (!xmlhttp_permanent && typeof XMLHttpRequest != 'undefined') {
	xmlhttp_permanent = new XMLHttpRequest();
}

function provpermanent(PermProvince,IDAccId)
{
	var obj=document.getElementById("city-permanent");
	var alamatp=location.host;
	var url='http://'+alamatp+'/loading-data.php?mode=city-permanent';
	url=url+'&PermProvince='+PermProvince
	url=url+'&IDAccId='+IDAccId
	xmlhttp_permanent.open("GET", url);
	xmlhttp_permanent.onreadystatechange = function() 
	{
		if ( xmlhttp_permanent.readyState == 4 && xmlhttp_permanent.status == 200 ) 
		{ obj.innerHTML = xmlhttp_permanent.responseText; } else { obj.innerHTML = "<span align ='center'><img src='http://localhost/chevron.formycareer.com/images/loader.gif' alt='Loading' /></span>"; }
	}
	xmlhttp_permanent.send(null);
}
//===========================End City By Permanent============================================//
//===========================Start City By Current=======================================//
var xmlhttp_current = false;
try {
	xmlhttp_current = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
	try {xmlhttp_current = new ActiveXObject("Microsoft.XMLHTTP");} catch (E) { xmlhttp_current = false;}
}
if (!xmlhttp_current && typeof XMLHttpRequest != 'undefined') {
	xmlhttp_current = new XMLHttpRequest();
}

function provcurrent(CurProvince,IDAccId)
{
	var obj=document.getElementById("city-current");
	var alamatc=location.host;
	var url='http://'+alamatc+'/loading-data.php?mode=city-current';
	url=url+'&CurProvince='+CurProvince
	url=url+'&IDAccId='+IDAccId
	xmlhttp_current.open("GET", url);
	xmlhttp_current.onreadystatechange = function() 
	{
		if ( xmlhttp_current.readyState == 4 && xmlhttp_current.status == 200 ) 
		{ obj.innerHTML = xmlhttp_current.responseText; } else { obj.innerHTML = "<span align ='center'><img src='http://localhost/chevron.formycareer.com/images/loader.gif' alt='Loading' /></span>"; }
	}
	xmlhttp_current.send(null);
}
//===========================End City By Current============================================//
