function FillSubCategory(catid) // url = xyz.php?mode=
{
	document.getElementById("cmbjobsubcategory").disabled=true
	var myRandom=parseInt(Math.random()*99999999);  // cache buster
	
	http.open("GET", "get_responce.php?mode=Y&id="+catid+"&rand=" + myRandom, true);
	http.onreadystatechange=catstateChanged
	http.send(null);
}

function catstateChanged() 
{ 
	if (http.readyState==4)
	 { 
			if(http.responseText=="")
			{
				document.getElementById("div_subcat").innerHTML="";
			}
			else
			{
				document.getElementById("div_subcat").innerHTML = http.responseText;
			}
	 } 
}

function FillSubCategorySelected(catid,subid) // url = xyz.php?mode=
{
	document.getElementById("cmbjobsubcategory").disabled=true
	var myRandom=parseInt(Math.random()*99999999);  // cache buster
	
	http.open("GET", "get_responce.php?mode=Y&id="+catid+"&subid="+subid+"&rand=" + myRandom, true);
	http.onreadystatechange=catstateChanged
	http.send(null);
}

function FillRegSubCategory(catid) // url = xyz.php?mode=
{
	document.getElementById("cmbjobsubcategory").disabled=true
	var myRandom=parseInt(Math.random()*99999999);  // cache buster
	
	http.open("GET", "get_responce.php?mode=Y&id="+catid+"&rand=" + myRandom, true);
	http.onreadystatechange=rcatstateChanged
	http.send(null);
}

function rcatstateChanged() 
{ 
	if (http.readyState==4)
	 { 
			if(http.responseText=="")
			{
				document.getElementById("div_rsubcat").innerHTML="";
			}
			else
			{
				document.getElementById("div_rsubcat").innerHTML = http.responseText;
			}
	 } 
}
