function changeClass(objName, newClass)
{
	var obj = document.getElementById(objName);
	obj.className = newClass;
}

function changeImg(objName, src)
{
	var obj = document.getElementById(objName);
	obj.src = src;
}

function OpenWindow(url, w, h, sc)
{
	var l = parseInt((screen.width - w)/2);
	var t = parseInt((screen.height - h)/2);
	var n = parseInt(Math.random() * 1000);
	if (sc)
	{
		var nw = window.open(url, "NewWindow" + n, "width=" + w + "px,height=" + h + "px,left=" + l + "px,top=" + t + "px,scrollbars=yes");
	} else {
		var nw = window.open(url, "NewWindow" + n, "width=" + w + "px,height=" + h + "px,left=" + l + "px,top=" + t + "px,scrollbars=no");
	}
}

function openMapa()
{
	OpenWindow('plano.asp', 600, 350, false);
}

function openCopy()
{
	OpenWindow('popup.asp?type=C', 250, 400, false);
}
function openAviso()
{
	OpenWindow('popup.asp?type=A', 250, 400, false);
}

function openEsquema(i)
{
	OpenWindow('esquema.asp?id=' + i, 400, 270, false);
}

function openPrivacidad()
{
	OpenWindow('privacidad.asp', 250, 400, false);
}
