

	function maximiza(ifile,ix,iy) { 
		win = window.open("/imagenes/maximiza.php?src="+ifile,"Maximiza","width="+ix+",height="+iy+",menubar=no,toolbar=no");
		}
	
	function chat() { 
		win = window.open("/chat/chat.php","chat","width=635,height=435,menubar=no,toolbar=no,resize=no");
	}
	function download(ifile) { 
		win = window.open("/downloadq/addqueue.php?file="+ifile,"cola","width=620,height=350,menubar=no,toolbar=no,noresize=yes");
	}



	function del_admin(modo,id) { 
		win = window.open("/foro/kill.php?modo="+modo+"&id="+id+"","ADMIN","width=300,height=100,menubar=no,toolbar=no,resize=no");
		}
	function del_admin_enlaces(id) { 
		win = window.open("/enlaces/kill.php?id="+id,"ADMIN","width=300,height=100,menubar=no,toolbar=no,resize=no");
		}
	function del_admin_msgjuego(id, id_j) { 
		win = window.open("/juegos/kill.php?id="+id+"&id_j="+id_j,"ADMIN","width=300,height=100,menubar=no,toolbar=no,resize=no");
		}



	function SELECTALL(CB)  {
	
	if(CB.checked)  {
	for (var i=0;i<document.forms["FORMULARIO"].elements.length;i++)
	{
	var e = document.forms["FORMULARIO"].elements[i];
	
	if (e.type=='checkbox')
		{
		e.checked = true;
		OVER(e,"SEL");
		}
	}
	}
	if(!CB.checked)  {
		for (var i=0;i<document.forms["FORMULARIO"].elements.length;i++)
		{
		var e = document.forms["FORMULARIO"].elements[i];
	
		if (e.type=='checkbox')
			{
			e.checked = false;
			OVER(e,"DESSEL");
			}
		}
		}
	}
	function SEL(CB)  {
	if (CB.checked)
		OVER(CB,"SEL");
	else
	OVER(CB,"DESSEL");
	}

	function OVER(E,CLASSNAME){
	if(!E.tagName) return;
		while (E.tagName!="TR")  {
		if(E.parentElement)
			E=E.parentElement;
		else
			E=E.parentNode;	
		}
	if(CLASSNAME == "DESSEL")
		E.className = "";
	if(E.className != "SEL")
		E.className = CLASSNAME;
	}
	
		

	
		function viewimage(sImage) { 
		win = window.open("../fotos/image.php?sImage="+sImage,"Imagen","width=800,height=600,menubar=no,toolbar=no,scrollbars=yes");
		}
