// JavaScript Document

function validateForm(){
	var nameText = document.getElementById('nameText');
	var companyText = document.getElementById('companyText');
	var emailText = document.getElementById('emailText');
	var phoneText = document.getElementById('phoneText');	
	
	var name = document.getElementById('contactName');
	var company = document.getElementById('companyName');
	var email = document.getElementById('email');
	var phone = document.getElementById('telephone');
	
	var fillFields = document.getElementById('fillFields');
	
	var isOK = true;
	
	if(name.value.length == 0){
		nameText.style.fontWeight = "bold";
		nameText.style.color = "#ff0000";
		isOK = false;
	} else {
		nameText.style.fontWeight = "normal";
		nameText.style.color = "#000";		
	}
	
//	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 = "#ff0000";		
		isOK = false;		
	} else {
		emailText.style.fontWeight = "normal";
		emailText.style.color = "#000";		
	}
	
	if(phone.value.length == 0){
		phoneText.style.fontWeight = "bold";
		phoneText.style.color = "#ff0000";		
		isOK = false;		
	} else {
		phoneText.style.fontWeight = "normal";
		phoneText.style.color = "#000";		
	}

	
	if(isOK == true){
		return true ;
	} else {
		fillFields.style.display = "block";		
		return false	;	
	}
	
}