function LinkActive(status_text, id, type) {
	window.status=status_text;
	type = (type) ? ".jpg" : ".gif";
	if (id) {
		g=document.getElementById(id);
		g.src="graphics/active/"+id+type;
	}
}

function LinkPassive(id, type) {
	window.status="";
	type = (type) ? ".jpg" : ".gif";
	if (id) {
		g=document.getElementById(id);
		g.src="graphics/"+id+type;
	}
}

function LinkElementActive(status_text, id, serial, type) {
	window.status=status_text;
	type = (type) ? ".jpg" : ".gif";
	g=document.getElementById(id+"_"+serial);
	g.src="graphics/active/"+id+type;
}

function LinkElementPassive(id, serial, type) {
	window.status="";
	type = (type) ? ".jpg" : ".gif";
	g=document.getElementById(id+"_"+serial);
	g.src="graphics/"+id+type;
}

function LinkDotActive(status_text, id) {
	window.status=status_text;
	id="dot_"+id;
	g=document.getElementById(id);
	g.className="LinkActive";
}

function LinkDotPassive(id) {
	window.status="";
	id="dot_"+id;
	g=document.getElementById(id);
	g.className="LinkPassive";
}

function article(word) {
	regular_expression=/^[aáeéiíoóöõuúüû]$/i;
	word_article = (regular_expression.test(word.substring(0, 1))) ? "az" : "a";
	return word_article;
}

function ucfirst(word) {
	word=word.substring(0, 1).toUpperCase()+word.substring(1, word.length);
	return word;
}

mt="34#19#29#33#44#36";

function EMail(email) {
	alphabet = new Array("@", " ", ".", "!", "-", "_", "&#34;", "<", ">", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "á", "b", "c", "d", "e", "é", "f", "g", "h", "i", "í", "j", "k", "l", "m", "n", "o", "ó", "ö", "õ", "p", "q", "r", "s", "t", "u", "ú", "ü", "û", "v", "w", "x", "y", "z", "A", "Á", "B", "C", "D", "E", "É", "F", "G", "H", "I", "Í", "J", "K", "L", "M", "N", "O", "Ó", "Ö", "Õ", "P", "Q", "R", "S", "T", "U", "Ú", "Ü", "Û", "V", "W", "X", "Y", "Z");
	email_array=email.split("#");
	email="";
	for (i=0; i<email_array.length; i++) {
		j=email_array[i];
		email+=alphabet[j];
	}
	return email;
}
