
function seturl(anchor, product, keyfrom)
{
    anchor.href = "http://" + product + ".youdao.com/";
    if (window.encodeURIComponent) {
        var query = document.sb.q.value;
        if (query != "") { 
            anchor.href = anchor.href + "search?q=" + encodeURIComponent(query) + "&keyfrom=" + keyfrom; 
        }
    }
    return 1;
}

function ctlog(a, q, pos, action,srst)
{
  var i = new Image();
  i.src = 'http://www.youdao.com/ctlog?q='+q+'&url='+encodeURIComponent(a.href)+'&pos='+pos+'&action='+action+'&srst='+srst;
  return true;
}

function srclog(a, q, pos)
{
  var i = new Image();
  i.src = 'http://www.youdao.com/smartresult/ctlog?q='+q+'&url='+encodeURIComponent(a.href)+'&pos='+pos+'&action=BUSINESS_CLICK';
  return true;
} 
