function CheckMultiple10(frm, name) {
				for (var i=0; i < frm.length; i++)
				{
					fldObj = frm.elements[i];
					fldId = fldObj.id;
					if (fldId) {
						var fieldnamecheck=fldObj.id.indexOf(name);
						if (fieldnamecheck != -1) {
							if (fldObj.checked) {
								return true;
							}
						}
					}
				}
				return false;
			}
		function CheckForm10(f) {
			if (f.email.value == "") {
				alert("Please enter your email address.");
				f.email.focus();
				return false;
			}
		
						if (f.format.selectedIndex == -1) {
							alert("Please choose a format to receive your email campaigns in");
							f.format.focus();
							return false;
						}
					
				return true;
			};
$(function(){
	var url = document.URL.substring(document.URL.indexOf('/',document.URL.indexOf('//')+2)+1).split('/');

	
	if (url.length) {
		if (url[url.length-1]=='index.htm')	{
			//$('title').text('Royal Holloway University of London :: ' + url[url.length-2].toString());
			document.title = 'Royal Holloway University of London :: ' + url[url.length-2];
		} else {
			//$('title').text('Royal Holloway University of London :: ' + url[url.length-1].toString());
			document.title = 'Royal Holloway University of London :: ' + url[url.length-1];
		}
	}
	if (url.length > 2) {
		while (url.length) {
			var tmp = '/' + url.join('/');
			var x = $('a[href^='+tmp+']', '#left-menu');
			if (x.length) {
				x.parents('ul').addClass('opened').show();
				x.parents('ul').prev('a').each(function(){
					if (!$(this).parent().parent().is('#left-menu')) {
						$(this).css('background-color','#CCCCCC')
					}
				});
				x.css('background-color','#CCCCCC');
				break;
			}
			url.pop();
		}
	}
});