$(function() {
	
	
	$(".restrictLogin").each (function () { 
		
		var $currLink = $(this);
		
		$currLink.click ( function () {
			if ($(this).attr('id') == "takethetest") {
				alert (loginMessage);
				return false;
				
			}
			if ($(this).attr('id') == "openpopupcontent" || $(this).attr('target') == "_blank") {
				showOverlay (loginURL + "/returnurl:" + Base64.encode (location.href),708,252);
				return false;
			}
			else {
				showOverlay (loginURL + "/returnurl:" + Base64.encode ($(this).attr('href')),708,252);
				return false;
			}
		}
		 )
	
		
		});
});

