function abrearealuno(theURL,winName,features) { 
  window.open(theURL,winName,features);
}

function stAba(menu,conteudo)
{
	this.menu = menu;
	this.conteudo = conteudo;
}

var arAbas = new Array();
arAbas[0] = new stAba('d1','div_1');
arAbas[1] = new stAba('d2','div_2');

function abas(menu,conteudo)
{
	for (i=0;i<arAbas.length;i++)
	{
		m = document.getElementById(arAbas[i].menu);
		m.className = 'menu';
		c = document.getElementById(arAbas[i].conteudo)
		c.style.display = 'none';
	}
	m = document.getElementById(menu)
	m.className = 'menu-sel';
	c = document.getElementById(conteudo)
	c.style.display = '';
}

function showText(ob, txt){
	if (ob.value == "") {
		ob.value = txt;
	}
}

function clearText(ob, txt){
	if (ob.value == txt) {
		ob.value = "";
	}
}

	function abre_foto(end,name,tamanho) { 
	  window.open(end,name,tamanho);
	}
	function showText(ob, txt){
		if (ob.value == "") {
			ob.value = txt;
		}
	}
	function clearText(ob, txt){
		if (ob.value == txt) {
			ob.value = "";
		}
	}
