
//functions for formvalidation
function validateForm(){
	var f = document.form_contact
		
	if(f.email.value==""){
		alert("Please, fill in your email.") //translate only between quotes
		f.email.focus()
		return false
	}
	
	if(f.name.value==""){
		alert("Please, fill in your name.") //translate only between quotes
		f.name.focus()
		return false
	}
	
	if(f.subject.value==""){
		alert("Please, fill in the subject.") //translate only between quotes
		f.subject.focus()
		return false
	}
	
	if(f.message.value==""){
		alert("Please, fill in the message.") //translate only between quotes
		f.message.focus()
		return false
	}
			
	return true
}

function SubmitForm() {
	if(validateForm()){
		document.form_contact.submit()
	}
}
