function openGuia()
{
  el = document.getElementById("comboGuia");
  if (el[el.selectedIndex].value != ""){
  window.location = "cotar_veiculos.asp?search=" + escape(el[el.selectedIndex].text) + "&submit=" + el[el.selectedIndex].value;
}
}


function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
if (window.location.href == "http://www.verygood.com.br/"){
	MM_goToURL('parent','http://www.verygood.com.br/verygood')
}

function openGuiaMoto()
{
  el = document.getElementById("comboGuia");
  if (el[el.selectedIndex].value != ""){
  window.location = "cotar_motos.asp?search=" + escape(el[el.selectedIndex].text) + "&submit=" + el[el.selectedIndex].value;
}
}


function openEstado()
{
  el = document.getElementById("comboEstado");
  if (el[el.selectedIndex].value != ""){
  window.location = "buscador_estado.asp?search=" + escape(el[el.selectedIndex].text) + "&submit=" + el[el.selectedIndex].value;
}
}
	
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function simounao(){
var campo = document.forms.frmInterSaerch;
if ( campo.search.value == ' ::.Digite o Nome ::' ) {
    	alert('Favor digitar o que procura.');
    	campo.search.focus();
    	return false;
  	}
}

function limpa(id){
	var campo = document.forms.frmInterSaerch;
	if (id == 1) campo.search.value = "";
	
    var campo2 = document.forms.form1;
	if (id == 2) campo2.txtmm.value = "";
	
	
		}
function carrega(id){
	var campo = document.forms.frmInterSaerch;
	if (id == 1 && campo.search.value=="") campo.search.value = " ::.Digite o Nome";

    var campo2 = document.forms.form1;
	if (id == 2 && campo2.txtmm.value=="") campo2.txtmm.value = " ::.Digite o Email";
	}
	
	function Verificar()
{var ctrl=window.event.ctrlKey;
var tecla=window.event.keyCode;
if (ctrl && tecla==67) {event.keyCode=0; event.returnValue=false;}
if (ctrl && tecla==86) {event.keyCode=0; event.returnValue=false;}}

function semcaracteresespeciais(caracter) {
if(document.all) { 
  var tecla = event.keyCode;
}else {
  if(document.layers) { 
  var tecla = caracter.which;
 }
}
 if((tecla == 35) || (tecla == 128) || (tecla == 146) || (tecla == 134) || (tecla == 34) || (tecla == 39) || (tecla == 60) || (tecla == 62) || (tecla == 244) || (tecla == 38) || (tecla == 36) || (tecla == 248) || (tecla == 170) || (tecla == 209) || (tecla == 163) || (tecla == 123) || (tecla == 162) || (tecla == 182) || (tecla == 228) || (tecla == 44) || (tecla == 218) || (tecla == 43) || (tecla == 167) || (tecla == 203) || (tecla == 222) || (tecla == 167) || (tecla == 198) || (tecla == 230) || (tecla == 244) || (tecla == 165) || (tecla == 208) || (tecla == 169) || (tecla == 199) || (tecla == 197) || (tecla == 191) || (tecla == 186) || (tecla == 171) || (tecla == 243) || (tecla == 123) || (tecla == 246) || (tecla == 220) || (tecla == 131) || (tecla == 59) || (tecla == 45) || (tecla == 46) || (tecla == 47) || (tecla == 92) || (tecla == 58) || (tecla == 63) || (tecla == 124) || (tecla == 42) || (tecla == 195) || (tecla == 132) || (tecla == 216)) { 
  return false;
 }
 else { return true; }

}