								function checkemail(){
										var testresults;			
										var str=document.callback_form.email.value;
										var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
										if (filter.test(str))
										testresults=true
										else				
										testresults=false				
										return (testresults)			
								}


                function ValidateForm(){
                	               	
                	var tbl=document.all["calltable"]
                	tbl.rows(12).cells(0).innerText=''
                	
                        //make sure that the first name is not blank.
                        if (document.callback_form.first_name.value.length == 0)  {
                                //it isn't so show the user an alert and go to that field
                                tbl.rows(1).cells(0).className='textmediumred'                                
                                tbl.rows(12).cells(0).innerText="Please enter your first name"
                                document.callback_form.first_name.focus();
                                //and return false so the form doesn't get submitted
                                return false;
                        }
                        else
                        {tbl.rows(1).cells(0).className='textmedium'}
                        
                        
                        //make sure that the last name is not blank.
                        if (document.callback_form.last_name.value.length == 0)  {
                                //it isn't so show the user an alert and go to that field
                                tbl.rows(2).cells(0).className='textmediumred'                                
                                tbl.rows(12).cells(0).innerText="Please enter your last name"
                                document.callback_form.last_name.focus();
                                //and return false so the form doesn't get submitted
                                return false;
                        }
                        else
                        {tbl.rows(2).cells(0).className='textmedium'}
                       

                        //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
                                tbl.rows(3).cells(0).className='textmediumred'
                                tbl.rows(12).cells(0).innerText="Please enter a valid email address"
                                document.callback_form.email.focus();
                                //and return false so the form doesn't get submitted
                                return false;
                        }
                        else
                        {tbl.rows(3).cells(0).className='textmedium'}                       
                                                                      
                        
                        //everything checks out, submit the form
                        return true;
                }
