<!--
// --------------------------- first name
function  validateDetails(f) {
	
//------------------------------- title
if (f.title.value == '')
	{
	alert('Please enter your title.');
	f.title.focus();
	return(false);
	}

//------------------------------- first name
if (f.firstName.value == '')
	{
	alert('Please enter your  First Name.');
	f.firstName.focus();
	return(false);
	}

	
if (f.firstName.value.length > 255)
	{
		alert('Please limit the number of characters in your name to 255.');
		f.firstName.focus();
		return(false);
	}
// --------------------------------------
	

//------------------------------- last name
if (f.lastName.value == '')
	{
	alert('Please enter your Last Name.');
	f.lastName.focus();
	return(false);
	}

	
if (f.lastName.value.length > 255)
	{
		alert('Please limit the number of characters in your name to 255.');
		f.lastName.focus();
		return(false);
	}
// -------------------------------------- email
	
if (f.strEmail.value == '')
	{
		alert('Please enter your email address.');
		f.strEmail.focus();
		return(false);
	}
	
//if (f.strPhone.value == '')
//	{
	//	alert('Please enter a contact phone number.');
		//f.strPhone.focus();
	//	return(false);
	//}
	
var exclude=/[^@\-\.\w]|^[_@\.\-]|[\:]|[\._\-]{2}|[@\.]{2}|(@)[^@]*\1/;
var check=/@[\w\-]+\./;
var checkend=/\.[a-zA-Z]{2,3}$/;
if(((f.strEmail.value.search(exclude) != -1)||(f.strEmail.value.search(check)) == -1)||(f.strEmail.value.search(checkend) == -1))
	{
		alert('Please enter a valid email address.');
		f.strEmail.focus();
		return(false);
	}
	
if (f.strEmail.value.length > 90)
	{
		alert('Please limit the length of your email to 90 characters.');
		f.strEmail.focus();
		return(false);
	}

if (f.strHouseNo.value == '')
	{
		alert('Please enter your FULL address (missing : street).');
		f.strHouseNo.focus();
		return(false);
	}

	
if (f.strStreet.value == '')
	{
		alert('Please enter your FULL address (missing : street).');
		f.strStreet.focus();
		return(false);
	}

if (f.strCity.value == '')
	{
		alert('Please enter the city.');
		f.strCity.focus();
		return(false);
	}

if (f.strCountry.value == '')
	{
		alert('Please enter your FULL address (missing : country).');
		f.strCountry.focus();
		return(false);
	}

if (f.strPostcode.value == '')
	{
		alert('Please enter your FULL address (missing : postcode).');
		f.strPostcode.focus();
		return(false);
	}

return(true);
}

// -->
