function getInfoCurso(c,l,t){
	var curso = c;
	var local = '' + l;
	var tipo  = '' + t;
	
	try{
		ajax = new ActiveXObject("Microsoft.XMLHTTP");
	}catch(e){
		try{
			ajax = new XMLHttpRequest();	
		}catch(e){
			ajax = null;	
		}
	}
	
	if(ajax != null){		
		ajax.open("GET","../../actions/checarPreco/ajax/checarPreco.php?curso=" + curso + "&tipo=" + tipo,true);		
		ajax.onreadystatechange = statusAjaxTotal;
		ajax.send(null);
	}else{
		alert("Este navegador não suporta Ajax!");	
	}
	
	function statusAjaxTotal(){		
		// carregando
		if((ajax.readyState == 2)||(ajax.readyState == 1)||(ajax.readyState == 3)){			
			document.getElementById(local).innerHTML = "<center><img src='../../../img/preload.gif'><br /><strong>Scaricando</strong></center>";
		}
		
		// verifica se a requisição está OK
		if((ajax.readyState == 4)&&(ajax.status == 200)){			
			if(ajax.responseText){
				document.getElementById(local).innerHTML = ajax.responseText;
			}
		}	
	}
}

function fecharPreco(l)
{
	var local = l;
	document.getElementById(local).innerHTML = "";
}