function doTheSearch() 

{ 

var n = document.bikesearch.number.value;

var b = document.bikesearch.series.options[document.bikesearch.series.selectedIndex].value;

if ( n=="" && b=="" ) {

return;

}

var newUrl = "/keyword/";

if ( n!="" && b!="" ) {

newUrl += n + "-" + b;

}

else if ( n=="" ) {

newUrl += b;

}

else {

newUrl += n;

}

window.location = newUrl;

} 





function norobotmail(aUser, aDomain) { document.location = "mailto:" + aUser + "@" + aDomain; }

function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

if (hasPath("galleries"))
YD.addClass(document.body, "galleries");

// fix the pesky pipes

YE.onAvailable("cobrand_footer", function() {this.innerHTML = this.innerHTML.replace(/\||what are feeds\?/gi, '');});

function ModifyText ()
{
  if (YD.hasClass(document.body, "gallery_6760566"))
  {
    var objElement = YD.get("comment")
    if (objElement != null)
    {
      var str = new String(objElement.innerHTML);
      str = str.replace(/\gallery/gi, 'guestbook');
      objElement.innerHTML = str;
    }
  }
}

YE.onAvailable("comment", ModifyText);
