function deleteOnClick()
{
	if(confirm('\nThis action cannot be undone. Are you sure you want to delete this record?'))
	{
		document.maintfrm.MODE.value='D';
	    return(true);
	}
	else
	{
	    return(false);
	}
}


function CheckApproval()
{
	document.maintfrm.Approved.value = 'Y';
	document.maintfrm.submit();
}

function OnClickDelete(evntId,approval)
{
	if(confirm('\nThis action cannot be undone. Are you sure you want to delete this record?'))
	{
		surl = "event_maint.asp?MODE=D&Display=1&ID=" + evntId + "&Approval=" + approval ;;
		location.href = surl;
	}
	else
	{
		surl = "table_maint.asp?Table=events&Approval=" + approval + "&ErrTxt=Deletion Canceled by User." ;
		location.href = surl;
	}
}

