function ValidateForm(theForm){
 
	allFields = theForm.fullname.value + theForm.phone.value + theForm.email.value + theForm.enquiry.value;
	allFields = allFields.toLowerCase();
	linkFinds = 0;
 
	htmlFinds = allFields.indexOf('bcc%3a') + allFields.indexOf('multipart%2falternative') + allFields.indexOf('content-transfer-encoding') + allFields.indexOf('a href') + allFields.indexOf('url=')
	
	if (allFields.indexOf('http') != -1){
		linkFinds = 1	
		}
	
	if (allFields.indexOf('http',allFields.indexOf('http')+1) != -1){
		linkFinds = 2	
		}
	
	if (allFields.indexOf('http',allFields.indexOf('http',allFields.indexOf('http')+1)+1) != -1){
		linkFinds = 3	
		}		
	
	if (htmlFinds != -5){
		theForm.fullname.focus;
		alert('Due to protective measures against spam, we are unable to submit the content that you provided. Please try again after removing any HTML or other code that you have entered.');
		return false;
		};
		
	if (linkFinds == 3){
		theForm.fullname.focus;
		alert('Due to protective measures against spam, we are unable to submit the content that you provided. You may only submit 1 link into this form. Please try again after removing all but one of the links that you entered.');
		return false;
		};
if (theForm.fullname.value == "" | theForm.fullname.value == " " | theForm.fullname.value == null){
		theForm.fullname.focus;
		alert('Please enter your name into the box provided.');
		return false;
		};
	
	if (theForm.phone.value == "" | theForm.phone.value == " " | theForm.phone.value == null){
			alert('Please enter your phone number into the box provided.');
			return false;
		};	
	
	if (theForm.email.value == "" | theForm.email.value == " " | theForm.email.value == null){
			alert('Please enter your email address into the box provided.');
			return false;
		};		
		
		return true;
	
	};
	

 
function ValidateForm2(theForm){
 
	allFields = theForm.firstname.value + theForm.phone.value + theForm.email.value + theForm.enquiry.value;
	allFields = allFields.toLowerCase();
	linkFinds = 0;
 
	htmlFinds = allFields.indexOf('bcc%3a') + allFields.indexOf('multipart%2falternative') + allFields.indexOf('content-transfer-encoding') + allFields.indexOf('a href') + allFields.indexOf('url=')
	
	if (allFields.indexOf('http') != -1){
		linkFinds = 1	
		}
	
	if (allFields.indexOf('http',allFields.indexOf('http')+1) != -1){
		linkFinds = 2	
		}
	
	if (allFields.indexOf('http',allFields.indexOf('http',allFields.indexOf('http')+1)+1) != -1){
		linkFinds = 3	
		}		
	
	if (htmlFinds != -5){
		theForm.firstname.focus;
		alert('Due to protective measures against spam, we are unable to submit the content that you provided. Please try again after removing any HTML or other code that you have entered.');
		return false;
		};
		
	if (linkFinds == 3){
		theForm.firstname.focus;
		alert('Due to protective measures against spam, we are unable to submit the content that you provided. You may only submit 1 link into this form. Please try again after removing all but one of the links that you entered.');
		return false;
		};
if (theForm.firstname.value == "" | theForm.firstname.value == " " | theForm.firstnamev.value == null){
		theForm.firstname.focus;
		alert('Please enter your name into the box provided.');
		return false;
		};
	
	if (theForm.phone.value == "" | theForm.phone.value == " " | theForm.phone.value == null){
			alert('Please enter your phone number into the box provided.');
			return false;
		};	
	
	if (theForm.email.value == "" | theForm.email.value == " " | theForm.email.value == null){
			alert('Please enter your email address into the box provided.');
			return false;
		};		
		
		return true;
	
	};
