function formCheck(form) {
	var errMsg="";

	var vFName=form.firstname.value;
	var error_FName="El nombre es obligatorio.\n";
	if(vFName=="") { errMsg+=error_FName; }

	var vLName=form.lastname.value;
	var error_LName="El apellido es obligatorio.\n";
	if(vLName=="") { errMsg+=error_LName; }

	var vCompany=form.company.value;
	var error_Company="La empresa es obligatoria.\n";
	if(vCompany=="") { errMsg+=error_Company; }

	var vCity=form.city.value;
	var error_City="La ciudad es obligatoria.\n";
	if(vCity=="") { errMsg+=error_City; }

	var vState=form.state.value;
	var error_State="El estado o la provincia son obligatorios.\n";
	if(vState=="") { errMsg+=error_State; }

	var vZip=form.zip.value;
	var error_Zip="El código postal es obligatorio.\n";
	if(vZip=="") { errMsg+=error_Zip; }

	var vCountry=form.country[form.country.selectedIndex].value;
	var error_Country="El país es obligatorio. Seleccione un país de la lista de países.\n";
	if(vCountry==35555) { errMsg+=error_Country; }

	var vPhone=form.phone.value;
	var error_Phone="El número de teléfono es obligatorio.\n";
	if(vPhone=="") { errMsg+=error_Phone; }

	var vEmail=form.email.value;
	var error_Email="La dirección de correo electrónico es obligatoria.\n";
	var error_EmailInvalid="Las direcciones de correo electrónico deben contener '@' y no pueden contener comas. Corrija su dirección de correo electrónico.\n";
	var RE_comma=new RegExp(",");
	var RE_at=new RegExp("@");
	if(vEmail=="") { errMsg+=error_Email; }
	else if(RE_comma.test(vEmail) || !RE_at.test(vEmail)) { errMsg+=error_EmailInvalid; }

	if(document.getElementById('kc')) {
		if(!displaycheck()) { errMsg+="Introduzca correctamente el código captcha.\n"; }
	}

	if(errMsg!="") {
		alert(errMsg);
		return false;
	}
	else {
		return true;
	}
}

