function submitCompareSharesForm() 
{
   
	if (!isFieldValidAndFocus(document.CompareSharesForm.AverageValue1, 'Numeric', false, 'Average value of each trade')) 
	    {
		    return false;
	    }	
    	
	if (!isFieldValidAndFocus(document.CompareSharesForm.AverageTrade1, 'Numeric', false, 'Average trades made per month'))
	    {
		    return false;
	    }

    if  (document.CompareSharesForm.AverageValue1.value == '0')
	    {
	        alert('Average value of each trade cannot be zero');
		    return false;
		}
	
	if  (document.CompareSharesForm.AverageTrade1.value == '0')
	    {
	        alert('Average trades made per month cannot be zero');
		    return false;
		}
    return true;
}
