// JavaScript Document
function amplia(idProd,altura,largura){
	altura = parseInt(altura);
	largura = parseInt(largura);
	ampliado = window.open("mostra_ampliada.php?ampliarprod="+idProd,"ampliada","height="+altura+",width="+largura+",resizable=no,scrollbars=no,top=80,left=150");
	ampliado.focus();
	ampliado.resizeTo(largura+100,altura+100);
}

function abre(arquivo){
	janela = window.open(arquivo,"janela","height=385,width=428,resizable=no,scrollbars=no,top=80,left=150");
	janela.focus();
}

function verificar(evt)
{
              var ctrl=evt.ctrlKey;
              var tecla=evt.keyCode;
              if (ctrl && tecla==67) {event.keyCode=0; event.returnValue=false;}
              if (ctrl && tecla==86) {event.keyCode=0; event.returnValue=false;}
}


// ***********************************************************


	var ns = (document.layers)? true:false;
	var ie = (document.all)? true:false;
	if (ns) document.captureEvents(Event.MOUSEDOWN || Event.CLICK);
	document.onclick = sourcecodeprotect;
	document.onmousedown = sourcecodeprotect;


function sourcecodeprotect(e) {
  if (ns&&(e.which==3)) return false;
  else if (ie&&(window.event.button==2))
	alert("LUGO - COMERCIAL ELÉTRICA LTDA\r--------------------------------------------\rDesculpe mas não é permitida a reprodução do\rconteúdo deste site.");
  else return true;
  }

//***********************************************************
function cleanup() {
  if (ns) document.releaseEvents(Event.MOUSEDOWN || Event.CLICK);
  }

