<!--

//*****************************************
// Blending Image Slide Show Script-
// © Dynamic Drive (www.dynamicdrive.com)
// For full source code, visit http://www.dynamicdrive.com/
//*****************************************

//specify interval between slide (in mili seconds)
var slidespeed=3000

//specify images
var slideimages=new Array("img/home/fotos/01.jpg","img/home/fotos/02.jpg","img/home/fotos/03.jpg","img/home/fotos/04.jpg","img/home/fotos/05.jpg","img/home/fotos/06.jpg","img/home/fotos/07.jpg","img/home/fotos/08.jpg")

//specify corresponding links
var slidelinks=new Array("#","#","#","http://www.geocities.com")

var newwindow=1 //open links in new window? 1=yes, 0=no

var imageholder=new Array()
var ie=document.all
for (i=0;i<slideimages.length;i++){
imageholder[i]=new Image()
imageholder[i].src=slideimages[i]
}

function gotoshow(){
if (newwindow)
window.open(slidelinks[whichlink])
else
window.location=slidelinks[whichlink]
}

//-->




/*Função para validar campos antes do envio*/
function Verifica()
{
	if (document.forms[0].elements['nome'].value == '')
	{
		alert('Nome é um campo obrigatório');
		document.forms[0].elements['nome'].focus();
		return false;
	}


	if (document.forms[0].elements['email'].value == '')
	{
		alert('E-mail é um campo obrigatório');
		document.forms[0].elements['email'].focus();
		return false;
	}
	else if (echeck(document.forms[0].elements['email'].value)==false)
	{
	 	document.forms[0].elements['email'].focus();
		return false;
	}


	if (document.forms[0].elements['texto'].value == '')
	{
		alert('Mensagem é um campo obrigatório');
		document.forms[0].elements['texto'].focus();
		return false;
	}

alert('Mensagem enviada com sucesso, aguarde nosso contato');
//return false;

}
