﻿function MouseOverOut(parObj, objImage){
	document.getElementById(parObj).src = objImage;
}
function carregarImagens()
{
  preloadImages('/Imagens/Botoes/cmdBemCasadosOn.jpg', '/Imagens/Botoes/cmdCupCakes.jpg', '/Imagens/Botoes/cmdParceirosOn.jpg', '/Imagens/Botoes/cmdSobreArtesanaleOn.jpg', '/Imagens/Botoes/cmdContatoOn.jpg');
}
function preloadImages()
{
  var d=document; if(d.images){ if(!d.p) d.p=new Array();
  var i,j=d.p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
  if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}
}

function carregarFundoPrincipal()
{
  var body = document.getElementById('body');
  body.className = "cssFundoPrincipalHome";
}
function carregarFundoPrincipalInterno()
{
  var body = document.getElementById('body');
  body.className = "cssFundoPrincipalInterno";
}
function validarCampos()
{
  if(document.getElementById('ctl05_txtNome').value == '')
  {
    document.getElementById('ctl05_lblMsg').innerText = 'informe seu nome';
    document.getElementById('ctl05_txtNome').focus();
    event.returnValue=false;return false;
  }
  if(document.getElementById('ctl05_txtEmail').value == '')
  {
    document.getElementById('ctl05_lblMsg').innerText = 'informe seu e-mail';
    document.getElementById('ctl05_txtEmail').focus();
    event.returnValue=false;return false;
  }
  if(document.getElementById('ctl05_txtEmail').value.indexOf("@") < 1)
  {
    document.getElementById('ctl05_lblMsg').innerText = 'e-mail inválido';
    document.getElementById('ctl05_txtEmail').focus();
    event.returnValue=false;return false;
  }
  if(document.getElementById('ctl05_txtComentarios').value == '')
  {
    document.getElementById('ctl05_lblMsg').innerText = 'informe seus comentários';
    document.getElementById('ctl05_txtComentarios').focus();
    event.returnValue=false;return false;
  }
}

function mOvrOutCssTextBox(parObj,elementoCss)
{
  if(parObj)
  {
    parObj.className = elementoCss;
  }
}

function irURL(parURL)
{
  window.open(parURL, "_blank");
}