// .----------------------------------------------------------------------------.
// |.--------------------------------------------------------------------------.|
// || This script is the private property of                                   ||
// ||          Mobilit-e Limited (Company Registration Number: 351410)         ||
// ||          Dublin, Ireland                                                 ||
// ||                                                                          ||
// || No use/reuse is permitted without prior written permission of Mobilit-e. ||
// || Written permission is only valid in the form of a legally binding        ||
// ||      software licence contract with Mobilit-e.                           ||
// ||                                                                          ||
// ||                Copyright: 2002,2003,2004                                      ||
// |'--------------------------------------------------------------------------'|
// '----------------------------------------------------------------------------'
//
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
function xSiteSearch(SearchPageSuffix,SearchPath)
 {if (SearchPath == undefined) {var SearchPath = '?';}
  var Tzv_ie = document.all ,Tzv_dom = document.getElementById;
  eval("SearchFor = (Tzv_dom)?document.getElementById('search_term') : Tzv_ie? document.all.search_term: document.search_term;")
  if (SearchPath == '?')
    {SearchPath = "./";
     var isAt = location.href.lastIndexOf("\/");
     if (isAt != -1)
       {SearchPathx = location.href.substring(0,isAt);
        SearchPathy = SearchPathx.lastIndexOf("\/");
        if (SearchPathx.substring(SearchPathy+2) == 'erspective') {SearchPath = "../";}
        //SearchPath = ".\\" + SearchPathx.substring(SearchPathy+1) + "\\";
       }
    }
  location.href = 'xsitesearch.php?SearchPage=searchpage.' + SearchPageSuffix + '&search_term=' + SearchFor.value + '&ScanDirectory=' + SearchPath;
 } 