function callMeBackCheck(){
	var name=$($('callMeBackForm').getElementById('myName')).getValue().trim();
	var phone=$($('callMeBackForm').getElementById('myPhone')).getValue().trim();
	var branchId=$($('callMeBackForm').getElementById('branchId')).getValue().trim().toInt();
	var message=""
	if (name==""||phone==""||branchId<0)
		message+="Please fill a name, a phone number and select an office."
	if(message==""){
		callMeBackSubmit()
	}else{
		alert(message);
	}
	
}

function callMeBackSubmit(){
	$('callMeBackForm').send();
	$('callMeBackForm').bttn.value="Call request sent";
}