function DoValidation ()
{
	// validation 
	var oForm = document.forms[0];
	
	if (oForm.office.value.length < 2 && oForm.agent.value.length < 2)
	{
		alert('Please enter an office or agent name');
		return false;
	}
	if (oForm.client_name.value.length <2 )
	{
		alert('Please enter your name');
		return false;
	}
	if (oForm.client_email.value.length < 2) 
	{
		alert('Please enter a valid e-mail address');
		return false;
	}
	
	var spval = 0;
	var pval = 0;
	var fval = 0;
	var wval = 0;
	var aval = 0;
	for( i = 0; i < oForm.qry_speed_and_efficiency.length; i++ )
	{
		if( oForm.qry_speed_and_efficiency[i].checked == true )
		spval = oForm.qry_speed_and_efficiency[i].value;
	}
	for( i = 0; i < oForm.qry_professionalism.length; i++ )
	{
		if( oForm.qry_professionalism[i].checked == true )
		pval = oForm.qry_professionalism[i].value;
	}
	for( i = 0; i < oForm.qry_follow_up_and_general_communication.length; i++ )
	{
		if( oForm.qry_follow_up_and_general_communication[i].checked == true )
		fval = oForm.qry_follow_up_and_general_communication[i].value;
	}
	for( i = 0; i < oForm.qry_willingness_to_assist.length; i++ )
	{
		if( oForm.qry_willingness_to_assist[i].checked == true )
		wval = oForm.qry_willingness_to_assist[i].value;
	}
	for( i = 0; i < oForm.qry_after_sale_service.length; i++ )
	{
		if( oForm.qry_after_sale_service[i].checked == true )
		aval = oForm.qry_after_sale_service[i].value;
	}
	if ((spval == 0)&&(pval == 0)&&(fval == 0)&&(wval == 0)&&(aval == 0))
	{
		alert('Please select at least one of the criteria under "Nature of Service"');
		return false;
	}
	
	if (oForm.general_comments.value.length<2)
	{
		alert('Please enter some comments before continuing');
		return false;
	}
		
	oForm.submit();
}
