function clrSearch(txtBox) {
	txtBox.value = "";
}
function fixSearch(txtBox) {
	if (txtBox.value == "")
	{
		txtBox.value = "Search by keyword or item #";
	}
}
function fixNews(txtBox) {
	if (txtBox.value == "")
	{
		txtBox.value = "Enter address here";
	}
}
function chkSearch(theForm) {
  if (theForm.swd.value == "") 
  {
    alert("Enter a product name, item number, or any keyword; then click go.");
    theForm.swd.focus();
    return (false);
  }
  if (theForm.swd.value == "Search by keyword or item #") 
  {
    alert("Enter a product name, item number, or any keyword; then click go.");
    theForm.swd.value = ""
	  theForm.swd.focus();
    return (false);
  }
}
function chkNews(theForm) {
  if (theForm.e1.value == "") 
  {
    alert("Enter an email address; then click submit.");
    theForm.e1.focus();
    return (false);
  }
  if (theForm.e1.value == "Enter address here") 
  {
    alert("Enter an email address; then click submit.");
    theForm.e1.value = ""
	  theForm.e1.focus();
    return (false);
  }
}
function showQo() {
	if ( document.getElementById('quick-order').style.display == 'block' ) {
		document.getElementById('quick-order').style.display = 'none';
	}
	else {
		document.getElementById('quick-order').style.display = 'block';
	}
}
function checkShipQo() {
	if (document.frmQuickOrder.shpt.value == "xx") {
		document.getElementById('option-ship-qo').style.display = 'block';
	}
	else {
		document.getElementById('option-ship-qo').style.display = 'none';
	}
	if (document.frmQuickOrder.shpt.value == "xx") {
		document.getElementById('option-ship-qo').style.display = 'block';
	}
	else {
		document.getElementById('option-ship-qo').style.display = 'none';
	}
}
function autoTab(limit,currentObject,nextObject)
{
  if (currentObject.value.length == limit)
  {
    nextObject.focus();
    nextObject.select();
  }
}

