
	validateRegister = function(){
		
		var $bValid = true;
		var $sOut		=	"The form has not been filled out correctly:\n\n";
		
		if(!validateTextField(document.forms.Register.FirstName.value,1,50)){
			$bValid = false;
			$sOut += "FirstName - Your first name needs to be between 1 and 50 characters      \n";
		};
		
		if(!validateTextField(document.forms.Register.LastName.value,1,50)){
			$bValid = false;
			$sOut += "LastName - Your last name needs to be between 1 and 50 characters      \n";
		};

		if(!validateEmail(document.forms.Register.Email.value)){
			$bValid = false;
			$sOut += "Email - The email you entered needs to be valid       \n";
		};

		 if(!validateTextField(document.forms.Register.Password.value,1,255)){
			$bValid = false;
			$sOut += "Password - Password needs to be between 1 and 255 characters      \n";
		};


		if(!validateTextField(document.forms.Register.Address1.value,1,255)){
			$bValid = false;
			$sOut += "Address 1 - First line of your adddress needs to be between 1 and 255 characters      \n";
		};
		
		if(!validateTextField(document.forms.Register.Address2.value,0,255)){
			$bValid = false;
			$sOut += "Address 2 - Second line of your adddress needs to be less than 255 characters      \n";
		};
		
		//if(!validateTextField(document.forms.Register.Address3.value,0,255)){
		//	$bValid = false;
		//	$sOut += "Address 3 - Third line of your adddress needs to be less than 255 characters      \n";
		//};
		
		if(!validateTextField(document.forms.Register.TownCity.value,1,50)){
			$bValid = false;
			$sOut += "Town/City - Town/City needs to be between 1 and 50 characters      \n";
		};
		
		if(!validateTextField(document.forms.Register.County.value,1,50)){
			$bValid = false;
			$sOut += "County - County needs to be between 1 and 50 characters      \n";
		};
		
		if(!validateTextField(document.forms.Register.Country.value,1,50)){
			$bValid = false;
			$sOut += "Country - Please select your country      \n";
		};
		
		if(!validateTextField(document.forms.Register.PostZip.value,1,50)){
			$bValid = false;
			$sOut += "Post/Zip - Post/Zip needs to be between 1 and 50 characters      \n";
		};
		
		//if(!validateTextField(document.forms.Register.ContactNumber.value,0,50)){
		//	$bValid = false;
		//	$sOut += "Contact Number - Number needs to be less than 50 characters      \n";
		//};
		
		
		if(!document.forms.Register.TermsAndConditions.checked){
			$bValid = false;
			$sOut += "Terms & Conditions - You need to agree to our terms and conditions      \n";
		}
		
		
		if(document.forms.Register.Gift.options[document.forms.Register.Gift.selectedIndex].text.indexOf('---') > -1)		
		{
			$bValid = false;
			$sOut += "Gift - You need to select a gift      \n";
		
		}
		
		if(!$bValid){
			alert($sOut);
		}else{
			document.forms.Register.submit();
		};
		//var sTest = validateEmail(document.forms.Register.Email,value);
		//alert(sTest);
//	document.forms.Register.submit();
//	 alert('here we are');
	 
	 
 };
