
function imagem(cPicture, cNome, w, h, scroll) {
w = 500;
h = 400;
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	win = window.open(cPicture, cNome, winprops)

	win.document.write ("<HTML><HEAD><TITLE>"+(cNome)+ " - Carne Light Avestruz &amp; Cia........................"+"</TITLE></HEAD>");
	win.document.write ("<Body bgcolor='#000000'>"+"<P ALIGN=CENTER>");
    win.document.write ("	<table width='100%' height='100%' border='0' cellpadding='0' cellspacing='0'><tr><td>") ;
    win.document.write ("<a href='javascript:top.close()'>");
    win.document.write (" <div align='center'>");
	win.document.write ("<IMG SRC=");
	win.document.write (cPicture);
	win.document.write (" border='0'  width='450' alt='clique para fechar' >");
	win.document.write (" <br><font face='arial' size='1' color='#FFFFFF'>clique sobre a imagem para fechar</font></div></td></tr></a></table>");
	win.document.write ("</BODY></HTML>");
	win.document.close();


if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }



	}


function url()
{
window.opener.location.href = "adm/index.asp";
self.close("index.htm","Popup");
}

function harn(theURL,winName, w, h, y) { //v2.0
w = 400;
h = 300;
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
  window.open(theURL,winName,winprops);
}


function receita(theURL,winName, w, h, scroll) { //v2.0
w = 600;
h = 450;
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
  window.open(theURL,winName,winprops);
}


// Copyright

function right(e) {
if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)){
alert("< ERROR >");
return false;
}
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3)) {
alert("< ERROR >");
return false;
}
return true;
}




// Copyright

function selecao()
{
return(false);
}
function trataTecla() {
if((event.keyCode == 121)&&(event.shiftKey)) alert(message);
}

document.onselectstart=selecao;
document.ondragstart=selecao;

document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;



