// JavaScript Document

function validateForm(){
	var nameText = document.getElementById('nameText');
	var emailText = document.getElementById('emailText');
	var telephoneText = document.getElementById('telephoneText');	
	var carText = document.getElementById('carText');	
	
	var name = document.getElementById('name');
	var email = document.getElementById('email');
	var phone = document.getElementById('telephone');
	var car = document.getElementById('car');
	
	var fillFields = document.getElementById('fillFields');
	
	var isOK = true;
	
	if(name.value.length == 0){
		nameText.style.fontWeight = "bold";
		nameText.style.color = "#ffff00";
		isOK = false;
	} else {
		nameText.style.fontWeight = "normal";
		nameText.style.color = "#ffffff";		
	}
	
//	if(company.value.length == 0){
//		companyText.style.fontWeight = "bold";
//		companyText.style.color = "#ff0000";		
//		isOK = false;		
//	} else {
//		companyText.style.fontWeight = "normal";
//		companyText.style.color = "#000";		
//	}
	
	if(email.value.length == 0){
		emailText.style.fontWeight = "bold";
		emailText.style.color = "#ffff00";		
		isOK = false;		
	} else {
		emailText.style.fontWeight = "normal";
		emailText.style.color = "#ffffff";		
	}
	
//	if(phone.value.length == 0){
//		phoneText.style.fontWeight = "bold";
//		phoneText.style.color = "#ff0000";		
//		isOK = false;		
//	} else {
//		phoneText.style.fontWeight = "normal";
//		phoneText.style.color = "#ffffff";		
//	}

	
	if(isOK == true){
		return true ;
	} else {
		fillFields.style.display = "block";		
		return false	;	
	}
	
}
