/* Copyright by Xplora comunicació visual www.xploravisual.com */

function Validate (formulario)
	{
	var pareja_nombre1=formulario.pareja_nombre1.value;

	if ( pareja_nombre1 == "" )
		{
		Error = ":::::::::::::::::::::: WebForWedding.net ::::::::::::::::::::::\n\n"
			+ "We need the bride and groom names.\n\n"
			+ "Please, check the form.\n\n";
		alert(Error);
		formulario.pareja_nombre1.focus();
		return false;
		}

	var pareja_nombre2=formulario.pareja_nombre2.value;

	if ( pareja_nombre2 == "" )
		{
		Error = ":::::::::::::::::::::: WebForWedding.net ::::::::::::::::::::::\n\n"
			+ "We need the bride and groom names.\n\n"
			+ "Please, check the form.\n\n";
		alert(Error);
		formulario.pareja_nombre2.focus();
		return false;
		}

	var pareja_poblacion=formulario.pareja_poblacion.value;

	if ( pareja_poblacion == "" )
		{
		Error = ":::::::::::::::::::::: WebForWedding.net ::::::::::::::::::::::\n\n"
			+ "We need the city name of the bride and groom.\n\n"
			+ "Please, check the form.\n\n";
		alert(Error);
		formulario.pareja_poblacion.focus();
		return false;
		}

	var pareja_provincia=formulario.pareja_provincia.value;

	if ( pareja_provincia == "" )
		{
		Error = ":::::::::::::::::::::: WebForWedding.net ::::::::::::::::::::::\n\n"
			+ "We need the province name of the bride and groom.\n\n"
			+ "Please, check the form.\n\n";
		alert(Error);
		formulario.pareja_provincia.focus();
		return false;
		}

	var web_idioma=formulario.web_idioma.value;

	if ( web_idioma == "" )
		{
		Error = ":::::::::::::::::::::: WebForWedding.net ::::::::::::::::::::::\n\n"
			+ "We need the Web language desired.\n\n"
			+ "Please, check the form.\n\n";
		alert(Error);
		formulario.web_idioma.focus();
		return false;
		}

	var modeloweb=formulario.modeloweb.value;
	
	if ( modeloweb == "" )
		{
		Error = ":::::::::::::::::::::: WebForWedding.net ::::::::::::::::::::::\n\n"
			+ "We need the Web model desired.\n\n"
			+ "Please, check the form.\n\n";
		alert(Error);
		formulario.modeloweb.focus();
		return false;
		}
		
	var contacto_nombre=formulario.contacto_nombre.value;
	
	if ( contacto_nombre == "" )
		{
		Error = ":::::::::::::::::::::: WebForWedding.net ::::::::::::::::::::::\n\n"
			+ "We need the contact name.\n\n"
			+ "Please, check the form.\n\n";
		alert(Error);
		formulario.contacto_nombre.focus();
		return false;
		}

	var contacto_email=formulario.contacto_email.value;
	
	if ( contacto_email == "" )
		{
		Error = ":::::::::::::::::::::: WebForWedding.net ::::::::::::::::::::::\n\n"
			+ "We need the contact e-mail address.\n\n"
			+ "Please, check the form.\n\n";
		alert(Error);
		formulario.contacto_email.focus();
		return false;
		}

	var como=formulario.como.value;
	
	if ( como == "" )
		{
		Error = ":::::::::::::::::::::: WebForWedding.net ::::::::::::::::::::::\n\n"
			+ "We need the to know how do you meet us.\n\n"
			+ "Please, check the form.\n\n";
		alert(Error);
		formulario.como.focus();
		return false;
		}

	var comotxt=formulario.comotxt.value;
	
	if ( comotxt == "" )
		{
		Error = ":::::::::::::::::::::: WebForWedding.net ::::::::::::::::::::::\n\n"
			+ "Can you specify how do you meet us?.\n\n"
			+ "Please, check the form.\n\n";
		alert(Error);
		formulario.comotxt.focus();
		return false;
		}

	if (formulario.acepto.checked) { 
	} else {
		Error = ":::::::::::::::::::::: WebForWedding.net ::::::::::::::::::::::\n\n"
			+ "We need you accept our Privacy Policy.\n\n"
			+ "Please, check the form.\n\n";
		alert(Error);
		formulario.acepto.focus();
		return false;
	}

		
	return true;
	}
