function printPage() {
  if (window.print)
    window.print()
  else
    alert("O script não conseguiu envira o documento diretamente para impressão,\nPressione Ctrl+P ou selecione Imprimir no menu Arquivo para imprimir esta página.");
}

function gothere(mname)
{
var thisform = mname;
 if (thisform.selectsite.options[thisform.selectsite.options.selectedIndex].value != "nolink") {self.location.href=thisform.selectsite.options[thisform.selectsite.options.selectedIndex].value;}
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


function VerificaForm(){
		if (document.atendimento.nome.value==""){
		window.alert("Por favor, escreva seu nome.");
		document.atendimento.nome.focus();
		return false;
	}	
	if (document.atendimento.email2.value==""){
		window.alert("Por favor, escreva seu e-mail !");
		document.atendimento.email2.focus();
		return false;
	}
		if (document.atendimento.email2.value.indexOf ('@',0) == -1 ||  document.atendimento.email2.value.indexOf ('.',0) == -1) {
		window.alert("Por favor, escreva seu e-mail !");
		document.atendimento.email2.focus();
		return false;
	}
		if (document.atendimento.assunto.value==""){
		window.alert("Por Favor, escreva seu assunto !");
		document.atendimento.assunto.focus();
		return false;
	}
			if (document.atendimento.texto.value==""){
		window.alert("Por Favor, escreva seu comentário !");
		document.atendimento.texto.focus();
		return false;
	}
}

function statusLayer(obj){
	imagem = "img" + obj;
	layer = "div" + obj;	
	if(document.getElementById(layer).style.display == 'block'){
		document.getElementById(layer).style.display = 'none';
		document.images[imagem].src = '../Imagens/btnAbrirDetalhes.gif'
	}
	else{
		document.getElementById(layer).style.display = 'block';
		document.images[imagem].src = '../Imagens/btnFecharDetalhes.gif'
	}
}
