var xmlHttp
/*
	checked: cho biết là check (true) hay unchecked (false)
	resume_id : cho biết resume cần cập nhật.
*/
function get_months(year)
{ 
		//alert("======================== day ne: "+arguments.length);
		xmlHttp=GetXmlHttpObject10();
		if (xmlHttp==null)
		{
			alert("Browser does not support HTTP Request");
			return;
		} 
		var url="get_days.php";
		url=url+"?year="+year;
		//alert("khong the chiu noi " + url);
		xmlHttp.onreadystatechange=stateChanged10; 
		xmlHttp.open("GET",url,true);
		xmlHttp.send(null);
}
function stateChanged10() 
{ 
	
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		//alert(xmlHttp.responseText);
		
		//document.getElementById("test").innerHTML=xmlHttp.responseText;
		//temp = xmlHttp.responseText;
		//alert(temp);
		//t = temp.indexOf("T");
		
		document.getElementById("month").innerHTML=xmlHttp.responseText;
/*		if(t != -1){
			alert(temp);
			document.getElementById("rmm1").innerHTML=temp;
		}else{
			alert(temp);
			document.getElementById("rdd1").innerHTML=temp;	
		}
	*/	
		
		
		//document.getElementById("phones").innerHTML="";
		//document.getElementById("desired_city_choose").innerHTML=xmlHttp.responseText.length==0?"":"";
		//alert(document.getElementById("city_code").value);
		//get_districts(document.getElementById("city_code").value);
	} 
} 

function get_days(month, year)
{ 
		//alert("======================== day ne: "+arguments.length);
		xmlHttp=GetXmlHttpObject10();
		if (xmlHttp==null)
		{
			alert("Browser does not support HTTP Request");
			return;
		} 
		var url="get_days.php";
		url=url+"?month="+month;
		url=url+"&year="+year;
		//alert("khong the chiu noi " + url);
		xmlHttp.onreadystatechange=stateChanged11; 
		xmlHttp.open("GET",url,true);
		xmlHttp.send(null);
}
function stateChanged11() 
{ 
	
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		//alert(xmlHttp.responseText);
		
		//document.getElementById("test").innerHTML=xmlHttp.responseText;
		//temp = xmlHttp.responseText;
		//alert(temp);
		//t = temp.indexOf("T");
		
		document.getElementById("day").innerHTML=xmlHttp.responseText;
/*		if(t != -1){
			alert(temp);
			document.getElementById("rmm1").innerHTML=temp;
		}else{
			alert(temp);
			document.getElementById("rdd1").innerHTML=temp;	
		}
	*/	
		
		
		//document.getElementById("phones").innerHTML="";
		//document.getElementById("desired_city_choose").innerHTML=xmlHttp.responseText.length==0?"":"";
		//alert(document.getElementById("city_code").value);
		//get_districts(document.getElementById("city_code").value);
	} 
} 

function GetXmlHttpObject10()
{ 
	var objXMLHttp=null
	if (window.XMLHttpRequest)
	{
	objXMLHttp=new XMLHttpRequest()
	}
	else if (window.ActiveXObject)
	{
	objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
	}
	return objXMLHttp
}