function ajaxGetLoginUser() {
	
	if (document.getElementById('login_email').value == '' && document.getElementById('login_password').value == '') {
		document.getElementById('login_email').style.backgroundColor='#EEEEEE'
		document.getElementById('login_password').style.backgroundColor='#EEEEEE'
	} else {
		
		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.login.user.php?login="+document.getElementById('login_email').value+"&senha="+document.getElementById('login_password').value,true);
	    
	    //Executada quando o navegador obtiver o código
	    xmlhttp.onreadystatechange=function() {
	    	
	    	 if (xmlhttp.readyState==1){
	            
	        }
	        
	         if (xmlhttp.readyState==2){
	            
	        }
	        
	         if (xmlhttp.readyState==3){
	            
	        }
	        
	    	if (xmlhttp.readyState==4){
	    		if (xmlhttp.responseText == 1) {
	            	window.location.href='index.php'
	    		} else {
	    			alert('Confira login e senha!');
	    		}
	        }
	    }
	    xmlhttp.send(null)
	}
	
}