// Função para localizar Objeto pelo 'Name' -- Forrest - 6/09/2002
function findName(item) {
	if (document.all) return(document.all[item]);
	if (document.getElementByName) return(document.getElementByName(item));
	return(false);
}

function showMe(obj,index,nItems){
	for(i=1;i<=nItems;i++){myObj=findName(obj+i);myObj.style.display='none';}
	myObj=findName(obj+index);myObj.style.display='';
}

function showPop(theURL,winName,myWidth,myHeight){
	myLeft=screen.availWidth/2-myWidth/2;
	myTop=screen.availHeight/2-myHeight/2;
	window.open(theURL,winName,'left='+myLeft+',top='+myTop+',width='+myWidth+',height='+myHeight);
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

//Botoes... =)
function btDown(obj){obj.style.backgroundImage='url('+document.MM_p[0].src+')';}
function btUp(obj){obj.style.backgroundImage='url(images/bg_botao.gif)';}
function btOver(obj){obj.style.backgroundImage='url('+document.MM_p[1].src+')';}

function validaContato(form){
	if(form.nome.value!='')return true;
	return false;
}

