
	function show_cal(op, month_stamp)
	{
			if (op == 'prev')
			{
					jQuery('#cal-section').html('<div style="height: 190px"><img src="fileadmin/templates/images/loading.png.gif" /></div>');
					/*jQuery('#most_recent_events').html('<div style="height: 190px"><img src="fileadmin/templates/images/loading.png.gif" /></div>');		*/
					jQuery.ajax({
						  url: 'index.php?eID=show_calendar&op=prev&month_stamp='+month_stamp+'&rand=' + Math.floor(Math.random() * 1000000),
						  success: function(data) {
							jQuery('#cal-section').html(data);
						  }
					});	
					
					jQuery.ajax({
						  url: 'index.php?eID=show_recent_events&op=prev&month_stamp='+month_stamp+'&rand=' + Math.floor(Math.random() * 1000000),
						  success: function(data) {
							jQuery('#most_recent_events').html(data);
						  }
					});
					
					
			}
			else if (op == 'next')
			{
					jQuery('#cal-section').html('<div style="height: 190px"><img src="fileadmin/templates/images/loading.png.gif" /></div>');
					/*jQuery('#most_recent_events').html('<div style="height: 190px"><img src="fileadmin/templates/images/loading.png.gif" /></div>');*/

					jQuery.ajax({
						  url: 'index.php?eID=show_calendar&op=next&month_stamp='+month_stamp+'&rand=' + Math.floor(Math.random() * 1000000),
						  success: function(data) {
							jQuery('#cal-section').html(data);
						  }
					});	
					
					jQuery.ajax({
						  url: 'index.php?eID=show_recent_events&op=next&month_stamp='+month_stamp+'&rand=' + Math.floor(Math.random() * 1000000),
						  success: function(data) {
							jQuery('#most_recent_events').html(data);
						  }
					});	
			}
	}
	


	function populate_portal_link()
	{
		plink = $('#portal-link').attr('href');
		
		$('#portal-poplink').attr('href', plink);
	}
