function validate (){

        if (document.Feedback.elements.profile.value == ""){ // profile not selected
                alert("Please tell us if you are an evaluator or an exsisting customer.");
                document.Feedback.elements.profile.focus;
                return false;
        }

        var recip="";
        var recipIndex=0;
        recipIndex=document.Feedback.elements.country.selectedIndex;
        recip=document.Feedback.elements.country[recipIndex].value;
        if (recip=="") { // no country has been selected
                alert ("Please select your location");
                document.Feedback.elements.country.focus ();
                return false;
        }
		var amer_apac = {};
		var amer_apac_list = [
			'USA', 'Canada', 'Mexico',
			 'Australia', 'Brunei', 'Cambodia', 'China', 'Taiwan', 'Fiji',
			 'Indonesia', 'Japan', 'Kiribati', 'North Korea', 'South Korea',
			 'Laos', 'Malaysia', 'Marshall Islands', 'Micronesia', 'New Zealand',
			 'Palau', 'Papua New Guinea', 'Philippines', 'Samoa', 'Singapore',
			 'Solomon Islands', 'Thailand', 'Tonga', 'Tuvalu', 'Vanuatu',
			 'Vietnam', 'Samoa', 'Guam'
		];
		for (var i = 0; i < amer_apac_list.length; i++) {
			amer_apac[amer_apac_list[i]] = true;
		}

        // set recipient according to the country selected
        if (recip in amer_apac) { // US/Canada
            document.Feedback.elements.recipient.value = "support@vector-networks.com";
        }
        else { // RoW
            document.Feedback.elements.recipient.value = "support@vector-networks.eu";
        }

        if (document.Feedback.elements.email.value == "") { // email is blank
                alert ("Please enter your email address");
                document.Feedback.elements.email.focus ();
                return false;
        }

        var indexOfValue;
        var error = "Please enter a valid e-mail address.";
        var emailField = document.Feedback.elements.email;

        indexOfValue = emailField.value.indexOf("@"); // find "@"
        if (indexOfValue=="-1"){ // no @ symbol
                alert(error); // give an error
                emailField.focus(); // put cursor in field
        return false; }

        else {
                indexOfValue = emailField.value.indexOf("\."); // find . full stop
            if (indexOfValue=="-1"){ // no . full stop
                    alert(error);
                    emailField.focus();
            return false; }
        }

        if (emailField.value.length < 7){ // less than 7 chars long
                alert(error);
                emailField.focus();
        return false;}

        if (document.Feedback.elements.name.value == "") { // name is blank
                alert ("Please enter your name");
                document.Feedback.elements.name.focus ();
                return false;
        }

        if (document.Feedback.elements.company.value == "") { // company is blank
                alert ("Please enter your company name");
                document.Feedback.elements.company.focus ();
                return false;
        }

        if (document.Feedback.elements.serial.value != "" && document.Feedback.elements.serial.value.length > 50) { // serial is too long
                alert ("The serial number you entered is invalid");
                document.Feedback.elements.serial.focus ();
                return false;
        }

        if (document.Feedback.elements.product.value == "select"){
                alert("Please tell us which product you are using");
                document.Feedback.elements.product.focus;
                return false;
        }

        if (document.Feedback.elements.os.value == ""){
                alert("Please tell us which operating system you are using");
                document.Feedback.elements.os.focus;
                return false;
        }

        if (document.Feedback.elements.probSubject.value == "") {
                alert ("Please enter a subject for your problem");
                document.Feedback.elements.probSubject.focus ();
                return false;
        }

        if (document.Feedback.elements.problem.value == "") {
                alert ("Please tell us the details of your technical problem");
                document.Feedback.elements.problem.focus ();
                return false;
        }

        // define the subject of the email sent to support
        var probSubject = document.Feedback.elements.probSubject.value
        var userCountry = document.Feedback.elements.country.value
        document.Feedback.elements.subject.value = ""+userCountry+", "+probSubject+", Vector Web Support Form"

        // Now submit the support form
        return true;
}