function ajaxGetClienteFoto(num) {
	try{
	    xmlhttp = new XMLHttpRequest();
	}catch(ee){
	    try{
	        xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	    }catch(e){
	        try{
	            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	        }catch(E){
	            xmlhttp = false;
	        }
	    }
	}	
	
	// levamos os dados ao banco
    xmlhttp.open("GET", "../ajax/ajax.get.cliente.foto.php?cid="+num,true);
    
    //Executada quando o navegador obtiver o código
    xmlhttp.onreadystatechange=function() {
    	
        if (xmlhttp.readyState==4){
		
        	document.getElementById('div_foto').style.backgroundColor = '#F5F5F5'
        	
        	if (xmlhttp.responseText != '') {
        		document.getElementById('div_foto').innerHTML = xmlhttp.responseText		
        	} else {
        		document.getElementById('div_foto').innerHTML = '<img src="../img/naocliente2.jpg">'
        	}
            
        }
    }
    xmlhttp.send(null)
}