<!--
function JackInTheBox(y)
 {
  document.getElementById("strSearch").value = y;
 }

 function showHint(str)
 {
 document.getElementById("hintbox").style.visibility = "visible";
 document.getElementById("hintBox").style.width = "300px";
 document.getElementById("tabBox").width = "300px";

 if (str.length==0)
   {
   document.getElementById("txtHint").innerHTML="";
   document.getElementById("hintbox").style.visibility = "hidden";
   return;
   }
 if (window.XMLHttpRequest)
   {// code for IE7+, Firefox, Chrome, Opera, Safari
   xmlhttp=new XMLHttpRequest();
   }
 else
   {// code for IE6, IE5
   xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
   }
 xmlhttp.onreadystatechange=function()
   {
   if (xmlhttp.readyState==4 && xmlhttp.status==200)
     {
     document.getElementById("txtHint").innerHTML=xmlhttp.responseText;
     }
   }
 xmlhttp.open("GET","http://www.bedcetera.com/scripts/getHint.asp?q="+str,true);
 xmlhttp.send();
 }
function getImage()
 {
 var id = document.getElementById("lstHint").value;

 document.getElementById("hintBox").style.width = "398px";
 document.getElementById("tabBox").width = "398px";

 if (id == "")
   {
   document.getElementById("txtHint").innerHTML="";
   document.getElementById("hintbox").style.visibility = "hidden";
   return;
   }

 if (window.XMLHttpRequest)
   {// code for IE7+, Firefox, Chrome, Opera, Safari
   xmlhttp=new XMLHttpRequest();
   }
 else
   {// code for IE6, IE5
   xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
   }
 xmlhttp.onreadystatechange=function()
   {
   if (xmlhttp.readyState==4 && xmlhttp.status==200)
     {
     document.getElementById("imageURL").innerHTML = xmlhttp.responseText;
     }
   }
 xmlhttp.open("GET","http://www.bedcetera.com/scripts/getImageUrl.asp?id="+id,true);
 xmlhttp.send();
 }

function submitFRM() {
 var x = document.getElementById("lstHint").value;
 document.frm.action = "prodView.asp?idproduct=" + x;
 document.frm.submit();
}

function keyPressed(){
getImage();
if (event.keyCode == "13")
   { submitFRM(); }
}

function reSize()
{
var height = document.getElementById("sPix").height;
var width = document.getElementById("sPix").width;

height = height - (height * .45);
width = width - (width * .45);

if (height > 100) {
    height = 100;
	}

document.getElementById("sPix").width = width;
document.getElementById("sPix").height = height;
}

function trim(value) {
  value = value.replace(/^\s+/,'');
  value = value.replace(/\s+$/,'');
  return value;
}
-->
