// JavaScript Document
// Opens popup from programmes and programme further info page which displays the location of the course in a googlemap
function googlemapsPopUp(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=430,height=440');");
}



// Disables right clicking sitewide and displays an error message if right click is used
var message="Sorry we do not allow right clicking, this is to protect our content.";

///////////////////////////////////
function clickIE4(){
	if (event.button==2){
		alert(message);
		return false;
	}
}



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



if (document.layers){
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
	document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")


function popitup(url) {
    newwindow=window.open(url,'htmlname','width=404,height=316,resizable=1');
}
