
function NewWindow(address,width,height,resize,title,tool,box,dir,status,menu,scroll){
	if(!tool)			tool = 0;
	if(!box)			box = 0;
	if(!dir)			dir = 0;
	if(!status)		status = 0;
	if(!menu)			menu = 0;
	if(!scroll)		scroll = 0;
	if(!resize)		resize = 0;
	if(!width)		width = 640;
	if(!height)		height = 480;
	if(!title)		title = '';
	
	var option = "toolbar="+tool+",location="+box+",directories="+dir+",status="+status+
	             ",menubar="+menu+",scrollbars="+scroll+",resizeable="+resize+",width="+width+
	             ",height="+height;
	
	var newWin = window.open(address,title,option);
}


/*	
*  voids de abertura de janela
*/

function mostranoticia(id){
	var mostrafoto = 'adm_mostranoticia.php?id='+id;
	NewWindow(mostrafoto,500,480,0,0,0,0,0,0,0,1); 
}
function mostrafoto(id){
	var mostrafoto = 'adm_mostrafoto.php?id='+id;
	NewWindow(mostrafoto,500,480,0,0,0,0,0,0,0,1); 
}
function mostrafoto2(id){
	var mostrafoto = 'adm_mostrafoto2.php?id='+id;
	NewWindow(mostrafoto,500,480,0,0,0,0,0,0,0,1); 
}





