function validate_press()
{
	var name = document.getElementById('name');
	var surname = document.getElementById('surname');
	var email = document.getElementById('email');
	
	valid = true;
	
	if( isEmail(email, "Required") )valid = false;
	if( isSurname(surname, "Required") )valid = false;
	if( isName(name, "Required") )valid = false;
	
    return valid;
	
}

function isName(elem, helperMsg){
	if(elem.value.length == 0){
		document.getElementById('name_validate').style.backgroundColor="#FF626D";
		elem.focus(); // set the focus to this input
		return true;
	}else {
		document.getElementById('name_validate').style.backgroundColor="";
	}
	
}

function isSurname(elem, helperMsg){
	if(elem.value.length == 0){
		document.getElementById('surname_validate').style.backgroundColor="#FF626D";
		elem.focus(); // set the focus to this input
		return true;
	}else {
		document.getElementById('surname_validate').style.backgroundColor="";
	}
	
}

function isEmail(elem, helperMsg){
	if(elem.value.length == 0){
		document.getElementById('email_validate').style.backgroundColor="#FF626D";
		elem.focus(); // set the focus to this input
		return true;
	}else {
		document.getElementById('email_validate').style.backgroundColor="";
	}
	
}
