
// start of right click copyright alert...
msg = 'Copyright © 2009 : Community Savings and Credit Ltd : All Rights Reserved\r\rWARNING ! All content and images contained within this site are\rprotected by copyright laws and hidden encryption tracking.\rUnauthorized use of our material is strictly prohibited.';
ver  = parseInt(navigator.appVersion)
NS = navigator.appName=="Netscape"

function norightclick(e) {
	if (NS && e.which > 1){
		alert(msg)
		return false
	}
}

document.onmousedown = norightclick;
if (NS && ver<5) window.onmousedown = norightclick;
// end of right click copyright alert...
// ALSO NEEDS THE FOLLOWING CODE........
// start of no context right click...
document.oncontextmenu = function() {
		alert(msg)								// IE win...
		return false;
		}

if(document.layers) {
    window.captureEvents(Event.mousedown);		// NN 4,x... except IMG etc...
    window.onmousedown = function(e){			// use onMouseDown="return false" 
       	if(e.target==document){					// in <IMG> code...
		alert(msg)
		return false;
		}
    }
}
else {
    document.onmousedown = function() {			// IE mac...
	return false;
	}
}
// end of no context right click...

// start of new popup window...
function newWindow(url, width, height, left, top, status) {
	ver = parseInt(navigator.appVersion.substring(0,1));
	newWin = window.open(url,"newWindow",'width='+width+',height='+height+',left='+left+',top='+top+',status='+status+',resizable=0,scrollbars=no,menubar=no');
	if ((!((navigator.appName == "Netscape")&&(ver==2))) && (!((navigator.appName == "Microsoft Internet Explorer")&&(ver<4)))){
		setTimeout("if (newWin) newWin.focus();",1000);
	}
}
// end of new popup window...

