function toggleDiv(div, repDiv) 
{
	if(document.getElementById)
	{
		document.getElementById(div).style.display = 'none';
		document.getElementById(repDiv).style.display = 'block';
	}
	else
	{
		return false;
	}

}
var els_count = 0;
function showLight() 
{
	if(document.getElementById)
	{
		var show_light_1 = document.getElementById('lightbox1');
		/*var show_light_2 = document.getElementById('lightbox2');*/
		show_light_1.style.display = 'none';
		/*show_light_2.style.display = 'none';*/
		
		switch(els_count)
		{
			case 0:
			show_light_1.style.display = 'block';
			/*els_count++;*/
			break;
			case 1:
			show_light_2.style.display = 'block';
			els_count = 0;
			break;
		}
		$('#lightbox').css('opacity',0.75).fadeIn('fast');
		$('#lightbox_ext').fadeIn('fast');	
	}
}
function closeLight(status) 
{
	$('#lightbox').fadeOut('fast');
	$('#lightbox_ext').fadeOut('fast');
	switch(status)
	{
		case true:
		showLight();
		break;
		case false:
		window.location = window.location.protocol + "//" + window.location.host + "/"  + 'download-certificate.php';
		break;
		default:
		break;
	}
}