var xmlHttp

function getStatus(strCourseDetailId)
{
	var intDelegates = document.regform.no_of_delegates.value;	
	 
	if(strCourseDetailId.length==0)
	{ 
		document.getElementById("div_status").innerHTML="<input type=hidden name='course_detail'>"
	return
	}
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
	var url="ajax/getStatus.php";	
	url=url+"?cdetailid="+strCourseDetailId	;	 
	url=url+"&no_of_delegates="+intDelegates;
	url=url+"&sid="+Math.random();
	url=url+"&tmstmp="+new Date().getTime();
	xmlHttp.onreadystatechange=stateChangedForStatus 
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
} 

function stateChangedForStatus() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 		
		document.getElementById("div_status").innerHTML=xmlHttp.responseText 
	} 
} 

