<!--
//common.js

function bookmark(url, sitename)
{
  ns="FireFox users, use CTRL+D to bookmark this site."
  if ((navigator.appName=='Microsoft Internet Explorer') &&
    (parseInt(navigator.appVersion)>=4))
  {
    window.external.AddFavorite(url, sitename);
  }
  else if (navigator.appName=='Netscape')
  {
    alert(ns);
  }
}

function printInfo()
{
window.print()
}

function tipsWindow1(thePage, theWidth, theHeight)
{
  newwindow=window.open(thePage,"newwin",
   "scrollbars=yes,width=" + theWidth + ",height=" + theHeight + ",left=300,top=50");
} 

function validateSearch(theForm)
{
  //check File Name
  if (theForm.search.value == "") 
  {
    // alert("Please enter a keyword.");
    theForm.search.focus(); 
    return (false);
  }
  return (true);
}

function onImgErrorSmall(source)
{
source.src = "/images/no-image-125px.gif";
// disable onerror callback to prevent endless loop
source.onerror = "";
return true
}

function onImgErrorLarge(source)
{
source.src = "/images/no-image-200px.gif";
// disable onerror callback to prevent endless loop
source.onerror = "";
return true
}

//-->
