function showReportForm(id, idfor)
{
	var reportURL	= '#TB_inline?height=300&width=530&inlineId=reportDIV&modal=true';
	$('#report_for').val(idfor);
	$('#report_for_id').val(id);
	tb_show('', reportURL, false);
}

function checkComment()
{
	if($.trim($('#report_comment').val()) == '')
	{
		$('#report_comment').val('');
		$('#reportError').show();
		return false;
	}
	else
		return true;
}

function checkReportDel(reportId,errorString)
{
	var v = new Array();
	
	$("input[@type=checkbox]").filter(":checked").each(function(i){
		v.push(this.value);
	});
	if(v.length > 0 )
	{
		$('#deleteReportDiv').show();
		for(i=1;i<=reportId;i++)
			$('#singleReportDelDiv'+i).hide();
	}
	else
		alert(errorString);
}
function singleReportDeleteShow(reportId,reportFor)
{	
	$('#singleReportDelDiv'+reportId).show();
	$('#singleReportFor').val(reportFor);
	$('#singleReportId').val(reportId);	
}