<!--

function set_focus_and_select( this_form , this_field )
		{
		this_form.elements[ this_field ].focus();
//		this_form.elements[ this_field ].select();		
		}


function submit_form( this_form ) 
		{
		
		// FIRST CHECK FOR BLANK FIELDS
		
		// Make sure the name field is not blank
		if(this_form.Name.value == "") 
				{
				alert("Please include your name.");				
				set_focus_and_select( this_form , 'Name' );
				return false;
				}
				
		// Make sure the name field is not blank
 		if( this_form.Email.value.indexOf("@") == "-1" || this_form.Email.value == "") 
				{
				alert("Please include a proper email address.");				
				set_focus_and_select( this_form , 'Email' );
				return false;
				}
				
		// Make sure the name field is not blank
		if(this_form.phone.value == "") 
				{
				alert("Please include a telephone number in the format xxx-xxx-xxxx..");				
				set_focus_and_select( this_form , 'phone' );
				return false;
				}											
			
		/*	
		Company field can be blank
		
		// Make sure the Company field is not blank
		if(this_form.company.value == "") 
				{
				alert("You left the Company field blank.");
				set_focus_and_select( this_form , 'company' );
				return false;
				}
				
		// Make sure the Street field is not blank
		if(this_this_form.street.value == "") 
				{		
				alert("You left the street field blank.");
				set_focus_and_select( this_form , 'street' );
				return false;
				}
				
		// Make sure the City field is not blank
		if(this_form.city.value == "") 
				{
				alert("You left the City field blank.");
				set_focus_and_select( this_form , 'city' );
				return false;
				}
				
		// Make sure the State field is not blank
		if(this_form.state.value == "") 
				{
				alert("You left the State field blank.");
				set_focus_and_select( this_form , 'state' );
				return false;
				}
		
		// Make sure the Zipcode field is not blank
		if(this_form.zip.value == "") 
				{
				alert("You left the Zip field blank.");
				set_focus_and_select( this_form , 'zip' );
				return false;
				}
		*/
		
		}
//-->

