<!-- ####################################################################################
<!-- ABRE FOTO
<!-- ####################################################################################
function openPictureWindow_Fever(imageType,imageName,imageWidth,imageHeight,alt,posLeft,posTop) {  // v4.01
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	if (imageType == "swf"){
	newWindow.document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
	newWindow.document.write('<param name=movie value=\"'+imageName+'\"><param name=quality value=high>');
	newWindow.document.write('<embed src=\"'+imageName+'\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
	newWindow.document.write('</embed></object>');	}else{
	newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"'+alt+'\">'); 	}
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}
<!-- ####################################################################################
<!-- ####################################################################################
<!-- ####################################################################################
function MM_setTextOfTextfield(objName,x,newText) { //v3.0
  var obj = MM_findObj(objName); if (obj) obj.value = newText;
}
<!-- ####################################################################################
<!-- 
<!-- ####################################################################################
function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' deve conter um endereço de e-mail válido.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += 'O campo '+nm+' é de preenchimento obrigatório.\n'; }
  } if (errors) alert('Erros ocorreram:\n\n'+errors);
  document.MM_returnValue = (errors == '');
}
<!-- ####################################################################################
<!-- 
<!-- ####################################################################################

function MM_findObj(n, d) { //v4.01
  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 MUDA_TEXTO_FORMULARIO(objName,x,newText) { //v3.0
  var obj = MM_findObj(objName); if (obj) obj.value = newText;
}
<!-- ####################################################################################
<!-- 
<!-- ####################################################################################
function high2(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",100)
}
function low2(which2){
clearInterval(highlighting)
which2.filters.alpha.opacity=60
}
function highlightit(cur2){
if (cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=100
else if (window.highlighting)
clearInterval(highlighting)
}
<!-- ####################################################################################
<!-- MOSTRA OU OCULTA UM MENU
<!-- ####################################################################################

function mostrar(EVENTOS){
document.getElementById(EVENTOS).style.visibility="visible";
}
function ocultar(EVENTOS){
document.getElementById(EVENTOS).style.visibility="hidden";
}

function mostrar(PRODUTOS){
document.getElementById(PRODUTOS).style.visibility="visible";
}
function ocultar(PRODUTOS){
document.getElementById(PRODUTOS).style.visibility="hidden";
}
<!-- ####################################################################################
<!-- CORREÇÃO DE PNG IE6
<!-- ####################################################################################
    $(document).ready(function(){ 
        $(document).pngFix(); 
    }); 


		$(document).ready(function(){
		$('div.examples').pngFix( );
	});
		
<!-- ####################################################################################
<!-- CORREÇÃO DE COR SCROLLBAR FIREFOX
<!-- ####################################################################################
function selectCode(f){
document.forms[f].elements[0].focus();
document.forms[f].elements[0].select();
}
function changeScrollbarColor(C){
  if (document.all){
    document.body.style.scrollbarBaseColor = C
  }  
}
<!-- ####################################################################################
<!-- CORREÇÃO DE COR SCROLLBAR FIREFOX
<!-- ####################################################################################



