// JavaScript Document

abrirPopup = function(w,h,name)
{
  var t, l, features;
	t = ((screen.availHeight-h)+45)/2;
	l = ((screen.availWidth-w)-10)/2;
	features = "width=" + w + ",height=" + h + ",top=" + t + ",left=" + l;
	window.open(name + '.html','page',features);
}

function DoPrinting()
{
	if (!window.print)
	{
		alert("Seu navegador não suporta esta função. Por favor tente outro!");
		return;
	}

	window.print();
}

function troca_imagem(img, img_ini, img_troca, troca)
{
	if(troca)
	{
		img.src = img_troca;
	}
	else
	{
		img.src = img_ini;
	}
}