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.FirstName.value) == true)			{				alert("You must enter your First Name");				document.frmForm1.FirstName.focus();				return false;			}			///////////////////////////////////////////////////////////////////////////////////////////						// Replicate the following for each field to validate and change the field name and message			///////////////////////////////////////////////////////////////////////////////////////////			if (testIsBlank(document.frmForm1.LastName.value) == true)			{				alert("You must enter your Last Name");				document.frmForm1.LastName.focus();				return false;			}			///////////////////////////////////////////////////////////////////////////////////////////						// Replicate the following for each field to validate and change the field name and message			///////////////////////////////////////////////////////////////////////////////////////////			if (testIsBlank(document.frmForm1.JobTitle.value) == true)			{				alert("You must enter your Job Title");				document.frmForm1.JobTitle.focus();				return false;			}			///////////////////////////////////////////////////////////////////////////////////////////						// Replicate the following for each field to validate and change the field name and message			///////////////////////////////////////////////////////////////////////////////////////////			if (testIsBlank(document.frmForm1.OrganisationName.value) == true)			{				alert("You must enter your Organisation Name");				document.frmForm1.OrganisationName.focus();				return false;			}			///////////////////////////////////////////////////////////////////////////////////////////						// Replicate the following for each field to validate and change the field name and message			///////////////////////////////////////////////////////////////////////////////////////////			if (testIsBlank(document.frmForm1.DaytimeTelephone.value) == true)			{				alert("You must enter your Daytime Telephone");				document.frmForm1.DaytimeTelephone.focus();				return false;			}			///////////////////////////////////////////////////////////////////////////////////////////						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.")		}	}	