function cp(event){
	if ( event ) {
		if ( document.all ) window.event.cancelBubble=true;
		else event.stopPropagation();
	}
}

function addScrollPosition(link){
	link.href +=
		(link.href.search(/\?/) > 0?'&':'?')
		+ 'pc3Scroll='
		+ document.body.scrollLeft
		+ 'x'
		+ document.body.scrollTop
	;
}

function applyScrollPosition(){
	var key;
	var match = document.location.search.match('pc3Scroll=([0-9]+)x([0-9]+)');
	if ( !match ) return;
	
	if ( document.all ) {
		document.body.scrollLeft = match[1];
		document.body.scrollTop = match[2];
	} else {
		window.scrollTo(match[1], match[2]);
	}
}