// JavaScript Document
// JavaScript Document
function validateForm(){			
			
	var validName = validateName();
	var validEmail = validateEmail();
	if(validName == true && validEmail == true){
		return true;
	}else{
		return false;	
	}
}


function validateName () {
	var formName = document.getElementById('name').value;
	if(formName.length > 0){
		document.getElementById('emailErrorName').style.display = 'none';
		return true;
	}else{
		document.getElementById('emailErrorName').style.display = 'inline';

	}
}
		
		
function validateEmail(){
	var formEmail = document.getElementById('email').value;
	if (formEmail.indexOf("@")!= -1){
		document.getElementById('emailErrorEmail').style.display = 'none';
		return true;
	}else{
		document.getElementById('emailErrorEmail').style.display = 'inline';	
	}
}

