function trim(value){
	// right trim
	while(value.charAt((value.length -1))==" "){
		value = value.substring(0,value.length-1);
	}
	// left trim
	while(value.charAt(0)==" "){
		value = value.replace(value.charAt(0),"");
	}
	return value;
}

function callSearch(frm) {
  	var itemNum = document.getElementById('qoItem').value;
	itemNum = trim(itemNum);
	if(itemNum.length>0&&itemNum!=""){
		frm.action='http://www.sears.com/shc/s/KeywordSearch?storeId=10153&catalogId=12605&keyword='+itemNum;
		frm.submit();
	} else {
		alert("Please enter an item number.");
		return false;
	}
}

$(document).ready(function(){
	$("#guideJump").change(function(){
		if(this.selectedIndex!=0){window.location = "http://www.sears.com/shc/s/productresearch_10153_12605_" + $(this).val();}
	});
});