// Ebis - Funções Javascript 
<!--

/* Desabilitar botão direito */

	function clickIE() {if (document.all) {(message);return false;}}
	function clickNS(e) {if 
	(document.layers||(document.getElementById&&!document.all)) {
	if (e.which==2||e.which==3) {return false;}}}
	if (document.layers) 
	{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
	else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
	
	document.oncontextmenu=new Function("return false");
/* ------------- */


// *toggleDiv - Se flag 1 mostra div, flag 0 esconde div.
function toggleDiv(id,flagit) 
{
	if (flagit=="1"){
		if (document.layers) document.layers[''+id+''].visibility = "show"
		else if (document.all) document.all[''+id+''].style.visibility = "visible"
		else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "visible"
	}
	else if (flagit=="0")
	{
		if (document.layers) document.layers[''+id+''].visibility = "hide"
		else if (document.all) document.all[''+id+''].style.visibility = "hidden"
		else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "hidden"
	}
}




// *exibeFlash - Exibe o flash - hack para ie7 
function exibeFlash(src, larg, alt, wmode)
{
	var strHtml = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+ larg +'" height="'+ alt +'">';
	strHtml += '<param name="movie" value="'+ src +'" />';
	strHtml += '<param name="quality" value="high" />';
	strHtml += '<param name="menu" value="false" />';
	strHtml += '<param name="wmode" value="transparent">';
	strHtml += '<embed src="'+ src +'" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+ larg +'" height="'+ alt +'"></embed>';
	strHtml += '</object>';
		
	document.write(strHtml);
}

// *aparecer - Mostra objeto
function aparecer(obj)
{
	document.getElementById(obj).style.display = '';
	document.getElementById(obj).style.visibility = 'visible';
}

// *desaparecer - Esconde objeto
function desaparecer(obj)
{
	document.getElementById(obj).style.display = 'none';
	document.getElementById(obj).style.visibility = 'hidden';
}

// *trocarCaminho - Troca o caminho do objeto.
function trocarCaminho(id,caminho)
{
	document.getElementById(id).src = caminho;
}
// *retirarMensagem - Retira a mensagem do campo.
function retirarMensagem(pCampo){
	pCampo.value = '';
}
// *colocarMensagem - Coloca uma mensagem em um campo.
function colocarMensagem(pCampo, pMensagem){
   if (pCampo.value == '') 
   {
	pCampo.value = pMensagem;
   }

}

//-->