    function KeyDownHandler(btnName) {
		var btn;
		btn = document.getElementById(btnName);
        // process only the Enter key
        if (event.keyCode == 13) {
            // cancel the default submit
            event.returnValue=false;
            event.cancel = true;
            // submit the form by programmatically clicking the specified button
            btn.click();
        }
    }
	
function GoSearch(manufacturerCode, productCode, partNumb)
{
	var s;
	
	s = "?";
		
	if(manufacturerCode != "")
	{
		if(s != "?")
		{
			s += "&mc=" + manufacturerCode;
		}
		else
		{
			s += "mc=" + manufacturerCode;
		}		
	}
	if(productCode != "")
	{
		if(s != "?")
		{
			s += "&pc=" + productCode;
		}
		else
		{
			s += "pc=" + productCode;
		}		
	}
	if(partNumb != "")
	{
		if(s != "?")
		{
			s += "pn=" + partNumb;
		}
		else
		{
			s += "pn=" + partNumb;
		}		
	}
	window.location = "partSearch.asp" + s;
}

function GoSearchByControl(control, queryString)
{
	window.location = "partSearch.asp?" + queryString + "=" + control.value;
}

function GoSearchManf_Product(manufacturerCode, productCode)
{
	var s;	
	s = "?";
		
	if(manufacturerCode != "")
	{
		if(s != "?")
		{
			s += "&mc=" + manufacturerCode;
		}
		else
		{
			s += "mc=" + manufacturerCode;
		}		
	}
	if(productCode != "")
	{
		if(s != "?")
		{
			s += "&pc=" + productCode;
		}
		else
		{
			s += "pc=" + productCode;
		}		
	}
	
	window.location = "partSearch.asp" + s;
}

function GoSearchManufacturer(manufacturerCode)
{
	window.location = "partSearch.asp?mc=" + manufacturerCode;
}

function GoSearchProduct(productCode)
{
	window.location = "partSearch.asp?pc=" + productCode;
}

function ShowCalendar()
{
	OpenPop('Calendar/popup.asp','Calendar', 850, 850);
}

function OpenPop(url, name, w, h)
	{
  		// For window decoration space.
  		w += 32;
  		h += 96;
  		wleft = (screen.width - w) / 2;
  		wtop = (screen.height - h) / 2;
	  // IE5 and other old browsers might allow a window that is
	  // partially offscreen or wider than the screen. Fix that.
	  // (Newer browsers fix this for us, but let's be thorough.)
	  if (wleft < 0) {
	    w = screen.width;
	    wleft = 0;
	  }
	  if (wtop < 0) {
	    h = screen.height;
	    wtop = 0;
	  }
	  var win = window.open(url,
	    name,
	    'width=' + w + ', height=' + h + ', ' +
	    'left=' + wleft + ', top=' + wtop + ', ' +
	    'location=no, menubar=no, ' +
	    'status=no, toolbar=no, scrollbars=1, resizable=no');
	  // Just in case width and height are ignored
	  win.resizeTo(w, h);
	  // Just in case left and top are ignored
	  win.moveTo(wleft, wtop);
	  win.focus();
	}