// JavaScript Document
function sendSelectedTo(filename,askForConfirm,type)
	{
	if(askForConfirm==null) askForConfirm=false;
	var ids=getSelectedCheckboxValue(document.forms['frmComments'].elements['checkBoxComments']).toString();
	if(ids=="")
		{
		alertBox('No comment was selected!');
		return;
		}
	if(askForConfirm)
		confirmBox("Are you sure?",function() { loadPage(filename+"?ids="+ids+"&type="+type); }, function() { });
	else
		loadPage(filename+"?ids="+ids+"&type="+type);
	}
	
function validateCommentsForm()
	{
	if(document.getElementById('comments').value=="")
	alertBox('Comments field is empty');
	else if(document.getElementById('verificationcode').value=="")
	alertBox('Enter the verification code');
	else
	return true;
	}
