function checkform()
{
	if(document.vermaufp.city[0].checked == false && document.vermaufp.city[1].checked == false && document.vermaufp.city[2].checked == false)
	{
		document.vermaufp.city[0].focus();
		alert("Por favor indique una ciudad o región en la que busca una vivienda.");
		return false;
	}

	if(document.vermaufp.object.value == "")
	{
		document.vermaufp.object.focus();
		alert("Por favor describa en breve qué tipo de inmueble busca.");
		return false;
	}

	if(document.vermaufp.erlaeuterung.value.length>200)
	{
		document.vermaufp.erlaeuterung.focus();
		alert("La indicación en 'posibles explicaciones' es demasiada larga (max. 200 letras).\nPor favor use, dado el caso, el campo adicional al final del formulario.");
		return false;
	}

	if(isNaN(document.vermaufp.auswahl1.value))
	{
		document.vermaufp.auswahl1.focus();
		alert("Este campo es solamente para números.");
		return false;
	}

	if(isNaN(document.vermaufp.auswahl2.value))
	{
		document.vermaufp.auswahl2.focus();
		alert("Este campo es solamente para números.");
		return false;
	}

	if(isNaN(document.vermaufp.auswahl3.value))
	{
		document.vermaufp.auswahl3.focus();
		alert("Este campo es solamente para números.");
		return false;
	}

	if(isNaN(document.vermaufp.auswahl4.value))
	{
		document.vermaufp.auswahl4.focus();
		alert("Este campo es solamente para números.");
		return false;
	}

	if(isNaN(document.vermaufp.auswahl5.value))
	{
		document.vermaufp.auswahl5.focus();
		alert("Este campo es solamente para números.");
		return false;
	}

	if(document.vermaufp.howmany[0].checked == false && document.vermaufp.howmany[1].checked == false)
	{
		document.vermaufp.howmany[0].focus();
		alert("Por favor describa su solicitud : \nindividual / para varias personas, \nfumador / no fumador");
		return false;
	}

	if(document.vermaufp.start.value == "")
	{
		document.vermaufp.start.focus();
		alert("Por favor rellene la fecha en la que usted desea instalarse.");
		return false;
	}

	if(document.vermaufp.time[0].checked == false && document.vermaufp.time[1].checked == false && document.vermaufp.time[2].checked == false)
	{
		window.location.href = "#anker";
		alert("'Por favor marque una de las 3 opciones bajo 'Mi solicitud sirve:'");
		return false;
	}

	if(document.vermaufp.rent.value == "")
	{
		document.vermaufp.rent.focus();
		alert("POr favor rellene un precio máximo.");
		return false;
	}

	if(document.vermaufp.notes.value.length>400)
	{
		document.vermaufp.notes.focus();
		alert("La inscripción bajo 'comentarios adicionales' es demasiada largo (max. 400 letras).");
		return false;
	}

	if(document.vermaufp.name.value == "")
	{
		document.vermaufp.name.focus();
		alert("Por favor escriba su nombre completo.");
		return false;
	}

	if(document.vermaufp.status.value == "")
	{
		document.vermaufp.status.focus();
		alert("Por favor inscriba la asociación jurídica de la empresa o de la institución.");
		return false;
	}

	if(document.vermaufp.adr1.value == "")
	{
		document.vermaufp.adr1.focus();
		alert("Por favor rellene una dirección completa.");
		return false;
	}

	if(document.vermaufp.plz.value == "")
	{
		document.vermaufp.plz.focus();
		alert("Por favor rellene el código postal.");
		return false;
	}

	if(document.vermaufp.ort.value == "")
	{
		document.vermaufp.ort.focus();
		alert("Por favor rellene una dirección completa.");
		return false;
	}

	if(document.vermaufp.contactPARTNER.value == "")
	{
		document.vermaufp.contactPARTNER.focus();
		alert("Por favor dénos el nombre de una persona de su confianza, o el nombre del verdadero inquilino.");
		return false;
	}

	if(document.vermaufp.fone1.value == "")
	{
		document.vermaufp.fone1.focus();
		alert("Por favor dénos un número en la que podamos comunicarnos con usted.");
		return false;
	}

	if(document.vermaufp.agreetoagb.checked == false)
	{
		document.vermaufp.agreetoagb.focus();
		alert("Por favor confirme el pedido de encargo con el campo que está abajo.");
		return false;
	}

	document.vermaufp.submit();
}
