function form_validation(theForm){
	//alert(theForm);

	tf = 'true';
	message = 'Please fill the information below\n';
	var firstname = theForm.firstname.value;
	var lastname = theForm.lastname.value;
	var email = theForm.email.value;	
	var address = theForm.address.value; 
	var city = theForm.city.value;
	var state = theForm.state.value;
	var zip = theForm.zip.value;
	var country = theForm.country.value;
	var nationality = theForm.nationality.value;
	var phone = theForm.phone.value;
	var fax = theForm.fax.value;


	if(firstname == ""){
	    message += '-- First name\n';
		tf = 'false';
	}
	if(lastname == ""){
		message += '-- Last name\n';
		tf = 'false';
	}
	
	if(email == ""){
		message += '-- Email\n';
		tf = 'false';
	}
	else{
			if((email.indexOf('@') == -1)||(email.indexOf('.') == -1)){
				tf = 'false';
				message += '---> \"email\" field is not correct\n';
			} 
	}
	

	if(address == ""){
		message += '-- Address\n';
		tf = 'false';
	}
	if(city == ""){
		message += '-- City\n';
		tf = 'false';
	}
	if(state == ""){
		message += '-- State\n';
		tf = 'false';
	}
	if(zip == ""){
		message += '-- Zip\n';
		tf = 'false';
	}
	if(country == ""){
		message += '-- Country\n';
		tf = 'false';
	}
	if(nationality == ""){
		message += '-- Nationality\n';
		tf = 'false';
	}
	if(phone == ""){
		message += '-- Telephone\n';
		tf = 'false';
	}
	if(fax == ""){
		message += '-- Fax\n';
		tf = 'false';
	}
	

	if(tf == 'false'){
		alert(message);
		//theForm.firstname.value = maxofadults;
		//theForm.lastname.value = maxofchildren;
		if(firstname == ""){
			theForm.firstname.focus();
		}
		else if(lastname == ""){
			theForm.lastname.focus();
		}
		else if(email == ""){
			theForm.email.focus();
		}
		return false;
	}
	if(tf == 'true'){
		return true;
	}
	
}
