function hp_dn(a)
{
	return false
}

function hp_cm()
{
	return false
}

function hp_md(e)
{
	if(e.which==2||e.which==3){return false}
	if(e.which==1)
	{
		window.captureEvents(Event.MOUSEMOVE);
		window.onmousemove=hp_dn
	}
}

function hp_mu(e)
{
	if(e.which==1)
	{
		window.releaseEvents(Event.MOUSEMOVE);
		window.onmousemove=null
	}
}

if(document.all)
{
	document.oncontextmenu=hp_cm;
	document.onselectstart=hp_dn;
	document.ondragstart=hp_dn;
}
if(document.layers)
{
	window.captureEvents(Event.MOUSEUP|Event.MOUSEDOWN);
	window.onmousedown=hp_md;window.onmouseup=hp_mu
}
if(document.getElementById&&!document.all)
{
	document.oncontextmenu=hp_cm;
}

