
function checkForm(){
		
	var mail, name;
	
	mail	= document.getElementById('mail').value;
	name	= document.getElementById('name').value;
	
	
	post = "name="+name+"&mail="+mail;
	
	req.open('post','/tr/actions/mail.php',true);
	req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
	req.send(post);
	req.onreadystatechange = function(){
		
		if(req.readyState == 4){				
			
			document.getElementById("error").innerHTML = req.responseText;
				
		}else{
				
			return false;
			
		}// end if
			
	}//end function
		

}//end function

