$(document).ready(function(){
	$(".iframe").colorbox({width:"450", height:"380", iframe:true});
});

function calgetopts()
{
	if (document.forms.calform.hdncalo == null)
		return "none";
	var c = "";
	for(var i=1; i < 100; i++)
	{
		if (document.forms.calform["calopt_" + i] == null)
			break;
		else
		{
		if (document.forms.calform["calopt_" + i].checked)
			c = c + document.forms.calform["calopt_" + i].value;
		}
	}
	return c;
}

function calnav(url)
{
	document.location.href = url + "&me=1&opt=" + calgetopts();
}
function calsetopts(url)
{
	for(var i=1; i < 100; i++)
	{
		if (document.forms.calform["calopt_" + i] == null)
			break;
		else
		{
			document.forms.calform["calopt_" + i].checked = true;
		}
	}
	document.location.href = url + "&me=1&opt=" + calgetopts();
}

function calopenpdf(url)
{
	window.open( url + "&opt=" + calgetopts(), "calendar", "" );
}
