function mostrarProdutos(){
	if(document.getElementById("lblprodutos").style.display == ''){
		Effect.BlindUp('lblprodutos');
		if(document.getElementById("lblprodutos_atalho_opcao").innerText) 
		{
		    document.getElementById("lblprodutos_atalho_opcao").innerText = "Exibir listagem de produtos";
		}
		else
		{
		     document.getElementById("lblprodutos_atalho_opcao").textContent = "Exibir listagem de produtos";
		}
	}else{
		Effect.BlindDown('lblprodutos');
		if(document.getElementById("lblprodutos_atalho_opcao").innerText) 
		{
		    document.getElementById("lblprodutos_atalho_opcao").innerText = "Fechar listagem de produtos";
		}
		else
		{
		     document.getElementById("lblprodutos_atalho_opcao").textContent = "Fechar listagem de produtos";
		}
	}
}


function submitonce(theform) {
    if (document.all||document.getElementById) {
        for (i=0;i<theform.length;i++) {
            var tempobj=theform.elements[i];
            if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset") 
                tempobj.disabled=true
        }
    }
}

function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
}

function valida() {
	if (document.syagit.mural_name.value.length == 0 || document.syagit.mural_name.value == "Seu Nome")  {
		alert("Insira um nome");
		document.syagit.mural_name.focus();
		return false;
	}
	
	if (document.syagit.mural_email.value.length == 0 || document.syagit.mural_email.value == "Seu E-mail")  {
		alert("Insira o seu e-mail");
		document.syagit.mural_email.focus();
		return false;
	}
	
	if (document.syagit.mural_shout.value.length == 0 || document.syagit.mural_shout.value == "Mensagem")  {
		alert("Insira sua mensagem!!");
		document.syagit.mural_shout.focus();
		return false;
	}
	
	
return true
}

function stotf(objName,x,newText) { 
  var obj = MM_findObj(objName); if (obj) obj.value = newText;
}

function x() 
{ return; }

function insertEmoticon(addSmilie) {
    var addSmilie; var revisedMessage;
    var currentMessage = document.syagit.mural_shout.value;
    revisedMessage = currentMessage+addSmilie;
    document.syagit.mural_shout.value=revisedMessage;
    document.syagit.mural_shout.focus();
}

function MM_findObj(n, d) { 
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}
