// Replaces target="_blank" for strict doctype

function openWindow(url) {
	window.open(url, '_blank', 'status=yes,toolbar=yes,menubar=yes,location=yes,resizable=yes,scrollbars=1');
}

// Disable right click

function clickIE() {
	if (document.all) {
		return false;
	}
} 

function clickNS(e) {
	if (document.layers || (document.getElementById&&!document.all)) { 
		if (e.which==2 || e.which==3) {
			return false;
		}
	}
}

if (document.layers) {
	document.captureEvents(Event.mousedown);
	document.onmousedown = clickNS;
} 
else {
	document.onmouseup = clickNS;
	document.oncontextmenu = clickIE;
}

document.oncontextmenu = function() {
	return false;
}