// JavaScript Document

function w3alertbox_sucesso() {
		var codHTML = '<p><strong>Obrigado ! </strong> Coment&aacute;rio <strong>enviado</strong> com Sucesso !</p><hr /><p>Em caso de dúvidas: <a href="mailto:contato@paulolamas.com.br" title="Nosso Email" class="classe2">contato@paulolamas.com.br</a></p>';
		w3AlertBox.show(codHTML,'MENSAGEM',true);
	}
	
function w3alertbox_critica() {
		var codHTML = '<p> &Eacute; obrigat&oacute;rio o preenchimento de todos os campos !</p><hr /><p>Em caso de dúvidas: <a href="mailto:contato@paulolamas.com.br" title="Nosso Email" class="classe2">contato@paulolamas.com.br</a></p>';
		w3AlertBox.show(codHTML,'MENSAGEM ',true);
	}

function w3alertbox2_sucesso() {
		var codHTML = '<p>Sua <strong> MENSAGEM </strong> foi enviada com sucesso, em breve entraremos em contato !</p><hr /><p>Em caso de dúvidas: <a href="contato@paulolamas.com.br" title="Nosso Email" class="classe2">contato@paulolamas.com.br</a></p>';
		w3al2.show(codHTML,'MENSAGEM ',true);
	}

function w3alertbox2_email() {
		var codHTML = '<p>Por favor, verifique seu <strong> EMAIL </strong> - Incorreto !</p><hr /><p>Em caso de dúvidas: <a href="mailto:contato@paulolamas.com.br" title="Nosso Email" class="classe2">contato@paulolamas.com.br</a></p>';
		w3al2.show(codHTML,'MENSAGEM ',true);
	}

//esconde div do form
function esconder() {
Effect.toggle('ins_visita','appear');
}

// *********************** formcomentario.php
// funciona no ie e ff
function limita(form,cont)
{
if (form.value.length>cont)
{
alert("vc passou o limite de 255 Caracteres");
document.frm2[0].txtcomentario.value=form.value.substr(0,cont);
alert(document.frm2[0].txtcomentario.value);
}
}


/*
// nova janela popup - centralizada
function new_window() {
winwidth = 300; // width of the new window
winheight = 200; // height of the new window
winleft   = 200; // just dummie values (nao alterar)
wintop    = 200; // just dummie values (nao alterar)
 
if(parseInt(navigator.appVersion)>=4)
{winleft = (screen.width / 2) - (winwidth / 2); // center the window right to left
wintop = (screen.height / 2) - (winheight / 2); // center the window top to bottom
// the values get inserted into the features parameter of the window.open command...
}
window.open("enviada.php",null,"top=" + wintop + ",left=" + winleft + ",height=" + winheight + ",width=" + winwidth+",status=no,titlebar=0,statusbar=0,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,directories=no");
}

*/
