image1 = new Image();
image1.src = "images/link_page_on.gif";
image2 = new Image();
image2.src = "images/link_page_on.gif";
image3 = new Image();
image3.src = "images/link_page_on.gif";

image4 = new Image();
image4.src = "images/buttom_down_on.gif";
image5 = new Image();
image5.src = "images/buttom_up_on.gif";


function valida (nomeform)
  {
 if (nomeform.ID.value=="")
    { alert ("Por favor digite o Nome do Usuário. Obrigado!"); return false; }

if (nomeform.contato.value=="")
    { alert ("Por favor digite o Nome do Contato. Obrigado!"); return false; }
 if (nomeform.PWD.value=="")
    { alert ("Por favor digite sua Senha. Obrigado!"); return false; }
      }
	  
function validate (nomeform)  {
	
if (nomeform.cnpj.value=="") {
	alert ("\nCAMPO EM BRANCO\n\nPor favor digite o número do CNPJ de sua empresa."); return false; 
	}
	
if (nomeform.Nome.value=="") {
	alert ("\nCAMPO EM BRANCO\n\nPor favor digite a Razão Social de sua empresa."); return false; 
	}

if (nomeform.Email.value=="") {
	alert ("\nCAMPO EM BRANCO\n\nPor favor digite o seu E-mail"); return false; 
	}

if (nomeform.Email.value.indexOf('@', 0) == -1) {
	alert('\nCAMPO ERRADO\n\nO E-mail que digitou não é um endereço válido.\nPor favor digite um e-mail real.'); return false; 
	}
	if (nomeform.End.value=="") {
		alert ("\nCAMPO EM BRANCO\n\nPor favor digite o seu endereço"); return false; 
	}
	if (nomeform.Cidade.value=="") { 
		alert ("\nCAMPO EM BRANCO\n\nPor favor digite o sua Cidade."); return false; 
	}
	if (nomeform.Telefone.value=="") {
		alert ("\nCAMPO EM BRANCO\n\nPor favor digite o seu Telefone."); return false; 
	}
	if (nomeform.Contato.value=="") {
		alert ("\nCAMPO EM BRANCO\n\nPor favor digite o campo Contato."); return false; 
	}
	
var confirma=confirm("CONFIRA OS DADOS ABAIXO e aguarde o processamento.\n-----------------------------------------------------------------------------------------------------\n[  Clique OK/ENTER para confirmar, ou CANCEL/ESC para corrigir  ]\n-----------------------------------------------------------------------------------------------------\n\nCNPJ:\t"+nomeform.cnpj.value + "\nRazão Social:\t" + nomeform.Nome.value + "\nEmail:\t\t" + nomeform.Email.value +  "\nEnd.:\t\t" + nomeform.End.value + "\nCidade:\t\t" + nomeform.Cidade.value + "\nEstado:\t\t" + nomeform.Estado.value + "\nFone:\t\t" + nomeform.Telefone.value + "\nFax:\t\t" + nomeform.Fax.value + "\nContato:\t" + nomeform.Contato.value + "\nDepartamento:\t" + nomeform.depto.value);
if (!confirma) { return false; }
else { return true; }
 
}

now = new Date();
var CurHour = now.getHours();
var CurMinute = now.getMinutes();
var CurMonth = now.getMonth();
var CurDate = now.getDate();
var CurYear = now.getYear();
now = null;
if (CurMonth==0) {var month_name="Janeiro"}
if (CurMonth==1) {var month_name="Fevereiro"}
if (CurMonth==2) {var month_name="Março"}
if (CurMonth==3) {var month_name="Abril"}
if (CurMonth==4) {var month_name="Maio"}
if (CurMonth==5) {var month_name="Junho"}
if (CurMonth==6) {var month_name="Julho"}
if (CurMonth==7) {var month_name="Agosto"}
if (CurMonth==8) {var month_name="Setembro"}
if (CurMonth==9) {var month_name="Outubro"}
if (CurMonth==10) {var month_name="Novembro"}
if (CurMonth==11) {var month_name="Dezembro"}

function pop() {
var remote = null
remote = window.open('repres_completo.cfm','pop01','toolbar=no,width=400,height=500,scrollbars=yes,status=no,menubar=no,resizable=yes,maximized=yes,top=0,left=390')
}

// name - name of the cookie
// value - value of the cookie
// [expires] - expiration date of the cookie (defaults to end of current session)
// [path] - path for which the cookie is valid (defaults to path of calling document)
// [domain] - domain for which the cookie is valid (defaults to domain of calling document)
// [secure] - Boolean value indicating if the cookie transmission requires a secure transmission
// * an argument defaults when it is assigned null as a placeholder
// * a null placeholder is not required for trailing omitted arguments
function setCookie(name, value, expires, path, domain, secure) {
  var curCookie = name + "=" + escape(value) +
      ((expires) ? "; expires=" + expires.toGMTString() : "") +
      ((path) ? "; path=" + path : "") +
      ((domain) ? "; domain=" + domain : "") +
      ((secure) ? "; secure" : "");
  document.cookie = curCookie;
}

// name - name of the desired cookie
// * return string containing value of specified cookie or null if cookie does not exist
function getCookie(name) {
  var dc = document.cookie;
  var prefix = name + "=";
  var begin = dc.indexOf("; " + prefix);
  if (begin == -1) {
    begin = dc.indexOf(prefix);
    if (begin != 0) return null;
  } else
    begin += 2;
  var end = document.cookie.indexOf(";", begin);
  if (end == -1)
    end = dc.length;
  return unescape(dc.substring(begin + prefix.length, end));
}

// name - name of the cookie
// [path] - path of the cookie (must be same as path used to create cookie)
// [domain] - domain of the cookie (must be same as domain used to create cookie)
// * path and domain default if assigned null or omitted if no explicit argument proceeds
function deleteCookie(name, path, domain) {
  if (getCookie(name)) {
    document.cookie = name + "=" + 
    ((path) ? "; path=" + path : "") +
    ((domain) ? "; domain=" + domain : "") +
    "; expires=Thu, 01-Jan-70 00:00:01 GMT";
  }
}


