function verifyForm(oForm) {
	var sError_message = ""
	var bSelect_ok = false;
	var dToday = new Date();
	var iSelectedCountry = 0;
	var selectListOK = false;

	// Personal Details
	if (oForm.uEmailAddress.value.length == 0) {
		sError_message = sError_message + "\n * Email was not entered"
		oForm.uEmailAddress.focus();
	}
	if (oForm.uTitle.value.length == 0) {
		sError_message = sError_message + "\n * Title was not entered"
		oForm.uTitle.focus();
	}
	if (oForm.uForenames.value.length == 0) {
		sError_message = sError_message + "\n * First Name was not entered"
		oForm.uForenames.focus();
	}
	if (oForm.uSurname.value.length == 0) {
		sError_message = sError_message + "\n * Last Name was not entered"
		oForm.uSurname.focus();
	}
	if (oForm.uCompany.value.length == 0) {
		sError_message = sError_message + "\n * Company Name was not entered"
		oForm.uCompany.focus();
	}
	if (oForm.uJobTitle.value.length == 0) {
		sError_message = sError_message + "\n * Your Position was not entered"
		oForm.uJobTitle.focus();
	}
	if (oForm.uCompanyType.value.length == 0) {
		sError_message = sError_message + "\n * Your Position was not entered"
		oForm.uCompanyType.focus();
	}
	if (oForm.aAddress1.value.length == 0) {
		sError_message = sError_message +  "\n * Address1 was not entered" 
	}
	/*if (oForm.aAddress2.value.length == 0) {
		sError_message = sError_message + "\n * Address2 was not entered" 
	}*/
	if (oForm.aCity.value.length == 0) {
		sError_message = sError_message + "\n * City was not entered" 
	}
	if (oForm.aPostcode.value.length == 0) {
		sError_message = sError_message + "\n * Postcode was not entered"
	}
	if (oForm.aTel.value.length == 0) {
		sError_message = sError_message + "\n * Telephone was not entered"
	}
	
	
	for (i=0; i<oForm.aCID.length; i++) {
		if (oForm.aCID.options[i].selected) {
			iSelectedCountry = oForm.aCID.options[i].value
		}
	}

	if (iSelectedCountry == 0) {
		sError_message = sError_message + "\n * Country was not selected"
	}

	for (i=1; i<oForm.aState.length; i++) {
			if (oForm.aState.options[i].selected) { selectListOK = true }
		}
		if (selectListOK && iSelectedCountry!=115 && iSelectedCountry!=10 && iSelectedCountry!=29 && iSelectedCountry!=103 && iSelectedCountry!=2 && iSelectedCountry!=147 && iSelectedCountry!=146 && iSelectedCountry!=148 ) {
			sError_message = sError_message + "\n * A US state can only be selected for the United States"
		}

	if (!oForm.termsandconditions.checked) {
		sError_message = sError_message + "\n * You cannot continue without agreeing to the terms and conditions." 
	}

	// show the error dialog or submit the form
	if (sError_message.length == 0) {
		return true;
	} else {
		alert(sError_message);
		return false;
	}
}
function showSecurityCode() {
	var newWindow3
	if (typeof(newWindow3) == 'object') {
		if (!newWindow2.closed) {
			newWindow3.close();
			newWindow3 = window.open('http://www.euromoneyplc.com/static/stubs/stub107.htm','termsandconditions', 'width=400,height=450,resizable=0,scrollbars=no,status=yes')
		} else {
			newWindow3 = window.open('http://www.euromoneyplc.com/static/stubs/stub107.htm','termsandconditions', 'width=400,height=450,resizable=0,scrollbars=no,status=yes')
		}
	} else {
		newWindow3 = window.open('http://www.euromoneyplc.com/static/stubs/stub107.htm','termsandconditions', 'width=400,height=450,resizable=0,scrollbars=no,status=yes')
	}
}