// Comprobación de los datos Hosting Paso 1

function CheckRequiredFieldsA( ) {
var errormessage = new String();

if(WithoutContentA(document.hosting.acepto.value))
	{ errormessage += "\n\nPor favor, debe aceptar los Términos y Condiciones.\n"; }

if(errormessage.length > 2) {
	alert('OBSERVACIONES:' + errormessage + '\n\nSi necesita ayuda llame al 902 020 093.');
	return false;
	}

return true;

} 

function WithoutContentA(ss) {
if(ss.length > 0) { return false; }
return true;
}

// Comprobación de los datos Hosting Paso 2

function CheckRequiredFieldsB( ) {
var errormessage = new String();

if(WithoutContentB(document.hosting.dominio.value))
	{ errormessage += "\n\nPor favor, teclee un nombre de dominio para poder continuar.\n\nPor ejemplo, midominio.com"; }

if(errormessage.length > 2) {
	alert('OBSERVACIONES:' + errormessage + '\n\nPor favor, corriga el problema para poder continuar.');
	return false;
	}

return true;

} 

function WithoutContentB(ss) {
if(ss.length > 0) { return false; }
return true;
}

// Comprobación de los datos Hosting Paso 3

function CheckRequiredFieldsC( ) {
var errormessage = new String();

if(WithoutContentC(document.hosting.cliente_nombre.value))
	{ errormessage += "- No ha especificado su nombre y apellidos.\n"; }
if(WithoutContentC(document.hosting.cliente_cif.value))
	{ errormessage += "- No ha especificado el NIF/CIF.\n"; }
if(WithoutContentC(document.hosting.cliente_direccion.value))
	{ errormessage += "- No ha especificado su dirección.\n"; }
if(WithoutContentC(document.hosting.cliente_localidad.value))
	{ errormessage += "- No ha especificado su localidad.\n"; }
if(WithoutContentC(document.hosting.cliente_cp.value))
	{ errormessage += "- No ha especificado el código postal.\n"; }
if(WithoutContentC(document.hosting.cliente_telefono.value))
	{ errormessage += "- No ha especificado el teléfono de contacto.\n"; }
if(WithoutContentC(document.hosting.cliente_email.value))
	{ errormessage += "- No ha especificado su dirección de correo electrónico.\n"; }

if(document.hosting.cliente_email.value !=  document.hosting.cliente_email2.value)
        { errormessage += "- Las direcciones email no coinciden.\n"; }

if(errormessage.length > 2) {
	alert('OBSERVACIONES:\n\n' + errormessage + '\n\nPor favor, corriga el problema para poder continuar.\n\n');
	return false;
	}

return true;

} 

function WithoutContentC(ss) {
if(ss.length > 0) { return false; }
return true;
}

// Comprobación de los datos Hosting Paso 5

function CheckRequiredFieldsD( ) {
var errormessage = new String();

if(WithoutContentD(document.hosting.entidad.value))
	{ errormessage += "- No ha especificado la Entidad.\n"; }
if(WithoutContentD(document.hosting.oficina.value))
	{ errormessage += "- No ha especificado la Oficina.\n"; }
if(WithoutContentD(document.hosting.dc.value))
	{ errormessage += "- No ha especificado el Digito de Control (DC).\n"; }
if(WithoutContentD(document.hosting.cuenta.value))
	{ errormessage += "- No ha especificado el número de cuenta.\n"; }


if(errormessage.length > 2) {
	alert('OBSERVACIONES:\n\n' + errormessage + '\n\nPor favor, corriga el problema para poder continuar.\n\nRecuerde que una cuenta bancaria se compone de 20 números divididos por\nEntidad(4), Oficina(4), DC(2) y Cuenta(10).');
	return false;
	}

return true;

} 

function WithoutContentD(ss) {
if(ss.length > 0) { return false; }
return true;
}
