// JavaScript Document



function news(nome, email){
	
	html = '<table width="565" border="0" align="left" cellpadding="0" cellspacing="0" ><tr><td width="19" height="20" align="right" valign="bottom" background="img/box_texto_cse.png" style="background-position:-0px 17px; background-repeat:no-repeat">&nbsp;</td><td width="515" height="19" valign="bottom" background="img/box_texto_cs.png" style="background-position:bottom; background-repeat:repeat-x;">&nbsp;</td><td width="26" height="19" align="left" valign="bottom" background="img/box_texto_csd.png" style="background-position:bottom left; background-repeat:no-repeat;"><span style="background-repeat:no-repeat"><input type="image" src="img/close.png" onclick="javascript: closedivligth(\'act_news\');" /></span></td></tr><tr><td align="right" background="img/box_texto_ce.png">&nbsp;</td><td valign="top" bgcolor="#FFFFFF" align="center"><iframe src="newsletter.php?nome='+nome+'&email='+email+'" width="520" height="250" scrolling="no" style="border:0;"></iframe></td><td background="img/box_texto_cd.png" style="background-repeat:repeat-y">&nbsp;</td></tr><tr><td background="img/box_texto_cie.png" style="background-repeat:no-repeat;"></td><td height="30" background="img/box_texto_ci.png" style="background-repeat:repeat-x;">&nbsp;</td><td background="img/box_texto_cid.png" style="background-repeat:no-repeat">&nbsp;</td></tr></table>';
	
	document.getElementById('act_news').innerHTML = html;
	
	showdivligth('act_news');

}

function ped(nome, email, div){
	
	html = '<table width="565" border="0" align="left" cellpadding="0" cellspacing="0" ><tr><td width="19" height="20" align="right" valign="bottom" background="img/box_texto_cse.png" style="background-position:-0px 17px; background-repeat:no-repeat">&nbsp;</td><td width="515" height="19" valign="bottom" background="img/box_texto_cs.png" style="background-position:bottom; background-repeat:repeat-x;">&nbsp;</td><td width="26" height="19" align="left" valign="bottom" background="img/box_texto_csd.png" style="background-position:bottom left; background-repeat:no-repeat;"><span style="background-repeat:no-repeat"><input type="image" src="img/close.png" onclick="javascript: closedivligth(\'act_ped\');" /></span></td></tr><tr><td align="right" background="img/box_texto_ce.png">&nbsp;</td><td valign="top" bgcolor="#FFFFFF" align="center"><iframe src="restrito.php?nome='+nome+'&email='+email+'" width="520" height="180" scrolling="no" style="border:0;"></iframe></td><td background="img/box_texto_cd.png" style="background-repeat:repeat-y">&nbsp;</td></tr><tr><td background="img/box_texto_cie.png" style="background-repeat:no-repeat;"></td><td height="30" background="img/box_texto_ci.png" style="background-repeat:repeat-x;">&nbsp;</td><td background="img/box_texto_cid.png" style="background-repeat:no-repeat">&nbsp;</td></tr></table>';
	
	document.getElementById('act_ped').innerHTML = html;
	
	showdivligth('act_ped');

}

function showdivligth(div){
	
	document.getElementById(div).style.display = 'block';
	document.getElementById(div+'bg').style.display = 'block';
	
	
	}
function closedivligth(div){
	
	document.getElementById(div).style.display = 'none';
	document.getElementById(div+'bg').style.display = 'none';
	
	}
	
	
function showdiv(div){
	
	document.getElementById(div).style.display = 'block';
	
	}
function closediv(div){
	
	document.getElementById(div).style.display = 'none';
	
	}






function verBusca(){
	var busca = document.getElementById('busca').value;
	if(busca==0){alert('Digite algum valor para busca!');
				document.getElementById('busca').focus();
				return false;
	}
return true;	
}


