function test(celda)
{
	alert(celda);
}

function extrauControl(id)
{
	var itm = null;
	if (document.getElementById) 
	{
		itm = document.getElementById(id);
	}
	else if (document.all)
	{
		itm = document.all[id];
	}
	else if (document.layers)
	{
		itm = document.layers[id];
	}

	return itm;
}

function canviaVis(id)
{
	itm = extrauControl(id);

	if (!itm) 
	{
	  // do nothing
	}
	else if (itm.style) 
	{
		if (itm.style.display == "none") 
		{
			itm.style.display = ""; 
		}
		else 
		{ 
			itm.style.display = "none"; 
		}
	}
	else 
	{ 
		itm.visibility = "show"; 
	}
}

function posaVis(id,vis)
{
	itm = extrauControl(id);

	if (!itm) 
	{
	  // do nothing
	}
	else if (itm.style) 
	{
		itm.style.display = vis; 
	}
	else 
	{ 
		itm.visibility = "show"; 
	}
}

function crearDivBloqueo(titulo, msg)
{
	var cHtml = "<div class=\"divTapar\"><div class=\"divMensaje\">";
	cHtml += "<table width=\"100%\" class=\"msg-tabla\" cellspacing=\"0\" cellpadding=\"0\">"
	cHtml += "<tr><td colspan=\"2\" class=\"msg-titulo\">" + titulo  + "</td></tr>";
	cHtml += "<tr><td class=\"msg-mensaje\"><img src=\"/foros/imagenes/icon_wait.gif\"</td><td class=\"msg-mensaje\" valign=\"top\">" + msg  + "</td></tr>";
	cHtml += "</table>";
	cHtml += "</div></div>"
	
	dMsg = document.getElementById("mensajeria");
	
	dMsg.outerHTML=cHtml;
	
	return true;
}
