// JavaScript Document


//A
function ajax(url, objId){
	//alert("Aqui Foi");
	
	var xmlhttp = false;
	var obj = document.getElementById(objId);
	
	try{
		xmlhttp	= new ActiveXObject("Msxm12.XMLHTTP");
		//alert("Usando Microsoft");
	} catch(e){
		try{
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			//alert("Usando Microsoft");
		}catch(E){
			//alert("Não é Microsoft!");
			xmlhttp = false;
		}
	}

	if(!xmlhttp && typeof XMLHttpRequest != 'undefined'){
		xmlhttp = new XMLHttpRequest();	
		//alert("Usando FireFox");
	}

	xmlhttp.onreadystatechange = function(){
		if(xmlhttp.readyState == 4){
			document.getElementById(objId).innerHTML = xmlhttp.responseText;
		}
	}
	xmlhttp.open("GET", url, true);
	xmlhttp.send(null);	
		
}
//B
//C
//D
function direciona(url){
	document.location =	url;
}

//E
//F
//G
//H
//I
//J
//L
//M
//N
//O
//P
function popUp(url, larg, alt){
	window.open(url, '', 'width='+larg+', height='+alt+', scrollbars=yes');
}
//Q
//R
//S
//T
function trocaFoto(objId, img){
	document.getElementById(objId).src = img;
}

//U
//V
//X
//Z

