function maisfonte(id,tipo){

	tamanho = new String(window.document.getElementById(id).style.fontSize);
	tamanho = tamanho.replace("px","");
	tamanho = parseInt(tamanho);
	if(window.document.getElementById(id).style.fontSize == "")
		if(tipo == "+")	
			window.document.getElementById(id).style.fontSize = 14;
		else
			window.document.getElementById(id).style.fontSize = 10;
	else
		if(tipo == "+"){
			if(tamanho <= 16)
				window.document.getElementById(id).style.fontSize = tamanho+2;
		}else{
			if(tamanho >= 12)
				window.document.getElementById(id).style.fontSize = tamanho-2;				
		}
}	

function destaca(a,cor){
	a.style.background=cor;
}

//VALIDA EMAIL
function checaEmail(Form) {
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(Form.email.value)){
return (true)
}
alert("Email é inválido!")
return (false)
}
function save() {
	document.execCommand("SaveAs");
}
function destaca(a,cor)
{
	a.style.background=cor;
}

function ChecaPreenchimento(form){
	for (var i=0; i < form.length; i++)
		if (form[i].value == ""){
				alert ("Campo em branco");
				return false;
			}
	return true;
}

function Popup(Url, Titulo, Width, Height, scrollbar) 
{
    window.open(Url, Titulo, 'width='+Width+', height='+Height+', scrollbars='+ scrollbar +', top='+((screen.availHeight/2)-(Height/2))+', left='+((screen.availWidth/2)-(Width/2)))
}


<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->

function initEditor(campo) {
  editor = new HTMLArea(campo);
  editor.registerPlugin(SpellChecker);
  editor.generate();
  return false;
}

function mySubmit() {
	document.edit.onsubmit(); // workaround browser bugs.
	document.edit.submit();
};
function ColorirForm(form, cor){
	if(cor == "")
		cor = "#FFFFFF";
	
	for (var i=0; i < form.length; i++)
		form[i].style.backgroundColor = cor;
};

function ValidaMsg(msg){
	if(msg == "")
		return true;
	else{
		alert(msg);
		return false;
	}
};

function formatar(src, mask) {
	var i = src.value.length;
	var saida = mask.substring(0,1);
	var texto = mask.substring(i)

	if (texto.substring(0,1) != saida) {
		src.value += texto.substring(0,1);
	}
}

function ColorirForm(form, cor){
	if(cor == "")
		cor = "#FFFFFF";
	
	for (var i=0; i < form.length; i++)
		form[i].style.backgroundColor = cor;
}

