var xmlHttp;

function printData() 
{        
		var obj;
		
		obj = document.pool;
		
		var idpool;
		var idanswer;
		var i
    for (i=0;i<obj.idanswer.length;i++)
	{
       if (obj.idanswer[i].checked)
	   {
	   		break;
	   }
          
    }	
		idpool = obj.idpool.value;
		idanswer = obj.idanswer[i].value;

		pool(idpool, idanswer)
		
}



function GetXmlHttpObject() 
{
	var xmlHttp=null;
	try 
	{
		xmlHttp=new XMLHttpRequest();
	} 
	catch (e) 
	{
		// Internet Explorer
		try 
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		} 
		catch (e) 
		{
			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	return xmlHttp;
}
