// JS Criado por KZCG Desenvolvimento de soluções WEB - www.kzcg.com.br - 2008 
// Camilo Saraiva - 07/2008 
// camilo.saraiva@kzcg.com.br 
// versão 01.00 

function disp_alert()
{
alert("Seu e-mail foi cadastrado com sucesso, obrigado!")
}

function limparpadrao(campo) {
    if (campo.value == campo.defaultValue) {
        campo.value = "";
    }
}

function escreverpadrao(campo) {
    if (campo.value == "") {
        campo.value = campo.defaultValue;
    }
}

function GroupDelegate(id) {
	var objLink = document.getElementById(id);
	Lightbox.prototype.start(objLink);
}

function checkdata() {
	with(document.form1) {	
	        if (nome.value == "") {
			alert("Favor preencher o campo: nome.");
			nome.focus();
			return false; }
		 	if (email.value == "") {
			alert("Favor preencher o campo: e-mail.");
			email.focus();
			return false; }
			if (email.value.indexOf('@', 0) == -1) {
			alert("Favor preencher o campo: e-mail corretamente.");
			email.focus();
			return false;}
			if (mensagem.value == "") {
			alert("Você não digitou nenhuma mensagem.");
			mensagem.focus();
			return false; 
		}
                        submit();
	}
}	


