// JavaScript Document


<!-- Hide from old browsers

var imagenumber = 3 ;
var randomnumber = Math.random() ;
var rand1 = Math.round( (imagenumber-1) * randomnumber) + 1 ;
images = new Array
images[1] = "images/home-banner-1.jpg"
images[2] = "images/home-banner-2.jpg"
images[3] = "images/home-banner-3.jpg"

var image = images[rand1]

links = new Array
links[1] = "transportation.asp"
links[2] = "medical.asp"
links[3] = "industrial.asp"

var link = links[rand1]
// -- End Hiding Here -->


function setDivHeights() {
if (document.all) {
var iLeftHeight = document.getElementById("HomeLeftColumn").offsetHeight;
var iCenterHeight = document.getElementById("HomeCenterColumn").offsetHeight;
var iRightHeight = document.getElementById("HomeRightColumn").offsetHeight;
}
else {
var iLeftHeight = document.getElementById("HomeLeftColumn").clientHeight;
var iCenterHeight = document.getElementById("HomeCenterColumn").offsetHeight;
var iRightHeight = document.getElementById("HomeRightColumn").clientHeight;
}
if (iLeftHeight > iRightHeight && iLeftHeight > iCenterHeight) {
document.getElementById("HomeRightColumn").style.height = iLeftHeight + "px";
document.getElementById("HomeCenterColumn").style.height = iLeftHeight + "px";
}
else if (iRightHeight > iLeftHeight && iRightHeight > iCenterHeight) {
document.getElementById("HomeLeftColumn").style.height = iRightHeight + "px";
document.getElementById("HomeCenterColumn").style.height = iRightHeight + "px";
}
else {
document.getElementById("HomeLeftColumn").style.height = iCenterHeight + "px";
document.getElementById("HomeRightColumn").style.height = iCenterHeight + "px";

}
}


function checkSearchField() {
missinginfo = "";
if (document.search.search.value == "") {
missinginfo += "You must enter a part number to begin search";
}
if (document.search.search.value == " part number search") {
missinginfo += "You must enter a part number to begin search";
}
if (missinginfo != "") {
alert(missinginfo);
return false;
}
else return true;
}


function revealBox() {
document.getElementById('fixeddiv').style.display ='block';
}