var xmlHttp



function fillcombos(type,id)

{ 



	if (id==0)	return;

	xmlHttp=GetXmlHttpObject()

	if (xmlHttp==null)

	{

		 alert ("Browser does not support HTTP Request")

		 return

	}

	var url="getcombos.php"

	url=url+"?type="+type

	url=url+"&id="+id

	xmlHttp.onreadystatechange=stateChanged 

	xmlHttp.open("GET",url,true)

	xmlHttp.send(null)

}



function stateChanged() 

{ 

	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")

    { 

		 //document.getElementById("txtHint").innerHTML=xmlHttp.responseText 

		 vresponse=xmlHttp.responseText;

		 

		 vresponse=vresponse.split("|");

		 vtype=vresponse[0];

		 voptions=vresponse[1];

				 

		 if (vtype=='certification')	document.getElementById('spnCertification').innerHTML=voptions;

		 else

		 if (vtype=='exam')				document.getElementById('spnExam').innerHTML=voptions;

		 

		

    } 

}







function GetXmlHttpObject()

{

	var xmlHttp=null;

	try

	 {

	 // Firefox, Opera 8.0+, Safari

	 XMLHttp=new XMLHttpRequest();

	 }

	catch (e)

 	{

	 //Internet Explorer

		 try

		  {

		  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");

	  }

 catch (e)

  {

  XMLHttp=new ActiveXObject("Microsoft.XMLHTTP");

  }

 }

return xmlHttp;

}