function validateForm(objForm)
{
	var place_amount = document.booking_form.places_book.options[document.booking_form.places_book.selectedIndex].value;
	//alert(place_amount);
	var returnStatus = 1;
	var i=1;
	var check_name = true;
	var check_email = true;
	for(i=1;i<=place_amount;i++){
		var check = eval("objForm.name"+ i +".value");
		if (check == '') {
			document.getElementById("name"+ i +"_error").style.display = '';
			check_name = false;	
		}else{
			document.getElementById("name"+ i +"_error").style.display = 'none';
		}
	}
	
	var i2=1;
	for(i2=1;i2<=place_amount;i2++){
		var check2 = eval("objForm.email"+ i2 +".value");
		if (check2 == '') {
			document.getElementById("email"+ i2 +"_error").style.display = '';
			check_email = false;	
		}else{
			document.getElementById("email"+ i2 +"_error").style.display = 'none';
		}
	}
	
	if (objForm.places_book.selectedIndex == 0) {
		document.getElementById('amount_error').style.display = '';
		returnStatus3 = 0;
	}else{
		document.getElementById('amount_error').style.display = 'none';
		returnStatus3 = 1;
	}
	if (objForm.school.selectedIndex == 0) {
		document.getElementById('school_error').style.display = '';
		returnStatus4 = 0;
	}else{
		document.getElementById('school_error').style.display = 'none';
		returnStatus4 = 1;
	}

	
//alert(returnStatus1);
//alert(returnStatus2);
//alert(returnStatus3);
//alert(returnStatus4);

	if (returnStatus3 == 0 || returnStatus4 == 0 || check_name == false || check_email == false) {
		return false;
	} else {
		document.booking_form.submit();
	}
}
