function disableselect(e){
	return false;
}
function reEnable(){
	return true;
}

document.onselectstart = new Function ("return false");

if (window.sidebar){
	document.onmousedown = disableselect;
	document.onclick = reEnable;
}

function enableSelect(obj){
	document.onmousedown = true;
	document.onclick = false;
	obj.focus();
}

function disableSelect(){
	document.onselectstart = new Function ("return false");

	if (window.sidebar){
		document.onmousedown = disableselect;
		document.onclick = reEnable;
	}
}