function win_popup(imagen,ancho,alto)
{
	var opciones="toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width="+(ancho+8)+", height="+(alto+8)+", top="+((screen.height/2)-(alto/2))+",left="+((screen.width/2)-(ancho/2))+" ";

popup1 = window.open ("","popup1",opciones)
popup1.document.write('<head>');
popup1.document.write('<Title>');
popup1.document.write('View Image');
popup1.document.write('</Title>');
popup1.document.write('</head>');
popup1.document.write('<body style="margin:0px; padding:0px;">');
popup1.document.write('<div align=center style="overflow:scroll"><table height=100%><tr><td align=center valign=middle><img src='+imagen+' border=0></td></tr></table></div>');
popup1.document.write('</body>'); 

}
function view_article(id_art){
	if(!id_art) return false;
	NewWindow('articles_more.php?scat='+id_art,'name','620','500','yes'); 
	return false;
}
function all_typeGal(){
	if(document.getElementById('T4').checked == true){
		document.getElementById('T1').checked = true;
		document.getElementById('T2').checked = true;
		document.getElementById('T3').checked = true;
	}
	else{
		document.getElementById('T1').checked = false;
		document.getElementById('T2').checked = false;
		document.getElementById('T3').checked = false;
	}
}
function noall_typeGal(type){
	if(document.getElementById(type).checked == false){
		document.getElementById('T4').checked = false;
	}
}