<!--
function validateFeedback(form) 
{ 
	if (form.textField1.value == "")
	{
		alert("Please provide some information regarding your feedback and submit again."); //Informs user of empty field
   		form.textField1.focus( ); //This focuses the cursor on the empty field
   		return false; 
	}
	if (form.document.getElementById("C1").checked == true){
		return true;
	}


	if (form.firstname.value == "") //This checks to make sure the field is not empty
	{ 
   		alert("Please supply your name and submit your feedback again."); //Informs user of empty field
   		form.firstname.focus( ); //This focuses the cursor on the empty field
   		return false; 
	}
	if (form.largeField3.value.length >0)
	{
		// we now know they have put some value in the phone field, so will validate against that.
		if (form.smallField2.value.search(/([ \+]?\d{2})/) == -1)
			{
				alert("Please enter an area code for your telephone number and submit your feedback again."); //Informs user of empty field
				form.smallField2.focus( ); //This focuses the cursor on the empty field
				return false; 
			}
		if (form.largeField3.value.search(/\d{4}([ -]?)/) == -1)
			{
				alert("Please supply your telephone number and submit your feedback again."); //Informs user of empty field
				form.largeField3.focus( ); //This focuses the cursor on the empty field
				return false; 
			}		
	}else if (form.largeField2.value.length >0){
	
			if (form.smallField1.value.search(/([ \+]?\d{2})/) == -1)
			{
				alert("Please enter an area code for your mobile phone number and submit your feedback again."); //Informs user of empty field
				form.largeField2.focus( ); //This focuses the cursor on the empty field
				return false; 
			}
			if (form.largeField2.value.search(/\d{4}([ -]?)/) == -1)
			{
				alert("Please supply your mobile phone number and submit your feedback again."); //Informs user of empty field
				form.largeField2.focus( ); //This focuses the cursor on the empty field
				return false; 
			}
	}else{
		//have not given us either a phone or a mobile, so send them an alert.
			alert("Please supply at least one contact phone number and submit your feedback again."); //Informs user of empty field
			form.largeField3.focus( ); //This focuses the cursor on the empty field
			return false; 
	}
	validRegExp = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/; 
    strEmail = form.emailAddress.value;

   // search email text for regular exp matches
    if (strEmail.search(validRegExp) == -1) 
   {
      alert("A valid e-mail address is required. Please amend and submit your feedback again");
	  form.emailAddress.focus( );
      return false;
    } 
    return true; 
}

// --> 
