var xmlHttp;

function mostraDados() {
       
        //criamos uma referência para o formulário
        var obj;
		
		obj = document.enquete;
		
		var idenquete;
		var idresposta;
		var i
    for (i=0;i<obj.idresposta.length;i++){
       if (obj.idresposta[i].checked){
	   		break;
	   }
          
    }
		
		idenquete = obj.idenquete.value;
		idresposta = obj.idresposta[i].value;
		
		enquete(idenquete, idresposta)
       
}



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;
}
