function __validate(form) {
	//var keywords_touchpoint = document.getElementById('searchboxFormKeywordsId');
  var keywords_touchpoint = form.keywords1;
	var postcode_touchpoint = form.postcode;
  //alert(keywords_touchpoint.value);
	if(keywords_touchpoint.value.trim() == 'Enter skill or Job Title') {
		keywords_touchpoint.value = '';
	}
	form.keywords.value = keywords_touchpoint.value;
	if(postcode_touchpoint.value.trim() == 'Enter town or postcode') {
		postcode_touchpoint.value = '';
	}

    var errors = getFormErrors(form); 
    if (!keywords_touchpoint.value && !postcode_touchpoint.value) errors.push('Please specify keyword(s) or location.');

    if (keywords_touchpoint.value.trim() != '') {
        try {
            doCheckLuceneQueryValue(keywords_touchpoint.value);
        } catch (e) {
            errors.push('Search query: '+ e.message);
        }
    }
    if (form.search_title.checked) form.keywords.value = 'title:('+form.keywords.value+')';
    if (postcode_touchpoint.value.trim() != '') {
        setCookie("latest_location", postcode_touchpoint.value, getExpDate(30, 0, 0), "/");
    } else {
        deleteCookie("latest_location", "/");
    }
    if (errors.length) {
        return __reporter(form, errors);
    } else {
        if (postcode_touchpoint.value.length)
            postcode_touchpoint.value = (postcode_touchpoint.value).postcodeToOutcode();
        //Nedstat counter to count the submissions of the main form
        sitestatForm(form, 'http://uk.sitestat.com/voltweb/clickajob/s?jobsearch_form_submit_main&amp;category=job_search_forms');
        //return true;
        //__submit(form);
    }
}

