function verFoto(url,largura,altura){
	var fotos = window.open(url,'fotos','width=522,height=540');
}

/*
function verFoto(url,largura,altura){
	var fotos = window.open(url,'fotos','width=522,height=456');
	fotos.document.title = "Star Pack";
	fotos.document.body.innerHTML += "<style type='text/css'>body{margin-top:10px;background-color: #F0F9FD;text-align:center}img{width:502px;height:436px;border:2px solid #999999 }</style></head>"
}

function verFotoOLD(url,largura,altura){
	var fotos = window.open(url,'fotos','width='+(largura + 20)+',height='+(altura + 20));
	fotos.document.title = "Star Pack";
	fotos.document.body.innerHTML += "<style type='text/css'>body{margin-top:10px;background-color: #F0F9FD;text-align:center}img{width:"+largura+"px;height:"+altura+"px;border:2px solid #999999 }</style></head>"
}
*/

function validaContato(frm){
			
            if(frm.contatoNome.value.replace(/\s/gi,"")==""){
                frm.contatoNome.focus();
                alert("Informe o seu nome.");
                return false;
            }
			if(frm.contatoEmpresa.value.replace(/\s/gi,"")==""){
                frm.contatoEmpresa.focus();
                alert("Informe o nome da sua empresa.");
                return false;
            }
			
			if(frm.contatoCnpj.value.replace(/\s/gi,"")==""){
                frm.contatoCnpj.focus();
                alert("Informe o Cnpj da sua empresa.");
                return false;
            }
			
			if(frm.contatoEndereco.value.replace(/\s/gi,"")==""){
                frm.contatoEndereco.focus();
                alert("Informe o seu endereço.");
                return false;
            }
			
			if(frm.contatoBairro.value.replace(/\s/gi,"")==""){
                frm.contatoBairro.focus();
                alert("Informe seu bairro.");
                return false;
            }
			
			if(frm.contatoCEP.value.replace(/\s/gi,"")==""){
                frm.contatoCEP.focus();
                alert("Informe seu CEP.");
                return false;
            }
			
			if(frm.contatoCidade.value.replace(/\s/gi,"")==""){
                frm.contatoCidade.focus();
                alert("Informe a sua cidade.");
                return false;
            }
			
			if(frm.contatoEstado.value.replace(/\s/gi,"")==""){
                frm.contatoEstado.focus();
                alert("Informe o seu estado.");
                return false;
            }
			
			if(frm.contatoDDD.value.replace(/\s/gi,"")==""){
                frm.contatoDDD.focus();
                alert("Informe o DDD de seu telefone.");
                return false;
            }
			
			
			if(frm.contatoTel.value.replace(/\s/gi,"")==""){
                frm.contatoTel.focus();
                alert("Informe o seu telefone.");
                return false;
            }
			
			if(frm.contatoEmail.value.indexOf("@")==-1){
                frm.contatoEmail.focus();
                alert("Informe o email.");
                return false;
            }
			
			if(frm.contatoMsg.value.replace(/\s/gi,"")==""){
                frm.contatoMsg.focus();
                alert("Digite sua mensagem.");
                return false;
            }
			
		return true;
        }