var xmlHttp;
function CourseId(id)
{
	//alert(id);
	xmlHttp=getHttpObject();
	if(xmlHttp==null)
	{
		alert("Your browser not support HTTP object");
		return;
	}
	
	var url="getCheckbox.php";
	url=url+"?q="+id;
	xmlHttp.onreadystatechange=stateChanged;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	
}

function stateChanged()
{
	if(xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		document.getElementById("boxdiv").innerHTML=xmlHttp.responseText;
	}
}

function getHttpObject()
{
	var xmlHttp=null;
	try
	{
		xmlHttp=new XMLHttpRequest();
	}
	catch(e)
	{
		try
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch(e)
		{
			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");		
		}
	}
	return xmlHttp;
}