/*
05-04-2011	MW	Minified file for better optimization of website, un-minified original file does not have '_min" in the name
*/
$(document).ready(init);function init(){AddCorners();var ps = $("#partSearch");var defVal = "Part Number";ps.focus( function() { if (this.value == defVal) this.value = '';	} );ps.blur( function() { if(this.value == "") this.value = defVal; } );}function AddCorners(){$(".wrapper").prepend('<b class="tl"></b><b class="tr"></b><b class="bl"></b><b class="br"></b>');$(".wrapper").each(function(i){if ( $.browser.msie && $.browser.version <= 6 && this.offsetHeight/2 != parseInt(this.offsetHeight/2))$(".bl:eq(0), .br:eq(0)", this).css({bottom:-2+"px"})});}function validateSearchStr(SearchObj,minLength) {if(!minLength) minLength = 4;if(SearchObj.value == 'Part Number') {alert('Please enter a part number before you attempt a search.');return false;}if(String(SearchObj.value).length < minLength) {alert('Part number must be '+minLength+' or more characters.');return false;}/*if(SearchObj.value.match('[^A-Z^a-z^0-9 ]')) {alert('Please use only letters and numbers for your search string.');return false;}*/return true;}function findInventory() {document.inventoryForm.submit();}function thumbNailView(Doc,thumbIMG,PN,newPath,rootURL) {for(i=0; i<Doc.links.length; i++) {if(thumbIMG.id == Doc.links[i].id) thumbIMG.className = 'current';else if(Doc.links[i].id != '') Doc.links[i].className = '';}Doc.images['LargeImg'].src = rootURL+newPath;}
