function checkFinVal(form)	// check if form is suitable for submission
	{
		
		var FieldsArray= new MakeArray (14);
		FieldsArray [0] = form.divinumb.value;
		FieldsArray [1] = form.priceearn1.value;
		FieldsArray [2] = form.priceearn2.value;
		FieldsArray [3] = form.pershareearn1.value;
		FieldsArray [4] = form.pershareearn2.value;
		FieldsArray [5] = form.mcap1.value;
		FieldsArray [6] = form.mcap2.value;	
		FieldsArray [7] = form.sonumb.value;
		FieldsArray [8] = form.float1.value;	
		FieldsArray [9] = form.float2.value;	
		FieldsArray [10] = form.MaxResult.value;
		FieldsArray [11] = form.revenue2.value;
		FieldsArray [12] = form.revenue1.value;
		FieldsArray [13] = form.change.value;
		
		
		
		
		
		
		var FieldsNamesArray = new MakeArray (14);
		FieldsNamesArray [0] = "Annual Dividend";
		FieldsNamesArray [1] = "Price Earnings >=";
		FieldsNamesArray [2] = "Price Earnings <=";
		FieldsNamesArray [3] = "Per Share Earnings >=";
		FieldsNamesArray [4] = "Per Share Earnings <=";
		FieldsNamesArray [5] = "Market Cap (Mill) >=";
		FieldsNamesArray [6] = "Market Cap (Mill) <=";	
		FieldsNamesArray [7] = "Shares Outstanding";	
		FieldsNamesArray [8] = "Float >=";	
		FieldsNamesArray [9] = "Float <=";	
		FieldsNamesArray [10] = "Maximum Results To Retrieve";	
	    FieldsNamesArray [11] = "Revenue for the trailing 12 months >=" 
		FieldsNamesArray [12] = "Revenue for the trailing 12 months <="
		FieldsNamesArray [13] = "Revenue % change, TTM" 
		for (var counter=0; counter < 14; counter++)
			{
	
				for (var counter2 = 0; counter2 < FieldsArray[counter].length; counter2++)
			 		{
			 
			 			if ( ( (FieldsArray[counter].substring(counter2,counter2+1) > "9") || (FieldsArray[counter].substring(counter2,counter2+1) < "0") ) && (FieldsArray[counter].substring(counter2,counter2+1) != "-") && (FieldsArray[counter].substring(counter2,counter2+1) != ".") )
			 		 		{
			   					alert("You need to put only numbers in the  " + FieldsNamesArray [counter] + " field.");
			  					return false;
			  				}
				
					}
			}
		if ( (FieldsArray[0] < 0 ) || (FieldsArray[0] > 10000) )
			{
				alert("The annual divident must be between 0 and 10000.");
				return false;
			}
		if ( (FieldsArray[1] != "" && FieldsArray[2] != "") && ( (FieldsArray[1]-0) > (FieldsArray[2]-0) ) )
			{
				alert("The Price Earnings from can't be bigger than the Price Earnings to.");
				return false;
			
			}
		if ( (FieldsArray[1] < 0 ) ||  (FieldsArray[2] < 0 ) || (FieldsArray[1] > 1000000 ) ||  (FieldsArray[2] > 1000000 ))
			{
				alert("The price earnings must be between 0 and 1000000.");
				return false;
			}

		if ( (FieldsArray[3] != "" && FieldsArray[4] != "") && ( (FieldsArray[3]-0) > (FieldsArray[4]-0) ) )
			{
				alert("The Per Share Earnings from can't be bigger than the Per Share Earnings to.");
				return false;
			}
		if ( (FieldsArray[3] < -10000) ||  (FieldsArray[4] < -10000 ) || (FieldsArray[3] > 100000 ) ||  (FieldsArray[4] > 100000 ))
			{
				alert("The per share earnings must be between -10000 and 100000.");
				return false;
			}
		if ( (FieldsArray[5] != "" && FieldsArray[6] != "") && ( (FieldsArray[5]-0) > (FieldsArray[6]-0) ) )
			{
				alert("The Market Cap from can't be bigger than the Market Cap to.");
				return false;
			}
		if ( (FieldsArray[5] < 0) ||  (FieldsArray[6] < 0 ) || (FieldsArray[5] > 100000 ) ||  (FieldsArray[6] > 100000 ))
			{
				alert("The market cap must be between 0 and 100000.");
				return false;
			}
		

		if ( (FieldsArray[8] != "" && FieldsArray[9] != "") && ( (FieldsArray[8]-0) > (FieldsArray[9]-0) ) )
			{
				alert("The Float from can't be bigger than the Float to.");
				return false;
			}
		
		if ( (FieldsArray[8] < 0) ||  (FieldsArray[9] < 0 ) || (FieldsArray[8] > 1000000 ) ||  (FieldsArray[9] > 1000000 ))
			{
				alert("The float must be between 0 and 1000000.");
				return false;
			}
		if ( (FieldsArray[7] < 0 ) || (FieldsArray[7] > 1000000) )
			{
				alert("The shares outstandingannual must be between 0 and 1000000.");
				return false;
			}
			
		if ( (FieldsArray[10] < 1) || (FieldsArray[10] > 999) )
			{
				alert("You must enter a Rows Returned value between 1-999 to continue.");
				return false;
			}
		if ( (FieldsArray[11] < 0) ||  (FieldsArray[12] < 0 ) || (FieldsArray[11] > 1000000 ) ||  (FieldsArray[12] > 1000000 ))
			{
				alert("The revenue must be between 0 and 1000000.");
				return false;
			}
		if ( (FieldsArray[13] < -10000) || (FieldsArray[13] > 10000) )
			{
				alert("You must enter a value between -10000 and 10000 to continue.");
				return false;
			}
		
		return true;
	}