NavApp=navigator.appName;
AppVer=parseInt(navigator.appVersion);
V="new";

if (NavApp=="Netscape" && AppVer >=3) V="new";
else if (NavApp=="Microsoft Internet Explorer" && AppVer >=4) V="new";
else V="old";

if (V=="new") {
Homeon = new Image();
Homeon.src = "images/menuHomeOn.gif";
Homeoff = new Image();
Homeoff.src = "images/menuHomeOff.gif";
Abouton = new Image();
Abouton.src = "images/menuAboutOn.gif";
Aboutoff = new Image();
Aboutoff.src = "images/menuAboutOff.gif";
Contacton = new Image();
Contacton.src = "images/menuContactOn.gif";
Contactoff = new Image();
Contactoff.src = "images/menuContactOff.gif";
Linkson = new Image();
Linkson.src = "images/menuLinksOn.gif";
Linksoff = new Image();
Linksoff.src = "images/menuLinksOff.gif";
Carton = new Image();
Carton.src = "images/menuCartOn.gif";
Cartoff = new Image();
Cartoff.src = "images/menuCartOff.gif";
Publishon = new Image();
Publishon.src = "images/menuPublishOn.gif";
Publishoff = new Image();
Publishoff.src = "images/menuPublishOff.gif";
Specialon = new Image();
Specialon.src = "images/menuSpecialOn.gif";
Specialoff = new Image();
Specialoff.src = "images/menuSpecialOff.gif";
Infoon = new Image();
Infoon.src = "images/menuInfoOn.gif";
Infooff = new Image();
Infooff.src = "images/menuInfoOff.gif";
Mailliston = new Image();
Mailliston.src = "images/menuMaillistOn.gif";
Maillistoff = new Image();
Maillistoff.src = "images/menuMaillistOff.gif";
Bookstoreon = new Image();
Bookstoreon.src = "images/menuBookstoreOn.gif";
Bookstoreoff = new Image();
Bookstoreoff.src = "images/menuBookstoreOff.gif";
Monthlyon = new Image();
Monthlyon.src = "images/menuMonthlyOn.gif";
Monthlyoff = new Image();
Monthlyoff.src = "images/menuMonthlyOff.gif";
Monthly2on = new Image();
Monthly2on.src = "images/menuMonthly2On.gif";
Monthly2off = new Image();
Monthly2off.src = "images/menuMonthly2Off.gif";
}

function validate() {
var passed = false
var apostrophe=/'/;
with (document.Search) {

if (Title.value.search(apostrophe) != -1) {
alert("Please do not use Apostrophes in your search criteria.");
Title.focus();
passed = false;
}
else if (Author.value.search(apostrophe) != -1) {
alert("Please do not use Apostrophes in your search criteria.");
Author.focus();
passed = false;
}
else if (Keyword.value.search(apostrophe) != -1) {
alert("Please do not use Apostrophes in your search criteria.");
Keyword.focus();
passed = false;
}
else {
passed = true;
}
}
return passed;
}