								function checkemail(){
										var testresults;			
										var str=document.callback_form.email.value;
										var filter=/^(['_a-z0-9-+]+)(\.['_a-z0-9-]+)*@([a-z0-9-]+)(\.[a-z0-9-]+)*(\.[a-z]{2,5})$/i
										if (filter.test(str))
										testresults=true
										else				
										testresults=false				
										return (testresults)			
								}


                function ValidateForm(){
                
                				//make sure that the first name is not blank.
                        if (document.callback_form.first_name.value.length < 2)  {
                                //it isn't so show the user an alert and go to that field
                                alert("Please enter your first name");
                                document.callback_form.first_name.focus();
                                //and return false so the form doesn't get submitted
                                return false;
                        }
                        
                        //make sure that the last name is not blank.
                        if (document.callback_form.last_name.value.length < 2)  {
                                //it isn't so show the user an alert and go to that field
                                alert("Please enter your last name");
                                document.callback_form.last_name.focus();
                                //and return false so the form doesn't get submitted
                                return false;
                        }

                        //make sure that the email is not blank.
                        if (checkemail()==false)  {
                                //it isn't so show the user an alert and go to that field
                         				alert("Please enter a valid email address");
                                document.callback_form.email.focus();
                                //and return false so the form doesn't get submitted
                                return false;
                        }
                        
                        //make sure that phone is not blank.
                        if (document.callback_form.phone.value.length < 6)  {
                                //it isn't so show the user an alert and go to that field
                                alert("Please enter your telephone number");
                                document.callback_form.phone.focus();
                                //and return false so the form doesn't get submitted
                                return false;
                        }
                        
                        //everything checks out, submit the form
                        return true;
                }
