function marcarOK(id){
	var cont = document.getElementById(id);
	cont.innerHTML="ok!";
	cont.className="ok";
	}

function marcarError(id,msg){
	var cont = document.getElementById(id);
	cont.innerHTML=msg;
	cont.className="error";
	}
	
function validar(){
	var nombre = document.getElementById('nombre');
	var telefono = document.getElementById('telefono');
	var email = document.getElementById('email');
	var provincia = document.getElementById('provincia');
	var poseesitiosweb = document.getElementById('poseesitiosweb');
	var comentario = document.getElementById('comentario');
	var error = false;
	

	//nombre
	if(nombre.value==""){
		marcarError('msg_nombre','Ingrese su nombre');
		error = true;
	}else{
		marcarOK('msg_nombre');
	}
		//telefono
	if(telefono.value==""){
		marcarError('msg_telefono','Ingrese su Telefono');
		error = true;
	}else{
		marcarOK('msg_telefono');
	}

	
	//email
	if(email.value==""){
		marcarError('msg_email','Ingrese su E-Mail');
		error = true;
	}
	else{
		marcarOK('msg_email');
	}
		//provincia
	if(provincia.value==""){
		marcarError('msg_provincia','Ingrese su Provincia');
		error = true;
	}else{
		marcarOK('msg_provincia');
	}

		//comentario
	if(comentario.value==""){
		marcarError('msg_comentario','Ingrese su Comentario');
		error = true;
	}else{
		marcarOK('msg_comentario');
	}

	// ESTO SIEMPRE VA AL FINAL
	if(error==true){
		return false;
	} else{
		return true;
	}

}
