function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


// code to popup window
//onLoad="javascript:shortPopUp( 'filename.htm', 'popup', 320, 200 )"

function shortPopUp( url, name, width, height, scrollbars ) { 
	var top  = "50"; 
	var left = "50"; 
 
	if( scrollbars == null ) scrollbars = "0"; 
 
	str  = ""; 
	str += "resizable=0,titlebar=0,menubar=0,"; 
	str += "toolbar=0,location=0,directories=0,status=0,"; 
	str += "scrollbars=" + scrollbars + ","; 
	str += "width=" + width + ","; 
	str += "height=" + height + ","; 
	str += "top=" + top + ","; 
	str += "left=" + left; 
 
	window.open( url, name, str ); 
} 



//new script 
//dropdown menu select boxes on main menu and other pages

function getSelect(s) {
  return s.options[s.selectedIndex].value
}




//new script 

		//Declare variables.
		var j = 0;
		var LowerCaseKey;
		var Keyword = new Array();
		var KeyURL = new Array();
		
        //This array is for the keywords.
       	Keyword[0] = "internet";
		Keyword[1] = "scada";
		Keyword[2] = "barcode scanner";

		//This array is for the sites/pages associated with your keywords.
		KeyURL[0] = "/products/";
		KeyURL[1] = "/";
		KeyURL[2] = "/";

		//Check to see if keyword exists, and if it does, take them to that page.
		function findKeyword() 
		{
			for (j=0; j<=Keyword.length; j++)
			{
				LowerCaseKey = document.form.keyword.value.toLowerCase();
				if (LowerCaseKey == Keyword[j]) 
					window.location = KeyURL[j];
			}
		}
		
		
		
		


