		
		/*
			Used to dynamically change images on the site.
		*/
		function active_user_changeimage(image, url)
		{
			image.src = url;
		}
		
		
		/*
			Used to dynamically change images on the site.
		*/
		function active_user_changeimageid(image_id, url)
		{
			document.getElementById(image_id).src = url;
		}
		
		
		/*
			Used to dynamically show/hide the Pretentious info.
		*/
		function active_user_pretentious()
		{
			var ref = document.getElementById('bottom_pretentious_text');
			
			if (ref.innerHTML == '')
				ref.innerHTML='Site by';
			else
				ref.innerHTML='';
		}
		
		
		/*
			Used by auto-submitting select inputs to make sure that they don't submit when an "ignore" value is selected.
		*/
		function active_user_select_submit(ref_select, ref_form)
		{
			if (ref_select.value != 'ignore')
				ref_form.submit();
		}
		
		
		/*
			Used to highlight the centre search results.
		*/
		function active_user_centre_highlight_on(ref)
		{
			ref.style.backgroundColor = '';
		}
		
		
		/*
			Used to stop highlighting the centre search results.
		*/
		function active_user_centre_highlight_off(ref)
		{
			ref.style.backgroundColor = '';
		}
	
		/*
			Used to pop up the voucher for the site.
		*/
		function active_user_vouchershow(id)
		{
			window.open('voucher_'+id+'.html','','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=623,height=700');
		}
		
		function active_user_centre_vouchershow(id1,id2)
		{
		window.open('voucher_'+id1+'_'+id2+'.html','','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=623,height=700');
		}

				/*
		New Opendium Code for fogotten code popup
		*/
		function forgot_code() {
			window.open('datacapture_fc.php' , 'forgottoncode','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=300,height=300');
		}
		
		function muller_tc() {
			window.open('muller_tc.php' , 'mullertc','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=500,height=500');
		}
		
		function klix_tc() {
			window.open('klix_tc.php' , 'klixtc','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=500,height=500');
		}