function d_frame(url, w, h){
	da = document.getElementById('Lveic'); 
	da.style.left=(document.body.clientWidth/2)-(w/2); da.style.top=(document.body.scrollTop+(document.body.clientHeight/2))-h/2-30 ; 
	document.getElementById('td1').innerHTML='<iframe name="frame1" src="'+url+'" height="'+ h +'" width="'+w+'"" frameborder="0" scrolling="auto"></iframe>';
	da.style.display='block';document.getElementById('fade').style.display='block';
	document.getElementById('fade').style.height = document.body.scrollHeight;
	
}

function d_frame2(url, w, h){
	nome = document.formfale.nome.value;
	email = document.formfale.email_contato.value;
	resp_e = document.formfale.responsavel_e.value;
	cidade = document.formfale.cidade.value;
	uf = document.formfale.uf.value;
	ddd = document.formfale.ddd.value;
	telefone = document.formfale.telefone.value;
	dia_prev = document.formfale.dia_prev.value;
	mes_prev = document.formfale.mes_prev.value;
	ano_prev = document.formfale.ano_prev.value;
	onde_soube = document.formfale.onde_soube.value;
	indique = document.formfale.indique.value;
	seoutros = document.formfale.seoutros.value;
	dddcel = document.formfale.dddcel.value;
	celular = document.formfale.celular.value;
	fechou = document.formfale.fechou.value;
	
	da = document.getElementById('Lveic'); 
	da.style.left=(document.body.clientWidth/2)-(w/2); da.style.top=(document.body.scrollTop+(document.body.clientHeight/2))-h/2-30 ; 
	document.getElementById('td1').innerHTML='<iframe name="frame1" src="'+url+'?nome='+nome+'&resp_e='+resp_e+'&email='+email+'&cidade='+cidade+'&uf='+uf+'&ddd='+ddd+'&telefone='+telefone+'&dia_prev='+dia_prev+'&mes_prev='+mes_prev+'&ano_prev='+ano_prev+'&onde_soube='+onde_soube+'&indique='+indique+'&seoutros='+seoutros+'&dddcel='+dddcel+'&celular='+celular+'&fechou='+fechou+'" height="'+ h +'" width="'+w+'"" frameborder="0" scrolling="auto"></iframe>';
	da.style.display='block';document.getElementById('fade').style.display='block';
	document.getElementById('fade').style.height = document.body.scrollHeight;

	document.formfale.nome.value='';
	document.formfale.email_contato.value='';
	document.formfale.confirma_email.value='';
	document.formfale.responsavel_e.value='';
	document.formfale.cidade.value='';
	document.formfale.uf.value='';
	document.formfale.ddd.value='';
	document.formfale.telefone.value='';
	document.formfale.dia_prev.value='';
	document.formfale.mes_prev.value='';
	document.formfale.ano_prev.value='';
	document.formfale.onde_soube.value='';
	document.formfale.indique.value='';
	document.formfale.seoutros.value='';
	document.formfale.dddcel.value='';
	document.formfale.celular.value='';
	
}

function ocultaLayer(){document.all.Lveic.style.display='none';document.getElementById('fade').style.display='none';
document.getElementById('td1').innerHTML='';
}
function exibeLayer(n,d){document.all(''+n+'').style.visibility=d; document.all(''+n+'').style.overflow=d}
function mudabt(obj, acao){
  if (acao == 1) {img='Over'}else{img='Out'}
  document.all(obj).src='/images/b_Mouse'+img+'.gif';
  }
function exibe_div(id) {if (document.getElementById(id).style.display == 'none') {document.getElementById(id).style.display = '';}else {document.getElementById(id).style.display = 'none';}}  
function oculta_div(id) {if (document.getElementById(id).style.display == '') {document.getElementById(id).style.display = 'none';}else {document.getElementById(id).style.display = '';}}  
function pNoivaShop(pagina,janela,w,h,scrolling){if(!scrolling){scrolling='auto'}window.open('/wbn/guia/portifolios/'+pagina,janela,'width='+w+',height='+h+',scrollbars='+scrolling+',toolbar=no,location=no,status=no,menubar=no,resizable=no,left=300,top=10');
}
function high(which2,value){which2.style.cursor='hand';theobject=which2;highlighting=setInterval("highlightit(theobject)",value);}
function low(which2, value){clearInterval(highlighting);which2.filters.alpha.opacity=value;}
function highlightit(cur2){if (cur2.filters.alpha.opacity<100){cur2.filters.alpha.opacity+=13}else if(window.highlighting){clearInterval(highlighting)}}
function opNS(id,value){
obj1=document.all('ico_estrela'+id).filters.alpha.opacity=value; obj2=document.all('ico_world'+id).filters.alpha.opacity=value; obj3=document.all('ico_mail'+id).filters.alpha.opacity=value;}
function AbreJanela(pagina,janela,w,h,scrolling){if(!scrolling){scrolling='auto'}window.open(pagina,janela,'width='+w+',height='+h+',scrollbars='+scrolling+',toolbar=no,location=no,status=no,menubar=no,resizable=no,left=0,top=10');}
function alerta (d, campo){
msg = 'Por favor, preencha o campo ';
d.focus();
d.style.borderColor = "#993300";
//d.style.color = "993300";
d.style.backgroundColor = "FFF5F4";
alert (msg + campo);
}
