function popup(url, width, height) {
	open(url,'NewWindow','top=0,left=0,width='+width+',height='+height+',status=yes,resizable=yes,scrollbars=yes');
}
	
function cerrarYActualizar()
{
	opener.location.reload();
	window.close(); 
}

function mensaje(msg)
{
	alert(msg);
}

function resize(x, y)
{
	window.resizeBy(x,y)
}

function confirmacion(msg, control)
{
	if (confirm(msg))
	{
		document.getElementById("resp").value="1";
		__doPostBack(control,'true');
	}
}
				
function cerrar()
{
	window.close(); 
}

function direccionar(url)
{
	location.replace(url);
}

function direccionarOpener(url)
{
	opener.location.replace(url);
}

function checkearTodo()
{
	with (document.Form1)
	{
		x=1
		while (x < elements.length)
		{		
			var nombre=elements[x].name;
			if ( nombre.substring(0,3)=="chk")
				elements[x].checked= checkTodos.checked;
			x=x+1;
		}
	}
}

function mostrar(td, color)
{
	if (color == 1)
		td.style.textDecoration= "underline";
	else
		td.style.textDecoration= "none";
}

function confirmacionOpenPopup(mensaje, url, width, height)
{
	if (confirm(mensaje)==true)
		popup(url, width, height);
}


