/*
var addListener = function (obj, evt, fn, scope) {
	var tfn = function (e) { fn.call(scope, e); };
	if(obj.addEventListener) {
	  obj.addEventListener(evt, tfn, true);
	} else {
	  obj.attachEvent("on"+evt, tfn);
	}
};
*/


// addListener(window, "load", function() { }, window);



function searchFocus(el) {
 el.value = '';
}

function searchBlur(el) {
 if (el.value == "") { el.value = "Search"; }
}

function redirectSearch() {
 searchtext = document.getElementById("searchtext");
 if (searchtext && searchtext.value != "") {
  window.location.href = '/searchresults.aspx?q=' + searchtext.value;
 }
 return false;

}

function redirectProduct(el) {
 if (el.value != "") {
  window.location.href = el.value;
 }
}