window.addEventListener('load', copyBlock);

function copyBlock(){
	
	var queue = new Array();
	
	document.body.ontouchstart = touchstart;
	document.body.ontouchend = touchcancel;
	document.body.ontouchmove = touchcancel;
	
	function touchstart() {
		queue.push(setTimeout(block, 400));
	}
	function touchcancel() {
		while(q = queue.shift()) { clearTimeout(q) };
	}
	
	function block(obj){
		alert('このページはコピーできません');
		touchcancel();
	}
}

