window.onload = function()
{
	document.form1.nome.focus();

	document.form1.msg.onfocus = function()
	{
		obj_ativo(this,'a');
		if(this.value == 'Sua mensagem aqui...') this.value = '';
	}
}

function valida()
{
	var obj = document.form1;

	if(obj.nome.value == ''){
		alert('Digite seu nome.');
		obj.nome.focus();
		return false;
	}else if(obj.email.value == ''){
		alert('Digite seu e-mail.');
		obj.email.focus();
		return false;
	}else if(obj.assunto.value == ''){
		alert('Digite o assunto da mensagem.');
		obj.assunto.focus();
		return false;
	}else if(obj.msg.value == '' || obj.msg.value == 'Sua mensagem aqui...'){
		alert('Digite uma mensagem.');
		obj.msg.focus();
		return false;
	}else{
		return true;
	}
}