function openClose(id)
{
	if(document.getElementById(id).style.display == "block"){
                    document.getElementById(id).style.display = "none";
	} else {
		    document.getElementById(id).style.display = "block";
	}
}

function show_hits(e,v){
  if(v.title){
    var t=document.createElement("div");
    t.className="hits";
    t.innerHTML=v.title;v.title="";
    v.move=function(e){
      e=e||event;
      t.style.left=e.clientX+20+"px";
      t.style.top=e.clientY+20+"px";
    }
    v.move(e);
    document.body.appendChild(t);
    v.onmousemove=function(e){v.move(e)}
    v.onmouseout=function(e){
      v.title=t.innerHTML;
      document.body.removeChild(t);
    }
  }
}

function preview ()
{
   document.site.action = "preview.php";
   document.site.target = "_blank";
    return 1;
}

function adds()
{
   document.site.action = "#";
   document.site.target = "_self";
   document.site.getElementById('html') = "asdasd2";
   document.site.submit();
}
