function totcont(){
	obj=document.getElementById("contenido");
	obj2=document.getElementById("btc");
	if (obj.style.display=="none"){
		obj.style.display="block";
		obj2.innerHTML="Cerrar...";
	}else{
		obj.style.display="none";
		obj2.innerHTML="Saber m&aacute;s...";
		
	}
}

function gopag(pag,id,pare){
	document.formgo.action=pag;
	document.formgo.id.value=id;
	document.formgo.p.value=pare;
	document.formgo.submit();
}

//Objecte AJAX
function objetoAjax(){
	var xmlhttp=false;
    try {
    	xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
    	try {
        	xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        } catch (E) {
        	xmlhttp = false;
        }
    }
    if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
    	xmlhttp = new XMLHttpRequest();
	}
    return xmlhttp;
}

//al carregar
