function ToggleRecurrentEvent(chkBox)
{
	chkBox.form.AlertFrequency.disabled = !chkBox.checked;
	chkBox.form.AlertQualifier.disabled = !chkBox.checked;
}

function DeleteAlert(iAlertID, sName)
{
	var x = confirm("Are you sure you wish to delete '" + sName + "'");
	if(x == true)
	{
		location.href = "alertlist.php?userAction=deleteAlert&AlertID=" + iAlertID;
	}
}

function checkRejectInvites(myForm)
{
	var x = confirm("Are you sure you wish to reject these invitations?");
	if(x == true)
	{
		myForm.submit();
	}
}


function checkDeleteSchedule(iAlertScheduleID, sName)
{
	var x = confirm("Are you sure you wish to delete the schedule '" + sName + "'");
	if(x == true)
	{
		location.href = "reminderschedule.php?userAction=deleteAlertSchedule&AlertScheduleID=" + iAlertScheduleID;
	}
}