function isValidEmail( fieldValue ) {
	if ( /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,7})+$/.test(fieldValue) )
		return true;
	
	return false;
}

function checkFieldsGeneral() {

missinginfo = "";

if (document.general.AccountTitle.value == "") {

missinginfo += "<br>&nbsp;&nbsp;&bull;&nbsp;Title";

}

if (document.general.AccountFname.value == "") {

missinginfo += "<br>&nbsp;&nbsp;&bull;&nbsp;First Name";

}

if (document.general.AccountLname.value == "") {

missinginfo += "<br>&nbsp;&nbsp;&bull;&nbsp;Last Name";

}

if (document.general.AccountDobd.value == "" || document.general.AccountDobm.value == "" || document.general.AccountDoby.value == "") {

missinginfo += "<br>&nbsp;&nbsp;&bull;&nbsp;Date of Birth";

}

if (document.general.AccountNationality.value == "") {

missinginfo += "<br>&nbsp;&nbsp;&bull;&nbsp;Nationality";

}

if (document.general.AccountPassport.value == "") {

missinginfo += "<br>&nbsp;&nbsp;&bull;&nbsp;Passport / Driving License";

}

if (document.general.AccountStreet.value == "") {

missinginfo += "<br>&nbsp;&nbsp;&bull;&nbsp;Street";

}

if (document.general.AccountPostalcode.value == "") {

missinginfo += "<br>&nbsp;&nbsp;&bull;&nbsp;City / Post code";

}

if (document.general.AccountCountry.value == "") {

missinginfo += "<br>&nbsp;&nbsp;&bull;&nbsp;Country";

}

if (document.general.AccountMphoneprivatec.value == "" || document.general.AccountMphoneprivate.value == "") {

missinginfo += "<br>&nbsp;&nbsp;&bull;&nbsp;Passport / Driving License";

}

if (document.general.AccountMemail.value == "" || !isValidEmail( document.general.AccountMemail.value ) ) {

missinginfo += "<br>&nbsp;&nbsp;&bull;&nbsp;E-mail";

}

if (missinginfo != "") {


missinginfo = 

"You have not filled correctly the following fields:<br>" +

missinginfo;

document.getElementById('errors').style.display = "block";
document.getElementById('errors').innerHTML=missinginfo;
scroll(0,0);

return false;

}

else 

return true;

}

function checkFieldsInvestment() {

missinginfo = "";

if (!document.investment.idProInvestor.checked && !document.investment.idExpInvestor.checked && !document.investment.idInexpInvestor.checked) {

missinginfo += "<br>&nbsp;&nbsp;&bull;&nbsp;Would you consider yourself";

}

if (!document.investment.idRiskNeutral.checked && !document.investment.idRiskWilling.checked && !document.investment.idRiskAverse.checked) {

missinginfo += "<br>&nbsp;&nbsp;&bull;&nbsp;Your Risk Understanding";

}

if (!document.investment.interest_options.checked && !document.investment.foreignexchange2.checked && !document.investment.energy.checked && !investment.metal.checked) {

missinginfo += "<br>&nbsp;&nbsp;&bull;&nbsp;The products of interest to you";

}


if (missinginfo != "") {


missinginfo = 

"You have not filled correctly the following fields:<br>" +

missinginfo;

document.getElementById('errors').style.display = "block";
document.getElementById('errors').innerHTML=missinginfo;
scroll(0,0);

return false;

}

else 

return true;

}

function checkFieldsDisclosure() {

missinginfo = "";

if (document.disclosure.AccountRistCapital.value == "") {

missinginfo += "<br>&nbsp;&nbsp;&bull;&nbsp;Approximate risk capital stated in home currency";

}


if (missinginfo != "") {


missinginfo = 

"You have not filled correctly the following fields:<br>" +

missinginfo;

document.getElementById('errors').style.display = "block";
document.getElementById('errors').innerHTML=missinginfo;
scroll(0,0);

return false;

}

else 

return true;

}

function checkFieldsAcknowledgement() {

missinginfo = "";

if (!document.acknowledgement.chkACK.checked) {

missinginfo += "<br>&nbsp;&nbsp;&bull;&nbsp;Please read, understood, and agree to the acknowledgement";

}


if (missinginfo != "") {


missinginfo = 

"You have not filled correctly the following fields:<br>" +

missinginfo;

document.getElementById('errors').style.display = "block";
document.getElementById('errors').innerHTML=missinginfo;
scroll(0,0);

return false;

}

else 

return true;

}