function testIsBlank(strValue)
	{
		for(i = 0; i < strValue.length; i++)
	 		{
			var c = strValue.charAt(i);
			if ((c != ' ') && (c != '\n') && (c != '\t'))
				return false;
		}
		return true;
	}	
	
	function validateForm()
	{
		try
		{
			// Replicate the following for each field to validate and change the field name and message
			///////////////////////////////////////////////////////////////////////////////////////////
			if (testIsBlank(document.frmForm1.Name.value) == true)
			{
				alert("You must enter your Name");
				document.frmForm1.Name.focus();
				return false;
			}
			///////////////////////////////////////////////////////////////////////////////////////////
			
			// Replicate the following for each field to validate and change the field name and message
			///////////////////////////////////////////////////////////////////////////////////////////
			if (testIsBlank(document.frmForm1.Company.value) == true)
			{
				alert("You must enter your Company");
				document.frmForm1.Company.focus();
				return false;
			}
			///////////////////////////////////////////////////////////////////////////////////////////
			
			// Replicate the following for each field to validate and change the field name and message
			///////////////////////////////////////////////////////////////////////////////////////////
			if (testIsBlank(document.frmForm1.Email.value) == true)
			{
				alert("You must enter your Email Address");
				document.frmForm1.Email.focus();
				return false;
			}
			///////////////////////////////////////////////////////////////////////////////////////////
			
			
			
			
			
			
			document.frmForm1.submit();
		}
		catch(e)
		{
			alert("Sorry, an error occurred.\nPlease check that you have JavaScript enabled.")
		}
	}
	

