if (window.Event) 
document.captureEvents(Event.MOUSEUP); 
function nocontextmenu() 
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
function norightclick(e) 
{
if (window.Event) 
{
if (e.which == 2 || e.which == 3)
return false;
}
else
if (event.button == 2 || event.button == 3)
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
}
document.oncontextmenu = nocontextmenu;  
document.onmousedown = norightclick;  
function P7_JumpMenu(selObj,restore){ 
var theFullString = selObj.options[selObj.selectedIndex].value;
if (restore) selObj.selectedIndex=0;
var theLength = theFullString.length;
var endPos = theFullString.lastIndexOf("~");
var theUrl, theTarget, theParent;
if (endPos > 0) {theUrl = theFullString.substring(0,endPos);}
else {theUrl = theFullString;}
endPos++
if (endPos < theLength) {theTarget = theFullString.substring(endPos,theLength)}
else {theTarget = "window:Main";}
if (theTarget == "window:New") {window.open(theUrl);}
else if (theTarget == "window:Main") {eval("parent.location='"+theUrl+"'");}
else {eval("parent.frames[\'"+theTarget+"\'].location='"+theUrl+"'");}
}
function MM_reloadPage(init) {
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
function MM_preloadImages() {
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) {
  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_GD() {
  var i,p,v,obj,args=MM_GD.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=='SS')?'visible':(v=='HH')?'hidden':v; }
    obj.visibility=v; }
}
function MM_showHideLayers() {
  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 GD_MM(targ,selObj,restore){
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function dbPOP(Path,Quem,Hori,Vert) {
	var esqu = (screen.width - Hori) / 2;
	var topo = (screen.height - Vert) / 2;
	window.open(Path,Quem,'toolbar=no,location=no,directories=no,Status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,top=' + topo + ',left=' + esqu + ',width=' + Hori + ',height=' + Vert);
}
function dbWEB(Path,Quem,Hori,Vert) {
	var esqu = (screen.width - Hori) / 2;
	var topo = (screen.height - Vert) / 2;
	window.open(Path,Quem,'toolbar=no,location=no,directories=no,Status=no,menubar=no,scrollbars=auto,resizable=no,copyhistory=no,top=' + topo + ',left=' + esqu + ',width=' + Hori + ',height=' + Vert);
}
function validaForm(){
vaGD = document.formMAIL;
if (vaGD.foNOME.value == ""){
alert("Informe o seu nome!");
vaGD.foNOME.focus();
return false;
}
if (vaGD.foMAIL.value == ""){
alert("informe o seu e-mail!");
vaGD.foMAIL.focus();
return false;
}
parte1 = vaGD.foMAIL.value.indexOf("@");
parte2 = vaGD.foMAIL.value.indexOf(".");
parte3 = vaGD.foMAIL.value.length;
if (!(parte1 >= 3 && parte2 >= 6 && parte3 >= 9)) {
alert ("Informe um e-mail válido!");
vaGD.foMAIL.focus();
return false;
}
if (vaGD.foFALA.value == ""){
alert("O que você quer falar conosco?");
vaGD.foFALA.focus();
return false;
}
}
