// JavaScript Document
	<!--
	function validatesearchbar(){
		document.productsearchbar.txtsearch.value=trimstrbar(document.productsearchbar.txtsearch.value)
		if (document.productsearchbar.txtsearch.value.length==0) {
			alert('Please enter search criteria...')
			return false
		}	
		if (document.productsearchbar.txtsearch.value.length<=1) {	
			alert('Please enter atleast 2 characters...')
			return false
		}
		//document.productsearchbar.action = '/xp/xp5_ProductSearch.asp?txtsearch='+document.productsearchbar.txtsearch.value
		document.productsearchbar.action = '/xp/xp5_findsummary.asp?txtsearch='+document.productsearchbar.txtsearch.value
		
		//document.productsearchbar.submit()
	}
	function trimstrbar(ystr) {


//Start STUMOD to strip "/" from search terms and strip out long whitespaces that crash the server

		ystr = ystr.replace(/\//g,' ');  //stu mod to prevent / getting into search term
		ystr = ystr.replace('  ',' ');  //stu mod to prevent "  " getting into search term
		ystr = ystr.replace('  ',' ');  //stu mod to prevent "  " getting into search term
		ystr = ystr.replace('  ',' ');  //stu mod to prevent "  " getting into search term
		ystr = ystr.replace('  ',' ');  //stu mod to prevent "  " getting into search term
		ystr = ystr.replace('  ',' ');  //stu mod to prevent "  " getting into search term

//Start STUMOD to strip "/" from search terms and strip out long whitespaces that crash the server





		var xfound = false
		if (ystr.length == 0) return ""
		for (var k=0; k<ystr.length;k++) {
			if (!xfound) {
				if (ystr.charAt(k) == " ") {
				}
				else {
					ystr = ystr.substring(k, ystr.length)
					xfound = true
					break
				}
			}
		}
		if (!xfound) ystr = ""
		
		xfound = false
		if (ystr.length == 0) return ""
		for (k=ystr.length-1; k>=0;k--) {
			if (!xfound) {
				if (ystr.charAt(k) == " ") {
				}
				else {
					ystr = ystr.substring(0, k+1)
					xfound = true
					break
				}
			}
		}
		if (!xfound) ystr = ""
		return ystr
	}
	//-->

