document.getElementById('tool').removeNode(true);
function CopyInBoard(hahaUrl) 
{ 			
var videourl=document.location.href;
window.clipboardData.setData('text',hahaUrl+videourl);
alert('网址复制成功啦!\n\n快发给好友吧!~');			
}
function Copyvalue()
{
CopyInBoard(document.getElementById("seeurl").value);
}
 
var   NS4   =   (document.layers);   
var   IE4   =   (document.all);   
var   win   =   window;   
var   n   =   0;   
    
function   findInPage(str)   {   
    var   txt,   i,   found;   
    if   (str   ==   "")   
      {   
    alert("您没有输入姓！");   
    return   false;   
    }   
    
  str=lTrim(rTrim(str));     
    
    if   (NS4)   {   
    if   (!win.find(str))   
    while(win.find(str,   false,   true))   
    n++;   
    else   
    n++;   
    if   (n   ==   0)   
    alert("没有找到您的姓氏，我们正在努力完善！");   
    }   
    
    if   (IE4)   {   
    txt   =   win.document.body.createTextRange();   
    for   (i   =   0;   i   <=   n   &&   (found   =   txt.findText(str))   !=   false;   i++)   {   
    txt.moveStart("character",   1);   
    }   
    
    if   (found)   {   
    txt.moveStart("character",   -1);   
    txt.findText(str);   
    txt.scrollIntoView();   
    txt.select();   
    txt.moveEnd("textedit");   
    n++;   
    }   
    else   {   
    if   (n   >0)   {   
    n   =   0;   
    findInPage(str);   
    }     
    else   
        alert("没有找到您的姓氏，我们正在努力完善！");   
  }   
  }   
  return   false;   
}   
    
function   lTrim(str)     
  {     
  if   (str.charAt(0)   ==   "   ")     
  {     
  str   =   str.slice(1);   
  str   =   lTrim(str);     
  }     
  return   str;     
  }     
      
  function   rTrim(str)     
  {     
  var   iLength;     
    
  iLength   =   str.length;     
  if   (str.charAt(iLength   -   1)   ==   "   ")     
  {     
  str   =   str.slice(0,   iLength   -   1);   
  str   =   rTrim(str);       
  }     
  return   str;     
}     
    
