var w=1
var h=1
function pegatrail() {
if (document.getElementById) return document.getElementById("foto").style
else if (document.all) return document.all.foto.style
}
function bodyok() {
return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function esconder() {
document.onmousemove=""
pegatrail().visibility="hidden"
pegatrail().left=-1000
pegatrail().top=0
}
function mostrar(arquivo) {
w=250
h=187
pegatrail().visibility="visible"
pegatrail().width=w+"px"
pegatrail().height=h+"px"
document.getElementById("miniatura").innerHTML= "<img src='"+arquivo+"'/>"; 
document.onmousemove=seguirmouse
}
function seguirmouse(e) {
var xcoord=1
var ycoord=1
if (typeof e != "undefined") {
xcoord+=e.pageX
ycoord+=e.pageY
}
else if (typeof window.event !="undefined") {
xcoord+=bodyok().scrollLeft+event.clientX
ycoord+=bodyok().scrollTop+event.clientY
}
var docwidth=document.all? bodyok().scrollLeft+bodyok().clientWidth : pageXOffset+window.innerWidth-15
var docheight=document.all? Math.max(bodyok().scrollHeight, bodyok().clientHeight) : Math.max(document.body.offsetHeight, window.innerHeight)
if (xcoord+w+3>docwidth)
xcoord=xcoord-w-(20*2)
if (ycoord-bodyok().scrollTop+h>bodyok().clientHeight)
ycoord=ycoord-h-20;
pegatrail().left=xcoord+"px"
pegatrail().top=ycoord+"px"
}

function checaform(){
	
	if(document.form1.NOME.value=="" )
	{
		alert( "Digite o seu Nome!" );
			document.form1.NOME.focus();
				return false;
	}

	if(document.form1.EMAIL.value=="" )
	{
		alert( "Digite o seu E-mail" );
			document.form1.EMAIL.focus();
				return false;
	}

	if(document.form1.MENSAGEM.value=="" )
	{
		alert( "Digite a sua Mensagem" );
			document.form1.MENSAGEM.focus();
				return false;
	}
	
return true;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

