function sendContact(){	
	var fout = false;	
	var contactForm = document.getElementById('contactForm');
	
	var name = document.getElementById('name');
	var phone = document.getElementById('phone');	
	var email = document.getElementById('email');	
	var question = document.getElementById('question');
	
	if(!name.value){
		fout = true;
		name.className = 'textFieldRed';
	} else {
		name.className = 'textField';
	}

	if(!phone.value){
		fout = true;
		phone.className = 'textFieldRed';
	} else {
		phone.className = 'textField';
	}

	if(!email.value){
		fout = true;
		email.className = 'textFieldRed';
	} else {
		email.className = 'textField';
	}

	if(!question.value){
		fout = true;
		question.className = 'textFieldRed';
	} else {
		question.className = 'textField';
	}
		
	if(!fout){
		contactForm.submit();
	}
}

function generateEmail(user, domain){
	document.write('<a href="mailto:'+ user + '@' + domain +'">' + user + '@' + domain + '</a>');
}
