function formv(formcontact){

var badChar = " ";
var notAllspace = false;

	if (formcontact.FirstName.value == "")
	{
		alert ("Please enter your [first name] in this field");
		formcontact.FirstName.focus();
		return (false);
	}

	for(var i = 0; i <= formcontact.FirstName.value.length - 1; i++) {
	
	    	if (formcontact.FirstName.value.charAt(i) != badChar) {
	    	 	notAllspace =true;
			}
		
	}
	
	if (!notAllspace) 
	 {
	    	 	alert("Please enter a valid [first name]");
	    	 	formcontact.FirstName.focus();
	    		return false;	
	}


	if (formcontact.LastName.value == "")
	{
		alert ("Please enter your [surname] in this field");
		formcontact.LastName.focus();
		return (false);
	}
	notAllspace = false;
	for(var i = 0; i <= formcontact.LastName.value.length - 1; i++) {
	
	    	if (formcontact.LastName.value.charAt(i) != badChar) {
	    	 	notAllspace =true;
			}
		
	}
	
	if (!notAllspace) 
	 {
	    	 	alert("Please enter a valid [surname]");
	    	 	formcontact.LastName.focus();
	    		return false;	
	}


	
	if (formcontact.Email.value == "")
	{
		alert ("Please enter your [email address] in this field");
		formcontact.Email.focus();
		return (false);
	}

	if (formcontact.Email.value.length > 1) {
	    if ((formcontact.Email.value.indexOf("@") == -1) ||
		(formcontact.Email.value.indexOf(".") == -1))
		 {
		    alert("Please type a valid email address!");
		   formcontact.Email.value.focus();
	    return false;
		}
	}

	if (formcontact.Phone.value == "")
	{
		alert ("Please enter your [contact phone]  in this field");
		formcontact.Phone.focus();
		return (false);
	}

	notAllspace = false;
	for(var i = 0; i <= formcontact.Phone.value.length - 1; i++) {
	
	    	if (formcontact.Phone.value.charAt(i) != badChar) {
	    	 	notAllspace =true;
			}
		
	}
	
	if (!notAllspace) 
	 {
	    	 	alert("Please enter your [contact phone]");
	    	 	formcontact.Phone.focus();
	    		return false;	
	}

	if (formcontact.suburb.value == "")
	{
		alert ("Please enter your [suburb]");
		formcontact.suburb.focus();
		return (false);
	}


	if (formcontact.state.value == "")
	{
		alert ("Please enter your [state]");
		formcontact.state.focus();
		return (false);
	}


	
	
	
	if (formcontact.Comment.value == "")
	{
		alert ("Please enter your [Interested In]");
		formcontact.Comment.focus();
		return (false);
	}

	notAllspace = false;
	for(var i = 0; i <= formcontact.Comment.value.length - 1; i++) {
	
	    	if (formcontact.Comment.value.charAt(i) != badChar) {
	    	 	notAllspace =true;
			}
		
	}
	
	if (!notAllspace) 
	 {
	    	 	alert("Please enter your [Interested In]");
	    	 	formcontact.Comment.focus();
	    		return false;	
	}

	
	if (formcontact.Heard.value == "")
	{
		alert ("How did you hear about Allstar?");
		formcontact.Heard.focus();
		return (false);
	}




	if (formcontact.strCAPTCHA.value == "")
	{
		alert ("Please enter the [verification code]");
		formcontact.strCAPTCHA.focus();
		return (false);
	}


	formcontact.submit();

}


