// JavaScript Document

		function changeBorder()
		{
		document.getElementById("suggestprod").style.border="1px solid #ff6600";
		}
		function changeBorderBack()
		{
		document.getElementById("suggestprod").style.border="1px solid #40ADD6";
		}
		
		
// Second set of js from include
		
		

$().ready(function() {

	$("#suggestprod").autocomplete(products);
	
		$("#clear").click(function() {
		$(":input").unautocomplete();
	});
});

function changeOptions(){
	var max = parseInt(window.prompt('Please type number of items to display:', jQuery.Autocompleter.defaults.max));
	if (max > 0) {
		$("#suggest1").setOptions({
			max: max
		});
	}
}

function changeScrollHeight() {
    var h = parseInt(window.prompt('Please type new scroll height (number in pixels):', jQuery.Autocompleter.defaults.scrollHeight));
    if(h > 0) {
        $("#suggest1").setOptions({
			scrollHeight: h
		});
    }
}

function changeToMonths(){
	$("#suggest1")
		// clear existing data
		.val("")
		// change the local data to months
		.setOptions({data: months})
		// get the label tag
		.prev()
		// update the label tag
		.text("Month (local):");
}