<!--
function gerarEtiqueta( opc ) {
	abrePagina('gerarEtiqueta.php?opc='+checkboxes(opc),'status=no');
}

// sequencia de numeros do checkbox separado por virgula
function checkboxes(field) {
	var i = field.length;
	arr = new Array(i);
	var text="";
	for( var t=0; t<i; t++ ) {
		if(field[t].checked) {
			arr[t] = field[t].value;
			text = text + arr[t] + ",";
		}
	}
	return text;
}

// Mascara de cep no input=text
function mascara_cep(cep) {
	if(cep.value.length == 5) {
		cep.value += '-';
	}
}
	
// Pula de uma Campo a Outro Automático
function JumpField(fields) {

	if (fields.value.length == fields.maxLength) {
		for (var i = 0; i < fields.form.length; i++) {
			if (fields.form[i] == fields && fields.form[(i + 1)] && fields.form[(i + 1)].type != "hidden")
			{
				fields.form[(i + 1)].focus();
				break;
			}
		}
	}
}


function certeza( url, baner ) {
 var num = confirm("Tem certeza que quer EXCLUIR "+baner+"?");
  if ( num == true ) {
     mesma_pagina(url);
  }
}


function verificar( url, baner ) {
 var num = confirm("Tem certeza que quer EXCLUIR "+baner+"?");
  if ( num == true ) {
     capa(url);
  }
}

function excluindo( url,codigo,text) {
 var num = confirm("Tem certeza que quer EXCLUIR "+text+"?");
  if ( num == true ) {
     enviaPagina(url,codigo,text);
  }
}

function campoObrigatorio(codigo,text) {
	if(codigo == "") {
		alert("Selecione "+text); 
		return false;
	}
	return true;
}

function janelacentral( url, wd, hg ) {
     w = screen.width;
     h = screen.height;
     t = (h/2) - (hg/2);
     l = (w/2) - (wd/2);
     window.open(url, "", "width="+wd+", height="+hg+", toolbars=no, top="+t+", left="+l);
}
function abrePagina(url, name, config) {
        window.open(url,name,config);
}

function capa(url) {
	parent.parent.capa.location.href=url;
}

function mesma_pagina(url) {
        location.href=url;
}
function enviaPagina(url,codigo,text) {
	if(codigo!="") {
		capa(url);	
	}else {
		alert("Selecione "+text);
	}
}
function pagina(url) {
        window.open(url);
}
function mudaCorAtivo(src) {
if (!src.contains(event.fromElement))
 {
	src.style.cursor = 'hand';
    src.id = 'menu12';
 }
}
function mudaCorInativo(src,corinativa) {
if (!src.contains(event.toElement))
 {
	src.style.cursor = 'default';
  	src.id = 'menu11';
 }
}
function ativo(src) {
if (src.contains(event.toElement))
 {
	src.style.cursor = 'hand';
 }
}
function inativo(src) {
if (!src.contains(event.toElement))
 {
	src.style.cursor = 'default';
 }
}


function visi2(tag1,tag2,tag3,tag4,tag5,tag6,tag7) {

	if (document.all) {
		if(document.all[tag1].style.display == 'none' &&
			document.all[tag3].style.display == 'none') {
				vista1 = 'block';
				vista2 = 'none';
				vista3 = 'block';
				vista4 = 'none';
				vista5 = 'none';
				vista6 = 'none';
				vista7 = 'none';
				
		}else {
				vista1 = 'none';
				vista2 = 'block';
				vista3 = 'none';
				vista4 = 'block';
				vista5 = 'block';
				vista6 = 'block';
				vista7 = 'block';
		}
		document.all[tag1].style.display = vista1;
		document.all[tag2].style.display = vista2;
		document.all[tag3].style.display = vista3;
		document.all[tag4].style.display = vista4;
		document.all[tag5].style.display = vista5;
		document.all[tag6].style.display = vista6;
		document.all[tag7].style.display = vista7;
	}
}

function visi3(nr) {

	if (document.getElementById)
	{
		vista = (document.getElementById(nr).style.visibility  == 'hidden') ? 'visible' : 'hidden';
		document.getElementById(nr).style.visibility  = vista;
	}
}


-->