function lembrarSenha(){    if (document.frmLogin.email.value.length < 1){        alert('Preencha seu e-mail no campo acima.');        document.frmLogin.email.focus();    }    else {        document.frmLogin.esqSenha.value = '1';        document.frmLogin.submit();    }}function atendimento(root_path) {	window.open(root_path+"/atendimento/index/", "Atendimento", "status=no, width=500, height=500");}function validaNews(frm){	if ((frm.nome.value.length < 1) || (frm.nome.value == 'Digite seu nome')){		alert("Informe seu nome.");		frm.nome.focus();		return (false);	}	if ((frm.email.value.length < 1) || (frm.email.value == "Digite seu e-mail")){ 		alert("Informe seu e-mail.");		frm.email.focus();		return (false);	}	return (true);}function validaIndique(frm){	if ((frm.nome.value.length < 1) || (frm.email.value.length < 1) || (frm.emailAmigo.value.length < 1)){		alert("Preencha todos os campos.");		frm.nome.focus();		return (false);	}	return (true);}function alterarQuantidade(){	$('#fieldAcao').val('2');	$('#frmCarrinho').submit();}function excluirCarrinho(prod1_cod, vari1_cod){	if (confirm('Deseja realmente retirar este item de seu carrinho de compras?')){		$('#fieldProd').val(prod1_cod);		$('#fieldVari').val(vari1_cod);		$('#fieldAcao').val('3');				$('#frmCarrinho').submit();	}}function finalizarCarrinho(logado){	if (logado == 0){		abrirJanelaLogin();	}	else {		$("#fieldGo").val('1');		$("#fieldAcao").val('2');		$('#frmCarrinho').submit();	}}function abrirJanelaLogin(){	tela = parseInt(screen.width / 2);	pos = tela - 300;		$("#janelaLogin").css('left',pos+'px');	$("#janelaLogin").css('display','block');}function fecharJanelaLogin(){	$("#janelaLogin").css('display','none');}function inteiro(e){	var tecla = (window.event)?event.keyCode:e.which;	if((tecla > 47 && tecla < 58) || tecla == 0){		return (true);	}	else{		if (tecla != 8){			return (false);		}		else {			return (true);		}	}}/*function calcularFrete(root_path, cep){	if (cep == 0){		cep = $('#campoCep').val();	}		if (cep != ''){		$("#formasPagamento").css('display','none');				$("#radioPac").removeAttr("checked");		$("#radioSedex").removeAttr("checked");				$("#opcoesFrete").css('display','block');		$("div.valorSedex").html('<img src="'+root_path+'/img/common/ajax-loader.gif" />');		$("div.valorPac").html('<img src="'+root_path+'/img/common/ajax-loader.gif" />');				$.ajax({			url: root_path + "/ajax/calcularFrete/"+ cep +"/",			cache: false,			success: function(html){				valores = html.split(';;');								if (valores[0] == 'Não foi possível calcular o valor do frete.'){					$("div.valorSedex").html('Erro<br><p style="font-size:9px;">tente novamente</p>');					$("div.valorPac").html('Erro<br><p style="font-size:9px;">tente novamente</p>');					$("#valorSedex").val('');					$("#valorPac").val('');                    $(".btnProximoPasso").css('display', 'none');                    exit;				}				else if (valores[0] == 'Peso não atendido.'){					$("div.valorSedex").html('R$ 50,00');					$("#valorSedex").val('50,00');                    $(".btnProximoPasso").css('display', 'block');				}				else {					$("div.valorSedex").html('R$ ' + valores[0]);					$("#valorSedex").val(valores[0]);                    $(".btnProximoPasso").css('display', 'block');				}                				if (valores[1] == 'Peso não atendido.'){					$("div.valorPac").html('R$ 50,00');					$("#valorPac").val('50,00');                    $(".btnProximoPasso").css('display', 'block');				}				else {					$("div.valorPac").html('R$ ' + valores[1]);					$("#valorPac").val(valores[1]);                    $(".btnProximoPasso").css('display', 'block');				}			}		});	}}*/function buscarValores(root_path,tipo){			$.ajax({		url: root_path + "/ajax/buscarValores/",		cache: false,		success: function(html){			$("#formasPagamento").css('display','block');			$("#formasPagamento").html(html);		}	});}function finalizarPedido(){	//if ((document.frmPagamentos.opcaoFrete[0].checked) || (document.frmPagamentos.opcaoFrete[1].checked)){/*	if ((document.frmPagamentos.opcaoFrete.checked)){*/		document.frmPagamentos.submit();/*	}	else {		alert('Selecione a opção de frete desejada.');	}*/}function excluirComentario(hp){	if (confirm('Deseja realmente excluir este comentário?')){		document.location = hp;	}}
