function ValidaContato(){
	erro = "";
	if (document.contato.nome.value == "") {
		erro = erro + "• Preencha o campo Nome\n";
	}
	
	if (document.contato.email.value == "") {
		erro = erro + "• Preencha o campo E-mail\n";
	}
	
	if (document.contato.msg.value == "") {
		erro = erro + "• Preencha o campo Mensagem\n";
	}
	
 
	
	if (erro == "") {
		document.contato.submit();
	} else {	
		alert("Aconteceram os seguintes erros:           \n\n" + erro);	
	}

}





/**** AUMENTA/DIMINUI FONTE ****/
//Specify spectrum of different font sizes:
var szs = new Array( 'xx-small','x-small','small','medium','large','x-large','xx-large' );
var startSz = 2;

function ts( trgt,inc ) {
    if (!document.getElementById) return
    var d = document,cEl = null,sz = startSz,i,j,cTags;
    
    sz += inc;
    if ( sz < 0 ) sz = 0;
    if ( sz > 4 ) sz = 4;
    startSz = sz;
        
    if ( !( cEl = d.getElementById( trgt ) ) ) cEl = d.getElementsByTagName( trgt )[ 0 ];

    cEl.style.fontSize = szs[ sz ];

    for ( i = 0; i < tgs.length; i++ ) {
        cTags = cEl.getElementsByTagName( tgs[ i ] );
        for ( j = 0; j < cTags.length; j++ ) cTags[ j ].style.fontSize = szs[ sz ];
    } }

//Specify affected tags. Add or remove from list:
var tgs = new Array( 'TDConteudo','td','tr');
/***********************************************************
 FUNÇÕES FLASH
 **********************************************************/
 if(Browser == undefined){
	var Browser = {
		isIE: function(){ return (window.ActiveXObject && document.all && navigator.userAgent.toLowerCase().indexOf("msie") > -1  && navigator.userAgent.toLowerCase().indexOf("opera") == -1) ? true : false; }
	}
}

var Flash = function(movie, id, width, height, initParams){

	this.html = "";
	this.attributes = this.params = this.variables = null;
	
	this.variables = new Array();
	this.attributes = {
		"classid": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
		"codebase": "http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab#version=8,0,22,0",
		"type": "application/x-shockwave-flash"
	}
	this.params = { "pluginurl": "http://www.macromedia.com/go/getflashplayer_br" };
	
	if(movie) {
		this.addAttribute("data", movie);
		this.addParameter("movie", movie);
	}
	
	if(id && id != null) this.addAttribute("id", id);
	if(width) this.addAttribute("width", width);
	if(height) this.addAttribute("height", height);
	
	if(initParams != undefined){
		for(var i in initParams){
			this.addParameter(i.toString(), initParams[i]);
		}
	}
	
}
Flash.version = "1.2b";
Flash.getObjectByExceptions = function(obj, excep){
	var tempObj = {};
	for(var i in obj){
		var inclui = true;
		for(var j=0; j<excep.length; j++)
			if(excep[j] == i.toString()) { inclui = false; break; };
		if(inclui) tempObj[i] = obj[i];
	}
	return tempObj;
}
Flash.prototype.addAttribute = function(prop, val){ this.attributes[prop] = val; }
Flash.prototype.addParameter = function(prop, val){ this.params[prop] = val; }
Flash.prototype.addVariable = function(prop, val){ this.variables.push([prop, val]); }
Flash.prototype.getFlashVars = function(){
	var tempString = new Array();
	
	for(var i=0; i<this.variables.length; i++)
		tempString.push(this.variables[i].join("="));
		
	return tempString.join("&");
}
Flash.prototype.toString = function(){
	
	this.params.flashVars = this.getFlashVars();
	if(Browser.isIE()){
		//IE
		this.html = "<ob" + "ject";
		var attr = Flash.getObjectByExceptions(this.attributes, ["type", "data"]);
		for(var i in attr) if(i.toString() != "extend") this.html += " " + i.toString() + " = \"" + attr[i] + "\"";
		this.html += "> ";
		var params = Flash.getObjectByExceptions(this.params, ["pluginurl", "extend"]);
		for(var i in params) if(i.toString() != "extend") this.html += "<param name=\"" + i.toString() + "\" value=\"" + params[i] + "\" /> ";
		this.html += " </obj" + "ect>";
	} else {
		//non-IE
		this.html = "<!--[if !IE]> <--> <obj" + "ect";
		var attr = Flash.getObjectByExceptions(this.attributes, ["classid", "codebase"]);
		for(var i in attr) if(i.toString() != "extend") this.html += " " + i.toString() + " = \"" + attr[i] + "\"";
		this.html += "> ";
		var params = Flash.getObjectByExceptions(this.params, ["extend"]);
		for(var i in params) if(i.toString() != "extend") this.html += "<param name=\"" + i.toString() + "\" value=\"" + params[i] + "\" /> ";
		this.html += " </obj" + "ect> <!--> <![endif]-->";
	}

	return this.html;
	
}
Flash.prototype.write = Flash.prototype.outIn = Flash.prototype.writeIn = function(w){
	if(typeof w == "string" && document.getElementById) var w = document.getElementById(w);
	if( w != undefined && w ) w.innerHTML = this.toString();
	else document.write( this.toString() );
}
/*======================================
FUNCAO PARA MOVIMENTAR UM OBJETO NA TELA
========================================*/
	var offsetX = 0
	var offsetY = 0
	var selectedObj
	var frontObj
	
	// positioning an object at a specific pixel coordinate
	function shiftTo(obj, x, y) {
		obj.style.pixelLeft = x
		obj.style.pixelTop = y
	}
	
	// setting the z-order of an object
	function bringToFront(obj) {
		if (frontObj) {
			frontObj.style.zIndex = 0
		}
		frontObj = obj
		frontObj.style.zIndex = 1
	}
	
	// set global var to a reference to dragged element
	function setSelectedObj() {
		var imgObj = window.event.srcElement
		if (imgObj.id.indexOf("TB") == 2) {
			selectedObj = imgObj
			bringToFront(selectedObj)
			return
		}
		selectedObj = null
		return
	}
	
	// do the dragging (called repeatedly by onMouseMove)
	function dragIt() {
		if (selectedObj) {
			shiftTo(selectedObj, (event.clientX - offsetX), (event.clientY - offsetY))
			return false
		}
	}
	
	// set global vars and turn on mousemove trapping (called by onMouseDown)
	function engage(obj) {
		selectedObj = obj
		bringToFront(selectedObj)
		if (selectedObj) {
			document.onmousemove = dragIt
			offsetX = window.event.offsetX - document.body.scrollLeft
			offsetY = window.event.offsetY - document.body.scrollTop
		}
	}
	
	// restore everything as before (called by onMouseUp)
	function release(obj) {
		selectedObj = obj
		bringToFront(selectedObj)
		if (selectedObj) {
			document.onmousemove = null
			selectedObj = null
		}
	}
	//
	function currencyFormat(fld, milSep, decSep, e) {
		var milSep = ',';
		var decSep = '.';
		var sep = 0;
		var key = '';
		var i = j = 0;
		var len = len2 = 0;
		var strCheck = '0123456789';
		var aux = aux2 = '';
		var whichCode = (window.Event) ? e.which : e.keyCode;
		if (whichCode == 13) return true;
		key = String.fromCharCode(whichCode);
		if (strCheck.indexOf(key) == -1) return false;
		len = fld.value.length;
		for(i = 0; i < len; i++)
		if ((fld.value.charAt(i) != '0') && (fld.value.charAt(i) != decSep)) break;
		aux = '';
		for(; i < len; i++)
		if (strCheck.indexOf(fld.value.charAt(i))!=-1) aux += fld.value.charAt(i);
		aux += key;
		len = aux.length;
		if (len == 0) fld.value = '';
		if (len == 1) fld.value = '0'+ decSep + '0' + aux;
		if (len == 2) fld.value = '0'+ decSep + aux;
		if (len > 2) {
		aux2 = '';
		for (j = 0, i = len - 3; i >= 0; i--) {
		if (j == 3) {
		aux2 += milSep;
		j = 0;
		}
		aux2 += aux.charAt(i);
		j++;
		}
		fld.value = '';
		len2 = aux2.length;
		for (i = len2 - 1; i >= 0; i--)
		fld.value += aux2.charAt(i);
		fld.value += decSep + aux.substr(len - 2, len);
		}
		return false;
	}
	//
	function hourFormat(fld,e) {
		var strCheck = '0123456789';
		var key='';
		var whichCode = (window.Event) ? e.which : e.keyCode;
		if (whichCode == 13) return true;
		key = String.fromCharCode(whichCode);
		if (strCheck.indexOf(key) == -1) return false;
		len = fld.value.length;
		for (i=0;i<len;i++){
			if (i != 2 ){
				fld.value += fld.value.charAt(i);
			}else{
				fld.value += ":"+fld.value.charAt(i);
			}
		}
		return false;
	}