<!--
function vaicarrinho(produto_id,preco,desconto){

	var cor = document.f.produto_cor.value;
	
	var tam = document.f.produto_tamanho.value;
	
	if(cor == "" || tam == ""){
		alert("É necessário escolher cor ou tamanho");
		document.location.href='produtos.asp';
	}else{
		document.location.href='loja_carrinho.asp?tam=' + tam + '&cor=' + cor + '&id=' + produto_id + '&preco=' +  preco + '&desconto=' + desconto +'&qtde=1';
	}
}

function Checar(){
	var Cadastrados_Nome = document.form1.Cadastrados_Nome.value;	
	var Cadastrados_Email = document.form1.Cadastrados_Email.value;
	var Cadastrados_DDD = document.form1.Cadastrados_DDD.value;
	var Cadastrados_Fone = document.form1.Cadastrados_Fone.value;

			
	if(Cadastrados_Nome == ""){
		window.alert("É obrigatório preencher o campo NOME!"); 
		document.form1.Cadastrados_Nome.focus();
		return false;
	}
		
	if(Cadastrados_Email.indexOf("@")== -1){
		window.alert("Este endereço de E-MAIL não é válido!");
		document.form1.Cadastrados_Email.focus();
		return false;
	}
	
	if(Cadastrados_DDD == "" || isNaN(Cadastrados_DDD) || Cadastrados_DDD.length < 2){
		window.alert("É obrigatório preencher o campo DDD usando dois algarismos (nn)!"); 
		document.form1.Cadastrados_DDD.focus();
		return false;
	}
	
	if(Cadastrados_Fone == "" || isNaN(Cadastrados_Fone)){
		window.alert("É obrigatório preencher o campo FONE usando um número válido!"); 
		document.form1.Cadastrados_Fone.focus();
		return false;
	}	
	
return true;

}
	


function validacampo(thisForm) 	{
	if (thisForm.titulo.value == "") {
		alert("preencha o campo TITULO!!");
		thisForm.titulo.focus();
		return false;
	}
	if (thisForm.mensagem.value == "") {
		alert("preencha o campo MENSAGEM!!");
		thisForm.mensagem.focus();
		return false;
	}
	if (thisForm.nome.value == "") {
		alert("preencha o campo NOME!!");
		thisForm.nome.focus();
		return false;
	}
	if (thisForm.email.value == "") {
		alert("preencha o campo EMAIL!!");
		thisForm.email.focus();
		return false;
	}
}

//****************** CONTA CARACTERES *************************
function limita()
{
var tamanho = document.form.mensagem.value.length;
var tex=document.form.mensagem.value;
if (tamanho>=254) {
 document.form.mensagem.value=tex.substring(0,254);
}
return true;
}
//---------------
function countChars() {

        document.form.lentxt.value =  255-document.form.mensagem.value.length;
}
//---------------
        if( (navigator.appName == "Netscape")
                && (parseInt(navigator.appVersion) >= 4) ) {
                document.captureEvents( Event.KEYUP )
                document.onkeyup = countChars;
        }

        if( (navigator.appName == "Microsoft Internet Explorer")
                && (parseInt(navigator.appVersion) >= 4) ) {
                document.onkeyup = countChars;
        }

//********************************************************************

function ShowSubMenuDiveClub() 
	{
	document.getElementById('SubMenuDiveClub').style.left=String(document.getElementById('MenuDiveClub').offsetLeft+1);
	document.getElementById('SubMenuDiveClub').style.top=String(document.getElementById('MenuDiveClub').offsetTop+20);
	document.getElementById('SubMenuDiveClub').style.visibility="visible";
	}
function HideSubMenuDiveClub() 
	{
	document.getElementById('SubMenuDiveClub').style.visibility="hidden";
	}
function ShowSubMenuDiveServicos() 
	{
	document.getElementById('SubMenuDiveServicos').style.left=String(document.getElementById('MenuDiveServicos').offsetLeft+1);
	document.getElementById('SubMenuDiveServicos').style.top=String(document.getElementById('MenuDiveServicos').offsetTop+20);
	document.getElementById('SubMenuDiveServicos').style.visibility="visible";
	}
function HideSubMenuDiveServicos() 
	{
	document.getElementById('SubMenuDiveServicos').style.visibility="hidden";
	}
function ShowSubMenuDiveGaleria() 
	{
	document.getElementById('SubMenuDiveGaleria').style.left=String(document.getElementById('MenuDiveGaleria').offsetLeft);
	document.getElementById('SubMenuDiveGaleria').style.top=String(document.getElementById('MenuDiveGaleria').offsetTop+20);
	document.getElementById('SubMenuDiveGaleria').style.visibility="visible";
	}
function HideSubMenuDiveGaleria() 
	{
	document.getElementById('SubMenuDiveGaleria').style.visibility="hidden";
	}
function ShowSubMenuDiveInfo() 
	{
	document.getElementById('SubMenuDiveInfo').style.left=String(document.getElementById('MenuDiveInfo').offsetLeft+1);
	document.getElementById('SubMenuDiveInfo').style.top=String(document.getElementById('MenuDiveInfo').offsetTop+20);
	document.getElementById('SubMenuDiveInfo').style.visibility="visible";
	}
function HideSubMenuDiveInfo() 
	{
	document.getElementById('SubMenuDiveInfo').style.visibility="hidden";
	}
function ShowSubMenuDive() 
	{
	document.getElementById('SubMenuDive').style.left=String(document.getElementById('MenuDive').offsetLeft);
	document.getElementById('SubMenuDive').style.top=String(document.getElementById('MenuDive').offsetTop+12);
	document.getElementById('SubMenuDive').style.visibility="visible";
	}
function HideSubMenuDive() 
	{
	document.getElementById('SubMenuDive').style.visibility="hidden";
	}
function ShowSubMenuCalendario() 
	{
	document.getElementById('SubMenuCalendario').style.left=String(document.getElementById('MenuCalendario').offsetLeft);
	document.getElementById('SubMenuCalendario').style.top=String(document.getElementById('MenuCalendario').offsetTop+12);
	document.getElementById('SubMenuCalendario').style.visibility="visible";
	}
function HideSubMenuCalendario() 
	{
	document.getElementById('SubMenuCalendario').style.visibility="hidden";
	}
function ShowSubMenuGaleria() 
	{
	document.getElementById('SubMenuGaleria').style.left=String(document.getElementById('MenuGaleria').offsetLeft);
	document.getElementById('SubMenuGaleria').style.top=String(document.getElementById('MenuGaleria').offsetTop+12);
	document.getElementById('SubMenuGaleria').style.visibility="visible";
	}
function HideSubMenuGaleria() 
	{
	document.getElementById('SubMenuGaleria').style.visibility="hidden";
	}
function ShowSubMenuBanner() 
	{
	document.getElementById('SubMenuBanner').style.left=String(document.getElementById('MenuBanner').offsetLeft);
	document.getElementById('SubMenuBanner').style.top=String(document.getElementById('MenuBanner').offsetTop+12);
	document.getElementById('SubMenuBanner').style.visibility="visible";
	}
function HideSubMenuBanner() 
	{
	document.getElementById('SubMenuBanner').style.visibility="hidden";
	}
function ShowSubMenuLoja() 
	{
	document.getElementById('SubMenuLoja').style.left=String(document.getElementById('MenuLoja').offsetLeft);
	document.getElementById('SubMenuLoja').style.top=String(document.getElementById('MenuLoja').offsetTop+12);
	document.getElementById('SubMenuLoja').style.visibility="visible";
	}
function HideSubMenuLoja() 
	{
	document.getElementById('SubMenuLoja').style.visibility="hidden";
	}
function ShowSubMenuPoint() 
	{
	document.getElementById('SubMenuPoint').style.left=String(document.getElementById('MenuPoint').offsetLeft);
	document.getElementById('SubMenuPoint').style.top=String(document.getElementById('MenuPoint').offsetTop+12);
	document.getElementById('SubMenuPoint').style.visibility="visible";
	}
function HideSubMenuPoint() 
	{
	document.getElementById('SubMenuPoint').style.visibility="hidden";
	}
function ShowSubMenuServicos() 
	{
	document.getElementById('SubMenuServicos').style.left=String(document.getElementById('MenuServicos').offsetLeft);
	document.getElementById('SubMenuServicos').style.top=String(document.getElementById('MenuServicos').offsetTop+12);
	document.getElementById('SubMenuServicos').style.visibility="visible";
	}
function HideSubMenuServicos() 
	{
	document.getElementById('SubMenuServicos').style.visibility="hidden";
	}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->