function showRegistration(company_id)
{
			
	reg_xmlHttp=IndivGetXmlHttpObject()
	if (reg_xmlHttp==null)
  	{
  		alert ("Your browser does not support AJAX!");
  		return;
  	} 
  
  		var url="../includes/ajax/show_registration.php";
		url=url+"?company_id="+company_id
  		url=url+"&sid="+Math.random();
		reg_xmlHttp.onreadystatechange=RegStateChanged;
		reg_xmlHttp.open("GET",url,true);
		reg_xmlHttp.send(null);
 } 


 
function RegStateChanged() 
{ 
	if (reg_xmlHttp.readyState==4)
	{ 
		var reg_response=reg_xmlHttp.responseText;
		if(reg_response!=0)
		{
		document.getElementById('select_type_td').innerHTML='';
		document.getElementById('form_td').innerHTML='';
		document.getElementById('form_td').innerHTML=reg_response;		
		}
	}
}
 

function RegGetXmlHttpObject()
{
	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;
}

