// JavaScript

//***************************************************************************************************************
//	Troca a imagem da pagina detalhe.asp pelas demais disponiveis
	function alteraImg(img,tipo,nomePasta){
		var objImg = document.getElementById("imgProd");
		
		objImg.src = "../design/" + nomePasta + "/produto/" + ((tipo == 1) ? "multifotos/" : "") + img;
	}

//***************************************************************************************************************
//	Altera o formato do menu principal ao passar o mouse sobre ele
	function callEffect(local,hover,style,style_rev){
		local.className = (hover) ? style : style_rev;
	}

//***************************************************************************************************************
//	valida o formulario de indicao do site
	function indiqueSite(){
		with(document.getElementById("formIndiqueSite")){
		  if(elements["nome_indicante"].value == ""){
			alert("O campo NOME deve ser preenchido");
			elements["nome_indicante"].focus();
			return false;
		  }
		  if(elements["email_indicante"].value == ""){
			alert("O campo Email deve ser preenchido");
			elements["email_indicante"].focus();
			return false;
		  }	  
		  if(elements["nome_amigo"].value == ""){
			alert("O campo Nome Amigo(a) deve ser preenchido");
			elements["nome_amigo"].focus();
			return false;
		  }
		  if(elements["email_amigo"].value == ""){
			alert("O campo Email Amigo(a) deve ser preenchido");
			elements["email_amigo"].focus();
			return false;
		  }

		  action="indique_site.asp?indica=1";
		  submit();
		}  
	}

//***************************************************************************************************************
//	valida o formulario de indicao do site das lojas em inglês
	function indiqueSiteIngles(){
		with(document.getElementById("formIndiqueSite")){
		  if(elements["nome_indicante"].value == ""){
			alert("The field NAME must be filled");
			elements["nome_indicante"].focus();
			return false;
		  }
		  if(elements["email_indicante"].value == ""){
			alert("The field EMAIL must be filled");
			elements["email_indicante"].focus();
			return false;
		  }	  
		  if(elements["nome_amigo"].value == ""){
			alert("The field FRIEND'S NAME must be filled");
			elements["nome_amigo"].focus();
			return false;
		  }
		  if(elements["email_amigo"].value == ""){
			alert("The field FRIEND'S EMAIL must be filled");
			elements["email_amigo"].focus();
			return false;
		  }

		  action="indique_site.asp?indica=1";
		  submit();
		}  
	}




//***************************************************************************************************************
// método que restringe apenas números ao digitar no campo data. Parâmetro são os números que serão permitidos
	function onlyNumbers(cadeia,e){
		if (e != null)
			var key = (window.event) ? window.event.keyCode : e.which;
		else
			var key = window.event.keyCode;

		//se for TAB ou DEL ou BACKSPACE ou CTRL
		if (key == 9 || key == 46 || key == 8 || key == 17) return;

		var chars = cadeia;
		var ev = String.fromCharCode(key);

		if(chars.indexOf(ev) == -1){
			if (e != null){				
				if (window.event) {
					window.event.keyCode = 0;
				} else
					e.which = 0;
			} else
				if (window.event) window.event.keyCode = 0;
		}
	}

//***************************************************************************************************************
//metodo que abre a pagina do correio para pesquisa de Cep
{
function buscaCep() { window.open ('http://www.correios.com.br/servicos/cep/cep_default.cfm','','toolbar=no,location=no,status=no,menubar=no,status=no,resizable=no,scrollbars=no,height=700,width=780,top=0,left=0');}
}



//***************************************************************************************************************
//metodo formata e valida o Cep
function validaCep(){
	with(document.getElementById("pre_Cadastro")){
		var nro_CEP = elements["Login_CEP"].value;

		if(nro_CEP == "" || nro_CEP.length < 9){
			alert("Digite o CEP completo  para que possa efetuar seu cadastro!");
		} else {
			var Verifica = ValidaCampo('pre_Cadastro', 'Login_CEP', 'Formato do CEP inválido!', '0123456789-', '1');
			if(Verifica){
				action = "cadastre.asp?status=2";
				submit();
			} 
		}
	}
}

function validaCepCadastro(){
				
				with(document.getElementById("pre_Cadastro"))				
				{
				var nro_CEP = elements["Login_CEP"].value;
				if(nro_CEP == "" || nro_CEP.length < 9){
				alert("Digite o CEP completo  para que possa efetuar seu cadastro!");
				}
				  else{
				  var Verifica = ValidaCampo('pre_Cadastro', 'Login_CEP', 'Formato do CEP inválido!', '0123456789-', '1')
	     if(Verifica){
 		action = "pre_cadastro.asp";
		submit();
		 } 
	 }
   }
}

//Funçao que formata valida os campos digitos
function ValidaCampo(Formulario, NomeCampo, Msg, CharValidos, TipoVerificacao)
{
 var texto = document.forms[Formulario].elements[NomeCampo].value;
	var comprimento = texto.length;
	var validOnes = CharValidos;
	//"ABCDEFG HIJKLMNOPQRSTUVXZWYabcdefghijklmnopqrstuvxzwy0123456789-_áäÁÄçÇóÓöéëÉËíÍïÏúÚüÜãÃõÕ";
	var i;
	var Validado;
	if(TipoVerificacao == "1")//caracteres que são válidos
	{
		for (i = 0; i < comprimento; i++)
		{
			if (validOnes.indexOf(texto.charAt(i)) < 0)
			{
				alert(Msg);
				Validado = false;
				break;
			}
			else
				Validado = true;
		}
	}
	else //caracteres que não são válidos
	{
		for (i = 0; i < comprimento; i++)
		{
			if (validOnes.indexOf(texto.charAt(i)) >= 0)
			{
				alert(Msg);
				Validado = false;
				break;
			}
			else
				Validado = true;
		}	
	}
	return(Validado);
}

	//Funçao que formata o Cep ex: "14070-070"
	function MascaraCep(formato, keypress, objeto){
		campo = eval (objeto);

		if (formato=='Login_CEP'){
			caracteres = '01234567890';
			separacoes = 1;
			separacao1 = '-';
			conjuntos = 2;
			conjunto1 = 5;
			conjunto2 = 3;

			if ((caracteres.search(String.fromCharCode (keypress))!=-1) && campo.value.length <	(conjunto1 + conjunto2 + 1)){
				if (campo.value.length == conjunto1) campo.value = campo.value + separacao1;
			} else 
				event.returnValue = false;
		}
	} 

function mascaraCepCarrinho(formato, keypress, objeto)
{
campo = eval (objeto);
if (formato=='CEP')
	{
	caracteres = '01234567890';
	separacoes = 1;
	separacao1 = '-';
	conjuntos = 2;
	conjunto1 = 5;
	conjunto2 = 3;
	if ((caracteres.search(String.fromCharCode (keypress))!=-1) && campo.value.length < 	(conjunto1 + conjunto2 + 1))
		{
		if (campo.value.length == conjunto1) 
		   campo.value = campo.value + separacao1;
		}
	else 
		event.returnValue = false;
	}
} 



function CalculaFrete() 
  {
				var nro_CEP = document.getElementById("CEP").value;
				if(nro_CEP == "" || nro_CEP.length < 9){
				alert("Digite o CEP completo do local de entrega para que possa ser calculado o frete!");
				}
				  else{
				  var Verifica = ValidaCampo('cep_Frete', 'CEP', 'Formato do CEP inválido!', '0123456789-', '1')
	     if(Verifica){
 		document.getElementById("cep_Frete").action = "atualizafrete.asp?Cep="+nro_CEP;
		document.getElementById("cep_Frete").submit();
		 }
	 }
	} 
  

//***************************************************************************************************************
//metodo que muda o tipo da pessoa no cadastro da loja  ( Pessoa Física e Pessoa Juridica)
function muda_pessoa(pessoa){
		with(document.getElementById("cadastro"))
	{
	 action = "cadastre_cliente.asp?pessoa="+ pessoa;
	 submit();
	}
}


//***************************************************************************************************************
//metodo que muda o tipo da pessoa no cadastro da loja  ( Pessoa Física e Pessoa Juridica)
function muda_pessoa_cadastro(pessoa){
		with(document.getElementById("cadastro"))
	{
	 action = "cadastro.asp?pessoa="+ pessoa;
	 submit();
	}
} 


//***************************************************************************************************************
//metodo que valida a alteraçao de senha do cliente
function validaSenha(){
	with(document.getElementById("alteraSenha")) 
	{
	if(elements["senhanova"].value == "" || elements["senhanovaconfirma"].value == "")
	{
		alert("Os campos das senhas não podem estar vazios!");
		return;
	}
	if(elements["senhanova"].value != elements["senhanovaconfirma"].value)
	{
		alert("As senhas não coincidem!");
		elements["senhanova"].value="";
		elements["senhanovaconfirma"].value="";
		elements["senhanova"].focus();
		return;
	}
	action="alterasenha.asp?status=2";
	submit();
 }
}  



//***************************************************************************************************************
//metodo que a escolha de categorias para JetMail
function SelecionaCategorias(Campo){
var i;
	if(Campo == true){
		if( EmailCadastro.IdJetMailCategoria.length > 1){		
			for(i=0;i<EmailCadastro.IdJetMailCategoria.length;i++){
				document.EmailCadastro.IdJetMailCategoria[i].checked = true;
			}
		}else{
			document.EmailCadastro.IdJetMailCategoria.checked = true;
		}
	}else{
		if( EmailCadastro.IdJetMailCategoria.length > 1){	
			for(i=0;i<EmailCadastro.IdJetMailCategoria.length;i++){
				document.EmailCadastro.IdJetMailCategoria[i].checked = false;
			}
		}else{
			document.EmailCadastro.IdJetMailCategoria.checked = false;
		}
	}
}

//***************************************************************************************************************
//metodo que para efetuar a busca de produtos
function buscarPalavra(){
	with(document.getElementById("buscaProduto")){
		var txt = elements["busca"].value;
		var categoria = (elements["sel_categorias"] != null) ? elements["sel_categorias"].value : "";
		if(txt == "" || txt.length < 3){
			alert("Você deve digitar no mínimo 3 caracteres.");
			elements["busca"].focus();
			return;
		}else if(txt.length > 30){
			return false;
		}else{
			action="busca.asp?PalavraChave="+txt+"&cat="+categoria;
			submit();
		}
	}
}

//***************************************************************************************************************
//metodo que para efetuar a busca de produtos nas lojas em inglês
function buscarPalavraIngles(){
	with(document.getElementById("buscaProduto")){
		var txt = elements["busca"].value;
		var categoria = (elements["sel_categorias"] != null) ? elements["sel_categorias"].value : "";
		if(txt == "" || txt.length < 3){
			alert("You must type at least 3 characters.");
			elements["busca"].focus();
			return;
		} else {
			action="busca.asp?PalavraChave="+txt+"&cat="+categoria;
			submit();
		}
	}
}

//***************************************************************************************************************
//metodo retorna a chave de criptografia do Jet
function OpenCertDetails()
	{
	thewindow = window.open('https://www.thawte.com/core/process?process=public-site-seal-cert-details&public-site-seal-cert-details.code=BRJETX5', 'anew', config='height=600,width=518,toolbar=no,menubar=no,scrollbars=auto,resizable=no,location=no,directories=no,status=yes');
	}


//***************************************************************************************************************
//metodo abre os detalhes das formas de pagamento
function help_pagamento(idpagamentoempresa)
{
{ 	window.open ('help_pagamento.asp?IdPagamentoEmpresa='+idpagamentoempresa+'', 'help_Pagamento', 'height=180, width=300, resizable=no, menubar=no, status=no, scrollbars=yes, toolbar=no')} 
}

//***************************************************************************************************************
//metodo abre o endereço de entrega
function Muda1()
{
  if (document.getElementById('MudaEndereco1').style.display == '')
   {
      document.getElementById('MudaEndereco1').style.display = 'none';
   }
   else
   {
      document.getElementById('MudaEndereco1').style.display = '';
   }
 }


//***************************************************************************************************************
//metodo que valida o cliente
	function validaCliente(){
		with(document.getElementById("pagamentoForma")){
			if(elements["LocalEntrega"].checked){
				if(elements["Nome"].value == ""){
					alert("O campo NOME  deve ser preenchido");
					elements["Nome"].focus();
					return false;
				}

				if(elements["Endereco"].value == ""){
					alert("O campo Endereço deve ser preenchido");
					elements["Endereco"].focus();
					return false;
				}

				if(elements["Numero"].value == ""){
					alert("O campo Numero  deve ser preenchido");
					elements["Numero"].focus();
					return false;
				}

				if(elements["Bairro"].value == ""){
					alert("O campo Bairro  deve ser preenchido");
					elements["Bairro"].focus();
					return false;
				}

				if(elements["Cidade"].value == ""){
					alert("O campo Cidade  deve ser preenchido");
					elements["Cidade"].focus();
					return false;
				}

				if(elements["CEP"].value == ""){
					alert("O campo CEP  deve ser preenchido");
					elements["CEP"].focus();
					return false;
				}

				if(elements["CEP"].value != elements["Session_CEP"].value){
					alert("O campo CEP de entrega deve ser o mesmo utilizado no carrinho");
					elements["CEP"].focus();
					return false;
				}

				if(elements["Telefone1"].value == ""){
					alert("O campo Telefone1  deve ser preenchido");
					elements["Telefone1"].focus();
					return false;
				}
			}

			action="pagamento_escolhido.asp";
			submit();
		} 
	}

//***************************************************************************************************************
//metodo que verfica troco
function bloqueiaTroco()
		{
			//Dados Pessoa Jurídica
		document.all.Troco.style.background="silver";
		document.PagamentoEscolhido.Troco.disabled=true;
	}
function liberaTroco()
		{
		//Dados Pessoa Física
		document.all.Troco.style.background="white";
		document.PagamentoEscolhido.Troco.disabled=false;
			//Dados Pessoa Jurídica
		}

//***************************************************************************************************************
//metodo que valida se o cartao foi preenchido
function validaCartao(){
		with(document.getElementById("pagamentoEscolhido"))
{
 if(elements["IdPagamentoForma"].value =="2")
	
	   
	 {
      if(elements["numerocartao"].value == ""){
	      alert("O campo Numero do Cartao  deve ser preenchido");
		     elements["numerocartao"].focus();
	     	return false;
	  }
			 if(elements["codseguranca"].value == ""){
	      alert("O campo Código de Segurança deve ser preenchido");
		    elements["codseguranca"].focus();
	     	return false;
	  }
			 if(elements["nometitular"].value == ""){
	      alert("O campo Nome Impresso no Cartao  deve ser preenchido");
		     elements["nometitular"].focus();
	     	return false;
	  }
			}
		{
		action="finalizapedido.asp";
		submit();
		}
		}
}

//***************************************************************************************************************
//metodo abre o popup para imprimir o pedido
	function imprimepedido(valor)
	{
	window.open('imprime.asp?defusification='+valor+'', 'ImprimePedido', 'top=5, left=5, height=400, width=700, resizable=yes, menubar=yes, scrollbars=yes')
	}



//***************************************************************************************************************
//metodo valida a indicação de produto
function validaIndique()
			{
		with(document.getElementById("indiqueProduto"))
		{
		
	  if(elements["nome_indicante"].value == ""){
	    alert("O campo NOME deve ser preenchido");
		elements["nome_indicante"].focus();
		return false;
	  }
	  if(elements["email_indicante"].value == ""){
	    alert("O campo Email deve ser preenchido");
		elements["email_indicante"].focus();
		return false;
	  }	  
	  if(elements["nome_amigo"].value == ""){
	    alert("O campo Nome Amigo(a) deve ser preenchido");
		elements["nome_amigo"].focus();
		return false;
	  }
	  if(elements["email_amigo"].value == ""){ 
	    alert("O campo Email Amigo(a) deve ser preenchido");
		elements["email_amigo"].focus();
		return false;
	  } 
	
	 else
		{
		action="indique_produto.asp?indica=1";
		submit();
		}
	}
}


//***************************************************************************************************************
//metodo valida a indicação de produto das lojas em inglês
function validaIndiqueIngles()
			{
		with(document.getElementById("indiqueProduto"))
		{
		
	  if(elements["nome_indicante"].value == ""){
	    alert("The field NAME must be filled");
		elements["nome_indicante"].focus();
		return false;
	  }
	  if(elements["email_indicante"].value == ""){
	    alert("The field EMAIL must be filled");
		elements["email_indicante"].focus();
		return false;
	  }	  
	  if(elements["nome_amigo"].value == ""){
	    alert("The field FRIEND'S NAME must be filled");
		elements["nome_amigo"].focus();
		return false;
	  }
	  if(elements["email_amigo"].value == ""){ 
	    alert("The field FRIEND'S EMAIL must be filled");
		elements["email_amigo"].focus();
		return false;
	  } 
	
	 else
		{
		action="indique_produto.asp?indica=1";
		submit();
		}
	}
}



//***************************************************************************************************************
// método que limpa o valor "E-mail" quando o cliente vai se cadastrar no News.
function limparMail(){
		with(document.getElementById("News"))
{
	if(elements["Email"].value == "E-mail")
	elements["Email"].value = "";
	elements["Email"].focus();
	
} 
} 

//*************************************************************************************************************************//
// valida o email do cadastro de boletins
	function validaEmail(){
		with(document.getElementById("News")){
			if(elements["Email"].value == "" || elements["Email"].value == "E-mail" ){
				alert("Digite seu e-mail");
				elements["Email"].value = "";
				elements["Email"].focus();
				return;
			}

			action="email_cadastro.asp"
			submit();
		}
	}

//*************************************************************************************************************************//
// método que faz o redirect das páginas
	function redirect(local,url,cg){
		var change = (cg != null) ? cg : false;
		if(navigator.appName == "Netscape"){
			local.location.href = url;
		} else {
			if (change) {
				local.location.replace(url);
			} else {
				local.location = url;
			}
		}
	}

//*************************************************************************************************************************//
// método que verifica se o navegador é Opera para poder formatar os campos CEP
	function doFormat(origem){
		// se não for o navegador Opera
		if(navigator.userAgent.toLowerCase().indexOf('opera') == -1){
			if(origem.value.length == 5)
				origem.value += '-';
			
			onlyNumbers('0123456789',window.event);
		}
	}

//*************************************************************************************************************************//
/*
Descrição.: formata um campo do formulário de
acordo com a máscara informada...
Parâmetros: - objForm (o Objeto Form)
- strField (string contendo o nome do textbox)

* - sMask (mascara que define o
* formato que o dado será apresentado,
* usando o algarismo "9" para
* definir números e o símbolo "!" para
* qualquer caracter...
* - evtKeyPress (evento)
* Uso.......: <input type="textbox"
* name="xxx".....
* onkeypress="return txtBoxFormat(document.rcfDownload, 'str_cep', '99999-999', event);">
* Observação: As máscaras podem ser representadas como os exemplos abaixo:
* CEP -> 99.999-999
* CPF -> 999.999.999-99
* CNPJ -> 99.999.999/9999-99
* Data -> 99/99/9999
* Tel Resid -> (99) 999-9999
* Tel Cel -> (99) 9999-9999
* Processo -> 99.999999999/999-99
* C/C -> 999999-!
* E por aí vai...
***/

function txtBoxFormat(objForm, strField, sMask, evtKeyPress) {
var i, nCount, sValue, fldLen, mskLen,bolMask, sCod, nTecla;


if (navigator.userAgent.indexOf("MSIE")>=0) { // Internet Explorer
    nTecla = evtKeyPress.keyCode;
} else if (navigator.userAgent.indexOf("Mozilla")>=0) { // Nestcape
    nTecla = evtKeyPress.which;
} else {
    nTecla = evtKeyPress.which;
    if (nTecla == 8) {
        return true;
    }
}

sValue = objForm[strField].value;
// Limpa todos os caracteres de formatação que
// já estiverem no campo.
sValue = sValue.toString().replace( "-", "" );
sValue = sValue.toString().replace( "-", "" );
sValue = sValue.toString().replace( ".", "" );
sValue = sValue.toString().replace( ".", "" );
sValue = sValue.toString().replace( "/", "" );
sValue = sValue.toString().replace( "/", "" );
sValue = sValue.toString().replace( "(", "" );
sValue = sValue.toString().replace( "(", "" );
sValue = sValue.toString().replace( ")", "" );
sValue = sValue.toString().replace( ")", "" );
sValue = sValue.toString().replace( " ", "" );
sValue = sValue.toString().replace( " ", "" );
fldLen = sValue.length;
mskLen = sMask.length;

i = 0;
nCount = 0;
sCod = "";
mskLen = fldLen;

while (i <= mskLen) {
bolMask = ((sMask.charAt(i) == "-") || (sMask.charAt(i) == ":") || (sMask.charAt(i) == ".") || (sMask.charAt(i) == "/"))
bolMask = bolMask || ((sMask.charAt(i) == "(") || (sMask.charAt(i) == ")") || (sMask.charAt(i) == " "))

if (bolMask) {
    sCod += sMask.charAt(i);
    mskLen++;
} else {
    sCod += sValue.charAt(nCount);
    nCount++;
}
i++;
}

objForm[strField].value = sCod;
if (nTecla != 8) { // backspace
    if (sMask.charAt(i-1) == "9") { // apenas números...
    return ((nTecla > 47) && (nTecla < 58)); } // números de 0 a 9
else { // qualquer caracter...
    return true;
}
} else {
    return true;
}
}

//Fim da Função Máscaras Gerais
//*************************************************************************************************************************//

//***************************************************************************************************************

// Função para adicionar aos Favoritos - Funciona no IE e Mozila

function addFavoritos(url, title) // função para adicionar página aos favoritos - funciona no IE e Mozila
{
	if (window.sidebar) // para navegador Mozila
	{
		window.sidebar.addPanel(title, url,"");
	}
	else if(document.all)// para navegador IE
	{
		window.external.AddFavorite(url, title);
	}
}	

//***************************************************************************************************************

//-----------------------------------------------------------------------------------------------
//executa função ao precionar a tecla enter
//criada em 16 de abril de 2007 - Yeiki
//e= event  -- f="função"
//ex.: onEnterNow(event,'buscaDados()')
//-----------------------------------------------------------------------------------------------
function onEnterNow(e,f){
	if (e != null){
		var key = (window.event) ? window.event.keyCode : e.which;
		if(key == 13){
			eval(f);
		}
	}
}

//-----------------------------------------------------------------------------------------------
//função faz calculo de frete nos EUA
//criada em 21 de janeiro de 2008 - Yeiki
//ex.: calculateShipping();
//-----------------------------------------------------------------------------------------------
function calculateShipping(){
	var nro_CEP = document.getElementById("CEP").value;
	var Forma_Entrega = document.getElementById("Forma_Entrega").value;
	if(nro_CEP == "" || nro_CEP.length < 5)
		alert("Type the complete delivery Zip Code to calculate the shipping!");
	else if(Forma_Entrega == 0)
		alert("Please select a country for delivery.");
	else{
		document.getElementById("CEP_Frete").action = "atualizafrete.asp?Cep="+nro_CEP+"-000";
		document.getElementById("CEP_Frete").submit();
	}
} 

//***************************************************************************************************************
/*
FUNÇÃO QUE RESTRINGE OS VALORES APENAS PARA NÚMEROS AO DIGITAR   
COMPATÍVEL COM IE E FIREFOX
CRIADA EM 17/07/2008 - THIAGO COSTA
EXEMPLO DE CAHAMADA: onKeyPress="return SoNumber(event);"
*/
function SoNumber(e){
	var navegador;
	navegador = /msie/i.test(navigator.userAgent);
	if (navegador)
		var tecla = e.keyCode;
	else{
		var tecla = e.which;
		if(tecla == 0)
			return true;//TAB
	}

	if(tecla > 47 && tecla < 58) // numeros de 0 a 9
		return true;
	else{
		if (tecla != 8 && tecla !=9) // backspace
			return false;
		else
			return true;
	}
	
}
//***************************************************************************************************************
/*
FUNÇÃO QUE FORMATA O VALOR DE UM PNPUT  
COMPATÍVEL COM IE E FIREFOX
CRIADA EM 17/07/2008 - THIAGO COSTA
EXEMPLO DE CAHAMADA: onKeyPress="return formtCep(event,this,'#####-###');"
*/
function formtCep(e,src,mask) {
    var _TXT;
	if(window.event){
		 _TXT = e.keyCode; // pega tecla digitada pelo usuário - IE
	 }else if(e.which){
	 	 _TXT = e.which; // pega tecla digitada pelo usuário - Mozila
	 }
    if(_TXT > 47 && _TXT < 58){
		var i = src.value.length; //núemro de caracteres digitados
		var saida = mask.substring(0,1); // primeiro caracter de mask (máscara)
		var texto = mask.substring(i);  // recebe a string da mascara apartir do caracter de número i 
		if (texto.substring(0,1) != saida){  
			src.value += texto.substring(0,1);
		}
    	return true;
	 }else{
		 if (_TXT != 8){
			return false;
		 }else{
			return true; 
		 }
    }
}