function hintOnFocus (obj) {
        obj.style.backgroundImage = '';
}

function hintOnBlur (obj,image) {
   if (obj != null && obj.value=='') {
      obj.style.backgroundImage = 'url(' + image + ')';
      obj.style.backgroundRepeat = 'no-repeat';
      obj.style.backgroundPositon = 'left center';
     }
}

function doHintOnBlur(language){
   hintOnBlur(document.getElementById('searchTerms'),'/images/'+language+'/search.gif');
   hintOnBlur(document.getElementById('minPrice'),'/images/'+language+'/min.gif');
   hintOnBlur(document.getElementById('maxPrice'),'/images/'+language+'/max.gif');
}

function toggleImages(obj) {
   if (obj.checked){
      // remove hide thumb cookie
      setCookie('listing_no_thumbs', '');

   }
   else {
      // set hide thumb cookie
      setCookie('listing_no_thumbs', 'true');
   }
}