<!--
/*
* Copyright (c) 2005
* Talis Information Ltd.
* Knights Court
* Solihull Parkway
* Birmingham Business Park
* B37 7YB
* United Kingdom
* All rights reserved.
*
* This software is the confidential and proprietary information of Talis
* Information Ltd. ("Confidential Information").  You shall not
* disclose such Confidential Information and shall use it only in
* accordance with the terms of the license agreement you entered into
* with Talis.
*
* @version $Revision: 1.11 $ $Date: 2005/05/04 10:24:53 $
* @author $Author: pxg $
*/
<!--
// make sure we dont double submit this form (performance)
function submitFunction(p_form){
  if (doDoubleClickBounce()) {
	return checkSearch(p_form);
  }
  return false;
}

// allow the given form to be submitted by an enter keypress
function handleKeypress(p_form){
  if (event.keyCode==13) {
	if (submitFunction(p_form)) {
	  p_form.submit();
	}
  }
}

// allows customer specific clearing of search forms
// by consultancy

function clearSearch(p_form){
}

// check that we have a search before performin an index browse
// now unused - axe 18/01/06 defect2829 for Prism 2.1
function checkBrowse (p_form) {
  var canSearch=false;

  if (p_form.indexSearchTerm.value.length>0) {
	canSearch = true;
  }
  if ( canSearch){
	return true;
  }else{
	alert (noCriteriaMsg);
	return false;
  }
}


// check that the form is valid before carying on
function submitIndexFunction(p_form){
  if (doDoubleClickBounce()) {
//    return checkBrowse(p_form); // removed - axe 18/01/06 defect2829 for Prism 2.1
    return checkSearch(p_form); // added to support brose validatation - axe 18/01/06 defect2829 for Prism 2.1
  }
  return false;
}
// handle the index form to submit on the enter key being pressed
function handleIndexKeypress(p_form){
  if (event.keyCode==13) {
    if (submitIndexFunction(p_form)) {
      p_form.submit();
    }
  }
}
//-->