<!--
function doesNameStartWith(itemName, itemPrefix) {
  return itemName.indexOf(itemPrefix) == 0;
}

function checkAll(frm, checkboxesPrefix, checked) {
  for (var i = 0; i < frm.elements.length; i++) {
    if (doesNameStartWith(frm.elements[i].name, checkboxesPrefix)) {
      frm.elements[i].checked = checked;
    }
  }
}

var tam=14;
function tamanhoFonte(tipo){
    if (tipo=="+"){
        if (tam < 40){
            tam+=4;
        }
    }else{
        if (tam > 6){
            tam-=4;
        }
    }
    document.getElementById('tx').style.fontSize=tam+'px' ;
}

function enviasmile(img){
    removeEditor();
	var texto = document.getElementById('recado').value;
	img = ' ' + img + ' ';
	document.getElementById('recado').value=texto+img;
	addEditor();
}
function enviasmilei(img){
	var texto = document.getElementById('recado').value;
	img = ' ' + img + ' ';
	document.getElementById('recado').value=texto+img;
	document.getElementById('recado').focus();
}

function AbrirJanela(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function abrirCobertura(id) {
  window.open("http://www.zonamix.com.br/galeria10.php?id="+id,"zm_cobertura","width=780,height=650,top=10,left=50");
}
function MM_findObj(n, d) { //v4.01
  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 && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
function addLoadEvent(func) {
    var oldonload = window.onload;
    if (typeof window.onload != 'function') {
        window.onload = func;
    } else {
        window.onload = function() {
            if (oldonload) {
                oldonload();
            }
            func();
        }
    }
}
function validaMural() {
	var nome = document.getElementById('nome').value;
	var email = document.getElementById('email').value;
	var recado = document.getElementById('recado').value;
	
	if (nome != "" && email != "" && recado != "" && recado != "<br>") {
		return true;
	} else {
		alert("Preencha o formulário corretamente!");
		return false;
	}
}
//-->