function validateEmail(mail){

    //var rx=new RegExp("^[\\w\.=-]+@[\\w\\.-]+\\.[a-z]{2,4}$");

    //if(!rx.test(mail)){

        //alert('Please, use a valid e-mail address');

        //return false;

    //}

    return true;

}


function validate_form(){
	var validate = '';
	if( document.formmail.user_name.value == '' ){
		validate += '- Name field cannot be empty\n';
	}

	if( document.formmail.Company.value == '' ){
		validate += '- Company field cannot be empty\n';
	}

	if( document.formmail.Phone.value == '' ){
		validate += '- Phone number field cannot be empty\n';
	}

	if( document.formmail.Translating_from.options[document.formmail.Translating_from.selectedIndex].value == '' ){
		validate += '- Language translating from\n';
	}

	if( document.formmail.Translating_to.options[document.formmail.Translating_to.selectedIndex].value == '' ){
		validate += '- Language translating to\n';
	}


	if( !validateEmail(document.formmail.email_usuario.value) ){
		validate += '- Invalid E-Mail address\n';
	}

	if(validate){
		alert('The form contains the following errors:\n'+validate);
		return false;
	}
	document.formmail.submit();
}