<!--
   function enviar(opcao) {
      //OPÇÃO EXCLUIR SELECIONADA
	  if(opcao == 'E') {
	     document.forms[0].opc_excluir.value = 1;
		 document.forms[0].submit();
      }//FECHA IF
	  
	  //OPÇÃO ATUALIZAR SELECIONADA
	  if(opcao == 'A') {
	     document.forms[0].opc_atualizar.value = 1;
		 document.forms[0].submit();
      }//FECHA IF
	  
	  //OPÇÃO FINALIZAR SELECIONADA
	  if(opcao == 'F') {
	     document.forms[0].opc_finalizar.value = 1;
		 document.forms[0].action = "index.php?pg=finalizar";
		 document.forms[0].submit();
      }//FECHA IF
	  
   }//FECHA FUNCTION

   function localizar(){
      if (document.frm_localizar.busca.value=="") {
         alert("Você deve digitar um CÓDIGO ou DESCRIÇÃO para localizar um produto.");
         document.frm_localizar.busca.focus();
      } else {
         document.frm_localizar.submit();
      }
   }


// by Paul@YellowPencil.com and Scott@YellowPencil.com
// feel free to delete all comments except for the above credit

function setTall() {
	if (document.getElementById) {
		// the divs array contains references to each column's div element.  
		// Replace 'center' 'right' and 'left' with your own.  
		// Or remove the last one entirely if you've got 2 columns.  Or add another if you've got 4!
		var divs = new Array(document.getElementById('conteudo'), document.getElementById('menu2'));
		
		// Let's determine the maximum height out of all columns specified
		var maxHeight = 0;
		for (var i = 0; i < divs.length; i++) {
			if (divs[i].offsetHeight > maxHeight) maxHeight = divs[i].offsetHeight;
		}
		
		// Let's set all columns to that maximum height
		for (var i = 0; i < divs.length; i++) {
			divs[i].style.height = maxHeight + 'px';

			// Now, if the browser's in standards-compliant mode, the height property
			// sets the height excluding padding, so we figure the padding out by subtracting the
			// old maxHeight from the new offsetHeight, and compensate!  So it works in Safari AND in IE 5.x
			if (divs[i].offsetHeight > maxHeight) {
				divs[i].style.height = (maxHeight - (divs[i].offsetHeight - maxHeight)) + 'px';
			}
		}
	}
}

window.onload = function() {
	setTall();
}

window.onresize = function() {
	setTall();
}


//-->