<!-- Inicio do formulario com ajax -->
function visualiza() {
    var usuario = document.getElementById('usuario').value;
    var senha = document.getElementById('senha').value;
    var termo = "usuario=" + usuario + "&" + "senha=" + senha;
    
	document.location='acesso.inc.php?' + termo, true

}
<!-- Fim -->
<!-- Inicio Funcao abre janela -->
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
<!-- Fim Funcao abre janela -->
<!-- Inicio Funcao valida busca de produto -->
function valida_busca(){
if (document.frmBusca.txtProduto.value.length<3) {
	alert("Informe o produto!");
	document.frmBusca.txtProduto.focus();
	return false
	}
}
<!-- Fim Funcao valida busca de produto -->
<!-- Inicio da funcao de bloqueio da tecla enter -->
function rejeitaTecla(){    
  
    var oEvent=arguments[0];

    var oEvent = oEvent ? oEvent : window.event;
    var tecla = (oEvent.keyCode) ? oEvent.keyCode : oEvent.which;
    
    if(oEvent.type=="keydown" && navigator.appName.indexOf('Internet Explorer')<0 ){
        return false;
    }
    
    for(var i=1; cod_tecla=arguments[i]; i++){
        if (tecla == cod_tecla){
            if (typeof(oEvent.preventDefault)=='function'){
                oEvent.preventDefault();
            } else {
                oEvent.returnValue = false;
                oEvent.keyCode = 0;
            }
        }
    return false;}
}
function rejeitaTeclas(){
    var tecla = 0;
    var args_eval = "e, ";
    for(var i=0; tecla=arguments[i]; i++)
        {args_eval += tecla + ", ";}
    args_eval += "0";
    eval("document.onkeypress=function(e){rejeitaTecla("+args_eval+");}\n"+
        "document.onkeydown=function(e){rejeitaTecla("+args_eval+");}");
}

rejeitaTeclas(13);
<!-- Fim da funcao de bloqueio da tecla enter -->
<!-- Inicio da funcao de numeros na digitacao -->
function fnEvnEntradaNumeros()
{
	var peCharEntrada		= String.fromCharCode(event.keyCode);

	var locStrExpression	= /[^0-9]/i;
	var locRetorno			= peCharEntrada.match(locStrExpression);

	if (locRetorno == null)
	{
		return true;
	}
	else
	{
		event.keyCode = 0;
		return false;
	}
}

function formtCep(e,src,mask) {
if(window.event) { _TXT = e.keyCode; }
else if(e.which) { _TXT = e.which; }
if(_TXT > 47 && _TXT < 58) {
 var i = src.value.length; var saida = mask.substring(0,1); var texto = mask.substring(i)
 if (texto.substring(0,1) != saida) { src.value += texto.substring(0,1); }
    return true; } else { if (_TXT != 8) { return false; }
 else { return true; }
}
}

function formtCpf(e,src,mask) {
if(window.event) { _TXT = e.keyCode; }
else if(e.which) { _TXT = e.which; }
if(_TXT > 47 && _TXT < 58) {
 var i = src.value.length; var saida = mask.substring(0,1); var texto = mask.substring(i)
 if (texto.substring(0,1) != saida) { src.value += texto.substring(0,1); }
    return true; } else { if (_TXT != 11) { return false; }
 else { return true; }
}
}

function fnMoeda(campo)
{
	var qtd = campo.value;
	if(qtd == 0){
		alert("Quantidade deve ser maior que zero!");
		campo.value = '1';
		return false;
		}
}
<!-- Fim da funcao de numeros na digitacao -->

function verifica_trabalhe(){
if (document.formulario.nome.value=="") {
	alert("O campo nome e obrigatorio!");
	document.formulario.nome.focus();
	return false;
	}

if (document.formulario.sexo.value=="0") {
	alert("O campo sexo e obrigatorio!");
	document.formulario.sexo.focus();
	return false;
	}

if (document.formulario.estadocivil.value=="0") {
	alert("O campo estado civil e obrigatorio!");
	document.formulario.estadocivil.focus();
	return false;
	}

if (document.formulario.cpf.value=="") {
	alert("O campo cpf e obrigatorio!");
	document.formulario.cpf.focus();
	return false;
	}
	
if (document.formulario.endereco.value=="") {
	alert("O campo endereco e obrigatorio!");
	document.formulario.endereco.focus();
	return false;
	}
	
if (document.formulario.end_numero.value=="") {
	alert("O campo endereco numero e obrigatorio!");
	document.formulario.end_numero.focus();
	return false;
	}
	
if (document.formulario.end_comp.value=="") {
	alert("O campo endereco complemento e obrigatorio!");
	document.formulario.end_comp.focus();
	return false;
	}
	
if (document.formulario.end_bairro.value=="") {
	alert("O campo endereco bairro e obrigatorio!");
	document.formulario.end_bairro.focus();
	return false;
	}
	
if (document.formulario.cep1.value=="") {
	alert("O campo cep e obrigatorio!");
	document.formulario.cep1.focus();
	return false;
	}
	
if (document.formulario.cep2.value=="") {
	alert("O campo cep e obrigatorio!");
	document.formulario.cep2.focus();
	return false;
	}
	
if (document.formulario.estado.value=="") {
	alert("O campo estado e obrigatorio!");
	document.formulario.estado.focus();
	return false;
	}

if (document.formulario.cidade.value=="") {
	alert("O campo cidade e obrigatorio!");
	document.formulario.cidade.focus();
	return false;
	}

if (document.formulario.email.value=="") {
	alert("O campo e-mail e obrigatorio!");
	document.formulario.email.focus();
	return false;
	}
	
if (document.formulario.empregado.value=="0") {
	alert("O campo empregado e obrigatorio!");
	document.formulario.empregado.focus();
	return false;
	}
	
if (document.formulario.motivoinclusao.value=="0") {
	alert("O campo motivo inclusao e obrigatorio!");
	document.formulario.motivoinclusao.focus();
	return false;
	}
	
if (document.formulario.cargo.value=="0") {
	alert("O campo cargo e obrigatorio!");
	document.formulario.cargo.focus();
	return false;
	}
}
<!-- Inicio da funcao de verificacao de campos -->
function verifica_cadastro(){
if (document.formCadastro.txtNome.value=="") {
	Sexy.error('<h1>Ate&ccedil;&atilde;o</h1><p>O campo nome &eacute; obrigat&oacute;rio!</p>');
	document.formCadastro.txtNome.focus();
	return false;
	}
if (document.formCadastro.txtEmail.value=="") {
	Sexy.error('<h1>Ate&ccedil;&atilde;o</h1><p>O campo e-mail &eacute; obrigat&oacute;rio!</p>');
	document.formCadastro.txtEmail.focus();
	return false;
	}
var obj = eval("document.formCadastro.txtEmail");
var txt = obj.value;
if ((txt.length != 0) && ((txt.indexOf("@") < 1) || (txt.indexOf('.') < 7))) {
	Sexy.error('<h1>Ate&ccedil;&atilde;o</h1><p>Este e-mail &eacute; inv&aacute;lido!</p>');
	document.formCadastro.txtEmail.focus()
	return false
	}
if (document.formCadastro.txtLogin.value=="") {
	Sexy.error('<h1>Ate&ccedil;&atilde;o</h1><p>O campo login &eacute; obrigat&oacute;rio!</p>');
	document.formCadastro.txtLogin.focus();
	return false;
	}
senha1 = document.formCadastro.txtSenha.value;
senha2 = document.formCadastro.txtConfSenha.value;
if (senha1=="") {
	Sexy.error('<h1>Ate&ccedil;&atilde;o</h1><p>O campo senha &eacute; obrigat&oacute;rio!</p>');
	document.formCadastro.txtSenha.focus();
	return false;
	}
if (senha2=="") {
	Sexy.error('<h1>Ate&ccedil;&atilde;o</h1><p>O campo confirma senha &eacute; obrigat&oacute;rio!</p>');
	document.formCadastro.txtConfSenha.focus();
	return false;
	}
if (senha1 != senha2) {
	Sexy.error('<h1>Ate&ccedil;&atilde;o</h1><p>Senha n&atilde;o conferem!</p>');
	document.formCadastro.txtSenha.focus();
	return false;
	}
}
function ver(){
if (document.formCadastro.txtProfissao.value=="3") {
	newInput.innerHTML = "Digite aqui: <input name='txtOutras' type='text' id='txtOutras' value='<?=$txtOutras?>' size='20' maxlength='50' />";
	}
else {
	newInput.innerHTML = "";
	return false;
	}

}
function verifica_atendimento(){
if (document.formAtendimento.nome.value=="") {
	Sexy.error('<h1>Ate&ccedil;&atilde;o</h1><p>O campo nome &eacute; obrigat&oacute;rio!</p>');
	document.formAtendimento.nome.focus();
	return false;
	}
if (document.formAtendimento.email.value=="") {
	Sexy.error('<h1>Ate&ccedil;&atilde;o</h1><p>O campo e-mail &eacute; obrigat&oacute;rio!</p>');
	document.formAtendimento.email.focus();
	return false;
	}
var obj = eval("document.formAtendimento.email");
var txt = obj.value;
if ((txt.length != 0) && ((txt.indexOf("@") < 1) || (txt.indexOf('.') < 7))) {
	Sexy.error('<h1>Ate&ccedil;&atilde;o</h1><p>Este e-mail &eacute; inv&aacute;lido!</p>');
	document.formAtendimento.email.focus()
	return false
	}
if (document.formAtendimento.telefone.value=="") {
	Sexy.error('<h1>Ate&ccedil;&atilde;o</h1><p>O campo telefone &eacute; obrigat&oacute;rio!</p>');
	document.formAtendimento.telefone.focus();
	return false;
	}
if (document.formAtendimento.assunto.value=="-") {
	Sexy.error('<h1>Ate&ccedil;&atilde;o</h1><p>O campo assunto &eacute; obrigat&oacute;rio!</p>');
	document.formAtendimento.assunto.focus();
	return false;
	}
}

<!-- Fim -->

<!-- Habilita e Desabilita Confirma
function desativa(obj) { 

nForm = document.forms['formCadastro'];

if(obj.checked){ 
    nForm.elements['btcadastrarCadastro'].disabled = false;
}else{ 
    nForm.elements['btcadastrarCadastro'].disabled = true;
} 
} 
<!-- Fim -->

<!-- Habilita e Desabilita Confirma
function desativa2(obj2) { 

nForm = document.forms['formCadastro'];

if(obj2.checked){ 
    nForm.elements['btalterar'].disabled = false;
}else{ 
    nForm.elements['btalterar'].disabled = true;
} 
} 
<!-- Fim -->

<!-- Habilita e Desabilita Confirma
function desativa3(obj) { 

nForm = document.forms['formAnuncie'];

if(obj.checked){ 
    nForm.elements['btcadastrarAnuncie'].disabled = false;
}else{ 
    nForm.elements['btcadastrarAnuncie'].disabled = true;
} 
} 
<!-- Fim -->

<!-- Exclusao da lista -->
function exclusao2(){
	if (confirm('Deseja excluir a lista?')){
		return true;
	} else {
		return false;
	}
	document.excluir2.value == "Excluir2";			
	document.excluir2.submit();
}
<!-- Fim -->

<!-- Exclusao do carrinho -->
function fechar(){
	location.href='PgResultado.php';
	}
function exclusao(){
	if (confirm('Deseja excluir o produto?')){
		return true;
	} else {
		return false;
		}
	document.Excluir.value == "Excluir";
	document.excluir.submit();
	}
function Tecla(e){
	if (document.all) // Internet Explorer
		var tecla = event.keyCode;
	else if(document.layers) // Nestcape
		var tecla = e.which;
		if (tecla > 47 && tecla < 58) // numeros de 0 a 9
			return true;
		else{
			if (tecla != 8) // backspace
				event.keyCode = 0;
					//return false;
			else
				return true;
			}
	}

function openDiv(){
	document.getElementById('DivMostra').style.visibility = "visible";	
}

function closeDiv(){
document.getElementById('DivMostra').style.visibility="hidden";
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}