		function send_to_friend(){

			pg = "/scripts/recomenda_flash.php"; 

			pg += "?send_pg="+ escape(document.location);

			window.open(pg,"FRIENDS01","STATUS=NO,TOOLBAR=NO,LOCATION=NO,DIRECTORIES=NO,COPYHISTORY=NO,MENU=NO,RESISABLE=NO,SCROLLBARS=NO,TOP=40,LEFT=20,WIDTH=210,HEIGHT=310");

		}

		

		

function printer(div){

 conte=document.getElementById(div).innerHTML;

 

 pop=window.open("","print","width=670,height=500,scrollbars=1");

 pop.document.write('<link href="css.css" rel="stylesheet"/>');

 pop.document.write('<body leftmargin=0 topmargin=0 rightmargin=0 bottommargin=0>');

 pop.document.write('<center><table bgcolor=#ffffff><tr><td><img src=/imagens/estrutura/printTopo.jpg></td></tr><tr><td>');

 pop.document.write('<div style="width:100%">');



 pop.document.write(conte);

 pop.document.write('</div>');

 pop.document.write('</td></tr><tr><td><span style="cursor:pointer" onclick="window.print();"><font size=1 face=verdana>&nbsp;&nbsp;&nbsp;&nbsp;<br><div align="right"><img src="/imagens/estrutura/btImprimir.jpg"></div></font></span><br></td></tr></table></center></body>');

pop.document.close();

}

function f_ajax(p_div_id, p_url, p_params) {
 new Ajax.Updater(p_div_id, p_url, {
				  method: 'post', 
				  parameters:p_params});
} 

// Cadastro de newsletter
function cadNewsAjax(email,nome) {
  // Paremetros
  var params = "user_email="+email
             + "&user_nome="+nome;                   			 
  var url = '/scripts/cadastronews.php?'+params;
  new Ajax.Request(url, {
  method: 'get'
  });
}
