	function Teste(){
		
		testando = document.getElementById('teste').style.top;
		
		alert(testando);	
		
	}



//FUNÇÕES DA HOME///////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function ActiveAba()
  {
	//alert(document.getElementById('abaNovos').className);
	document.getElementById('abaNovos').className = "aba2";
  }

//window.onload = function ActiveAba();

function ActiveAbaVolta()
  {
	document.getElementById('abaNovos').className = "aba";
  }



function popup(Largura, Altura, Nome, Endereco){

	window.open(Endereco,Nome,'height='+Altura+',width='+Largura+'resizable=no,scrollbars=no,toolbar=no,location=no,status=no,directories=no');

}

function popupscroll(Largura, Altura, Nome, Endereco){

	window.open(Endereco,Nome,'height='+Altura+',width='+Largura+'resizable=no,scrollbars=yes,toolbar=no,location=no,status=no,directories=no');

}

//FUNÇÕES ABAS TOPO///////////////////////////////////////////////////////////////////////////////////////////////////////////////////


		function AbaLojas(){
	
		document.getElementById("oplojas").style.display = "block";
		document.getElementById("oplojas").style.left = 342;
		
		document.getElementById("opnacionais").style.display = "none";
		document.getElementById("opmotos").style.display = "none";
		document.getElementById("opimportados").style.display = "none";
	}


		function AbaNacionais(){
	
		document.getElementById("opnacionais").style.display = "block";
		document.getElementById("opnacionais").style.left = 433;
		
		document.getElementById("opimportados").style.display = "none";
		document.getElementById("opmotos").style.display = "none";
		document.getElementById("oplojas").style.display = "none";
		
	}
	
		function AbaImportados(){
	
		document.getElementById("opimportados").style.display = "block";
		document.getElementById("opimportados").style.left = 479;
		
		document.getElementById("opnacionais").style.display = "none";
		document.getElementById("opmotos").style.display = "none";
		document.getElementById("oplojas").style.display = "none";
	}
	
		function AbaMotos(){
			

		document.getElementById("opmotos").style.display = "block";
		document.getElementById("opmotos").style.left = 600;
		
		/*document.getElementById("opimportados").style.display = "none";
		document.getElementById("opnacionais").style.display = "none";
		document.getElementById("oplojas").style.display = "none";*/
	}
	
		function AbaSemiNovos(){
		
		document.getElementById("opmotos").style.display = "none";
		document.getElementById("opimportados").style.display = "none";
		document.getElementById("opnacionais").style.display = "none";
		document.getElementById("oplojas").style.display = "none";		
		
			
		//window.open('http://www.itavemaplus.com.br');
		window.location.replace('Seminovos.aspx');
		
	}
	
		function AbaBlindados(){
			
		document.getElementById("opmotos").style.display = "none";
		document.getElementById("opimportados").style.display = "none";
		document.getElementById("opnacionais").style.display = "none";
		document.getElementById("oplojas").style.display = "none";
		
		//window.open('http://www.itavemablindados.com.br/');
		window.location.replace('Blindados.aspx');

	}


//ITAVEMA HELP///////////////////////////////////////////////////////////////////////////////////////////////////////////////////

		


    function Ajudas(idajuda, idleft, idtop) {
    
		var ajudas = "ajuda1,ajuda2,ajuda_buscarapida_carros,ajuda_buscarapida_motos,ajuda_buscavalores";
		
		objs2 = ajudas.split(",");
		for(i=0; i<objs2.length; i++)
		{
			document.getElementById(objs2[i]).style.display = "none";
		}
		
		document.getElementById(idajuda).style.display = "block";
		document.getElementById(idajuda).style.left = idleft;
		document.getElementById(idajuda).style.top = idtop;
		
	}
	


//MINHA LISTA/////////////
function Maximizar(){
	
        if(document.getElementById("minimizar").innerHTML == "minimizar lista"){
			
				document.getElementById("minimizar").innerHTML = "maximizar lista";
			
			}
			
		else{
			
				document.getElementById("minimizar").innerHTML = "minimizar lista";
			
			}
		
	}
	
//SEMINOVOS/////////////

function Maximizar2(){
	
        if(document.getElementById("minimizar2").innerHTML == "minimizar seminovos"){
			
				document.getElementById("minimizar2").innerHTML = "maximizar seminovos";
			
			}
			
		else{
			
				document.getElementById("minimizar2").innerHTML = "minimizar seminovos";
			
			}
		
	}



// FUNÇÕES DA BUSCA ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function Financiamento(cod){

	document.getElementById("simular_1" + cod).style.display = "block";
	
	document.getElementById("avista" + cod).style.display = "none";
	document.getElementById("consorcio" + cod).style.display = "none";
	document.getElementById("usado" + cod).style.display = "none";
	document.getElementById("troco" + cod).style.display = "none";

}

function Avista(cod){

	document.getElementById("avista" + cod).style.display = "block";

	document.getElementById("simular_1" + cod).style.display = "none";
	document.getElementById("consorcio" + cod).style.display = "none";
	document.getElementById("usado" + cod).style.display = "none";
	document.getElementById("troco" + cod).style.display = "none";

}

function Consorcio(cod){

	document.getElementById("consorcio" + cod).style.display = "block";

	document.getElementById("avista" + cod).style.display = "none";
	document.getElementById("simular_1" + cod).style.display = "none";
	document.getElementById("usado" + cod).style.display = "none";
	document.getElementById("troco" + cod).style.display = "none";

}

function Usado(cod){
	
	document.getElementById("usado" + cod).style.display = "block";

	document.getElementById("avista" + cod).style.display = "none";
	document.getElementById("consorcio" + cod).style.display = "none";
	document.getElementById("simular_1" + cod).style.display = "none";
	document.getElementById("troco" + cod).style.display = "none";

}

function Troco(cod){
	
	document.getElementById("troco" + cod).style.display = "block";

	document.getElementById("avista" + cod).style.display = "none";
	document.getElementById("consorcio" + cod).style.display = "none";
	document.getElementById("usado" + cod).style.display = "none";
	document.getElementById("simular_1" + cod).style.display = "none";

}

/* simular_1 */


function Aparece(div){
	
		document.getElementById(div).style.display = "block";

}

function Desaparece(div){
	
		document.getElementById(div).style.display = "none";
}

function DesapareceItens(src)
{
	objs = src.split(",")
	for(i=0; i<objs.length; i++)
	{
		document.getElementById(objs[i]).style.display = "none";
	}
}

function ApareceItens(src)
{
	objs = src.split(",")
	for(i=0; i<objs.length; i++)
	{
		document.getElementById(objs[i]).style.display = "none";
	}
}


function ApareceDetalhe(codDiv){
	
		document.getElementById("normal" + codDiv).style.display = "none";
		document.getElementById("detalhe" + codDiv).style.display = "block";

}


function VoltaDetalhe(codDiv){
	
		document.getElementById("normal" + codDiv).style.display = "block";
		document.getElementById("detalhe" + codDiv).style.display = "none";

}

function DiplayLoja(obj){
	
	if(document.getElementById(obj).style.display == "none")
	{
	    document.getElementById(obj).style.display = "block";
	}
	else
	{
	    document.getElementById(obj).style.display = "none";
	}
		

}

function formatarData(obj, event) {
    if (isIE) {
        nTecla = event.keyCode; 
    }
    else {
        nTecla = event.which;
    }
    
    var chrDigito = String.fromCharCode(nTecla);
    
    if(isNaN(chrDigito) || chrDigito == " ") { 
        return false;
    }
    
    if(obj.value.length == 10) {
        return false;
    }

    if(obj.value.length == 2 || obj.value.length == 5) {
        obj.value = obj.value + "/";
    }
    
    obj.value = obj.value + chrDigito;
    return false;
}

function mascara_data(d){ 
    var mydata = ''; 
    data = d.value; 
    mydata = mydata + data; 
    
    if (mydata.length == 2){ 
        mydata = mydata + '/'; 
        d.value = mydata; 
    } 
    
    if (mydata.length == 5){ 
        mydata = mydata + '/'; 
        d.value = mydata; 
    } 
    
    if (mydata.length == 10){ 
        verifica_data(d); 
    } 
}


//function formatarData(obj,event) {

//    if(isIE) { // Internet Explorer
//        nTecla = event.keyCode; 
//        }
//        else if(isWin) { // Nestcape
//            
//            nTecla = event.which;//evtKeyPress.which;
//	    }
//	var chrDigito = String.fromCharCode(nTecla);    
//    //var chrDigito = String.fromCharCode(event.keyCode);
//    if(isNaN(chrDigito) || chrDigito == " ") {return false;}
//    if(obj.value.length == 10) {return false;}

//    if(obj.value.length == 2 || obj.value.length == 5) {
//        obj.value = obj.value + "/";
//    }
//    obj.value = obj.value + chrDigito;
//    return false;
//}

function validarData(obj) {
    if(obj.value != "") 
    {
      if(isNaN(Date.parse(obj.value)) || Date.parse(obj.value) < -900000000000) 
      {
        alert("Data inválida."); 
        obj.focus();
      }
    }
}

function validaDat(campo) {
	var date = campo.value;
	var ardt = new Array;
	var ExpReg = new RegExp("(0[1-9]|[12][0-9]|3[01])/(0[1-9]|1[012])/[12][0-9]{3}");
	
	ardt = date.split("/");
	erro = false;
	
	if (date.search(ExpReg)==-1) {
		erro = true;
	}
	else if (((ardt[1]==4)||(ardt[1]==6)||(ardt[1]==9)||(ardt[1]==11))&&(ardt[0]>30)) {
		erro = true;
	}
	else if (ardt[1]==2) {
		if ((ardt[0]>28)&&((ardt[2]%4)!=0)) {
			erro = true;
		}
		if ((ardt[0]>29)&&((ardt[2]%4)==0)) {
			erro = true;
		}
	}
	
	if (erro && date != "") {
		alert("Data invalida");
		campo.focus();
		campo.value = "";
		return false;
	}
	
	return true;
}

var expandido = 0;
 function expandirTr(obj, id) 
 {
   if( id.length > 0 )
   {    
    expandido = id;
    MM_effectBlind(id, 1000, '0%', '100%', true);
    var botao = obj; //event.srcElement;
    botao.src = "Imagens/Botoes/" + (botao.src.indexOf("menos.png") > -1 ? "mais.png" : "menos.png");
    botao.alt = botao.alt.indexOf("Expandir") > - 1 ? "Recolher" : "Expandir" ;
   }   
 }
 
 
  function validarNumero(obj,event) {
        if(isIE) { // Internet Explorer
        nTecla = event.keyCode; 
        }
        else if(isWin) { // Nestcape
            
            nTecla = event.which;//evtKeyPress.which;
	    }
    	
        var chrDigito = String.fromCharCode(nTecla);
        if(isNaN(chrDigito) || chrDigito == " ") {return false;}
        return true;
    }
    
    

/*function formatarData(event, obj) {
 	if(isIE) { // Internet Explorer
        nTecla = event.keyCode; 
    }
    else if(isWin) { // Nestcape
        
        nTecla = event.which;//evtKeyPress.which;
	}
	
    var chrDigito = String.fromCharCode(nTecla);
	    
    if(isNaN(chrDigito) || chrDigito == " ") {return false;}
    if(obj.value.length == 10) {return false;}

    if(obj.value.length == 2 || obj.value.length == 5) {
        obj.value = obj.value + "/";
    }
    obj.value = obj.value + chrDigito;
    return false;
}

function validarData(obj) {
    if(obj.value == "") {alert('Data Inválida!');}
    else {
        if(isNaN(Date.parse(obj.value)) || Date.parse(obj.value) < 0) {alert("Data inválida."); obj.focus();}
        //else { alert('buscar'); }
    }
}
*/

	
//
// getPageSize()
// Returns array with page width, height and window width, height
// Core code from - quirksmode.com
// Edit for Firefox by pHaez
//
function getPageSize(){
	
	var xScroll, yScroll;
	
	if (window.innerHeight && window.scrollMaxY) {	
		xScroll = window.innerWidth + window.scrollMaxX;
		yScroll = window.innerHeight + window.scrollMaxY;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		xScroll = document.body.scrollWidth;
		yScroll = document.body.scrollHeight;
	} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
		xScroll = document.body.offsetWidth;
		yScroll = document.body.offsetHeight;
	}
	
	var windowWidth, windowHeight;
	
//	console.log(self.innerWidth);
//	console.log(document.documentElement.clientWidth);

	if (self.innerHeight) {	// all except Explorer
		if(document.documentElement.clientWidth){
			windowWidth = document.documentElement.clientWidth; 
		} else {
			windowWidth = self.innerWidth;
		}
		windowHeight = self.innerHeight;
	} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
		windowWidth = document.documentElement.clientWidth;
		windowHeight = document.documentElement.clientHeight;
	} else if (document.body) { // other Explorers
		windowWidth = document.body.clientWidth;
		windowHeight = document.body.clientHeight;
	}	
	
	// for small pages with total height less then height of the viewport
	if(yScroll < windowHeight){
		pageHeight = windowHeight;
	} else { 
		pageHeight = yScroll;
	}

//	console.log("xScroll " + xScroll)
//	console.log("windowWidth " + windowWidth)

	// for small pages with total width less then width of the viewport
	if(xScroll < windowWidth){	
		pageWidth = xScroll;		
	} else {
		pageWidth = windowWidth;
	}
//	console.log("pageWidth " + pageWidth)

	arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight) 
	return arrayPageSize;
}

// -----------------------------------------------------------------------------------

function formataValor(campo, evt) {
    //1.000.000,00
    var xPos = PosicaoCursor(campo);
    evt = getEvent(evt);
    var tecla = getKeyCode(evt);
    if (!teclaValida(tecla))
        return;

    vr = campo.value = filtraNumeros(filtraCampo(campo));
    if (vr.length > 0) {
        vr = parseFloat(vr.toString()).toString();
        tam = vr.length;

        if (tam == 1)
            campo.value = "0,0" + vr;
        if (tam == 2)
            campo.value = "0," + vr;
        if ((tam > 2) && (tam <= 5)) {
            campo.value = vr.substr(0, tam - 2) + ',' + vr.substr(tam - 2, tam);
        }
        if ((tam >= 6) && (tam <= 8)) {
            campo.value = vr.substr(0, tam - 5) + '.' + vr.substr(tam - 5, 3) + ',' + vr.substr(tam - 2, tam);
        }
        if ((tam >= 9) && (tam <= 11)) {
            campo.value = vr.substr(0, tam - 8) + '.' + vr.substr(tam - 8, 3) + '.' + vr.substr(tam - 5, 3) + ',' + vr.substr(tam - 2, tam);
        }
        if ((tam >= 12) && (tam <= 14)) {
            campo.value = vr.substr(0, tam - 11) + '.' + vr.substr(tam - 11, 3) + '.' + vr.substr(tam - 8, 3) + '.' + vr.substr(tam - 5, 3) + ',' + vr.substr(tam - 2, tam);
        }
        if ((tam >= 15) && (tam <= 18)) {
            campo.value = vr.substr(0, tam - 14) + '.' + vr.substr(tam - 14, 3) + '.' + vr.substr(tam - 11, 3) + '.' + vr.substr(tam - 8, 3) + '.' + vr.substr(tam - 5, 3) + ',' + vr.substr(tam - 2, tam);
        }
    }
    MovimentaCursor(campo, xPos);
}

function PosicaoCursor(textarea) {
    var pos = 0;
    if (typeof (document.selection) != 'undefined') {
        //IE
        var range = document.selection.createRange();
        var i = 0;
        for (i = textarea.value.length; i > 0; i--) {
            if (range.moveStart('character', 1) == 0)
                break;
        }
        pos = i;
    }
    if (typeof (textarea.selectionStart) != 'undefined') {
        //FireFox
        pos = textarea.selectionStart;
    }

    if (pos == textarea.value.length)
        return 0; //retorna 0 quando não precisa posicionar o elemento
    else
        return pos; //posição do cursor
}

function MovimentaCursor(textarea, pos) {
    if (pos <= 0)
        return; //se a posição for 0 não reposiciona

    if (typeof (document.selection) != 'undefined') {
        //IE
        var oRange = textarea.createTextRange();
        var LENGTH = 1;
        var STARTINDEX = pos;

        oRange.moveStart("character", -textarea.value.length);
        oRange.moveEnd("character", -textarea.value.length);
        oRange.moveStart("character", pos);
        oRange.select();
        textarea.focus();
    }
    if (typeof (textarea.selectionStart) != 'undefined') {
        //FireFox
        textarea.selectionStart = pos;
        textarea.selectionEnd = pos;
    }
}

function filtraNumeros(campo) {
    var s = "";
    var cp = "";
    vr = campo;
    tam = vr.length;
    for (i = 0; i < tam; i++) {
        if (vr.substring(i, i + 1) == "0" ||
            vr.substring(i, i + 1) == "1" ||
            vr.substring(i, i + 1) == "2" ||
            vr.substring(i, i + 1) == "3" ||
            vr.substring(i, i + 1) == "4" ||
            vr.substring(i, i + 1) == "5" ||
            vr.substring(i, i + 1) == "6" ||
            vr.substring(i, i + 1) == "7" ||
            vr.substring(i, i + 1) == "8" ||
            vr.substring(i, i + 1) == "9") {
            s = s + vr.substring(i, i + 1);
        }
    }
    return s;
}

function getEvent(evt) {
    if (!evt) evt = window.event; //IE
    return evt;
}
    
function getKeyCode(evt) {
    var code;
    if (typeof (evt.keyCode) == 'number')
        code = evt.keyCode;
    else if (typeof (evt.which) == 'number')
        code = evt.which;
    else if (typeof (evt.charCode) == 'number')
        code = evt.charCode;
    else
        return 0;

    return code;
}

function teclaValida(tecla) {
    if (tecla == 8 //backspace
    //Esta evitando o post, quando são pressionadas estas teclas.
    //Foi comentado pois, se for utilizado o evento texchange, é necessario o post.
        || tecla == 9 //TAB
        || tecla == 27 //ESC
        || tecla == 16 //Shif TAB 
        || tecla == 45 //insert
        || tecla == 46 //delete
        || tecla == 35 //home
        || tecla == 36 //end
        || tecla == 37 //esquerda
        || tecla == 38 //cima
        || tecla == 39 //direita
        || tecla == 40)//baixo
        return false;
    else
        return true;
}

function filtraCampo(campo) {
    var s = "";
    var cp = "";
    vr = campo.value;
    tam = vr.length;
    for (i = 0; i < tam; i++) {
        if (vr.substring(i, i + 1) != "/"
            && vr.substring(i, i + 1) != "-"
            && vr.substring(i, i + 1) != "."
            && vr.substring(i, i + 1) != "("
            && vr.substring(i, i + 1) != ")"
            && vr.substring(i, i + 1) != ":"
            && vr.substring(i, i + 1) != ",") {
            s = s + vr.substring(i, i + 1);
        }
    }
    return s;
}

function formataTelefone(campo, evt) {
    //(00) 0000-0000
    var xPos = PosicaoCursor(campo);
    evt = getEvent(evt);
    var tecla = getKeyCode(evt);
    if (!teclaValida(tecla))
        return;

    vr = campo.value = filtraNumeros(filtraCampo(campo));
    tam = vr.length;

    if (tam == 1)
        campo.value = '(' + vr;
    else if (tam >= 2 && tam < 6)
        campo.value = '(' + vr.substr(0, 2) + ') ' + vr.substr(2);
    else if (tam >= 6)
        campo.value = '(' + vr.substr(0, 2) + ') ' + vr.substr(2, 4) + '-' + vr.substr(6);
        
    MovimentaCursor(campo, xPos);
}

function SomenteNumero(e) {
    var tecla = (window.event) ? event.keyCode : e.which;
    if ((tecla > 47 && tecla < 58)) return true;
    else {
        if (tecla != 8) return false;
        else return true;
    }
}

function formataCPF(campo, evt) {
    //999.999.999-99
    var xPos = PosicaoCursor(campo);
    evt = getEvent(evt);
    var tecla = getKeyCode(evt);
    if (!teclaValida(tecla))
        return;

    vr = campo.value = filtraNumeros(filtraCampo(campo));
    tam = vr.length;
    if (tam >= 3 && tam < 6)
        campo.value = vr.substr(0, 3) + '.' + vr.substr(3);
    else if (tam >= 6 && tam < 9)
        campo.value = vr.substr(0, 3) + '.' + vr.substr(3, 3) + '.' + vr.substr(6);
    else if (tam >= 9)
        campo.value = vr.substr(0, 3) + '.' + vr.substr(3, 3) + '.' + vr.substr(6, 3) + '-' + vr.substr(9);
    MovimentaCursor(campo, xPos);
}

function formataDataeHora(campo, evt) {
    xPos = PosicaoCursor(campo);
    //dd/MM/yyyy
    evt = getEvent(evt);
    var tecla = getKeyCode(evt);
    if (!teclaValida(tecla))
        return;
    vr = campo.value = filtraNumeros(filtraCampo(campo));
    tam = vr.length;

    if (tam >= 2 && tam < 4)
        campo.value = vr.substr(0, 2) + '/' + vr.substr(2);
    if (tam == 4)
        campo.value = vr.substr(0, 2) + '/' + vr.substr(2, 2) + '/';
    if (tam > 4)
        campo.value = vr.substr(0, 2) + '/' + vr.substr(2, 2) + '/' + vr.substr(4);
    if (tam > 8 && tam < 11)
        campo.value = vr.substr(0, 2) + '/' + vr.substr(2, 2) + '/' + vr.substr(4, 4) + ' ' + vr.substr(8, 2);
    if (tam >= 11)
        campo.value = vr.substr(0, 2) + '/' + vr.substr(2, 2) + '/' + vr.substr(4, 4) + ' ' + vr.substr(8, 2) + ':' + vr.substr(10);

    campo.value = campo.value.substr(0, 16);
    MovimentaCursor(campo, xPos);
}

function formataCEP(campo, evt) {
    //312555-650
    var xPos = PosicaoCursor(campo);
    evt = getEvent(evt);
    var tecla = getKeyCode(evt);
    if (!teclaValida(tecla))
        return;

    vr = campo.value = filtraNumeros(filtraCampo(campo));
    tam = vr.length;

    if (tam < 5)
        campo.value = vr;
    else if (tam == 5)
        campo.value = vr + '-';
    else if (tam > 5)
        campo.value = vr.substr(0, 5) + '-' + vr.substr(5);
    MovimentaCursor(campo, xPos);
}

function formataQuilometragem(campo, evt) {
    //1.000.000,00
    var xPos = PosicaoCursor(campo);
    evt = getEvent(evt);
    var tecla = getKeyCode(evt);
    if (!teclaValida(tecla))
        return;

    vr = campo.value = filtraNumeros(filtraCampo(campo));
    if (vr.length > 0) {
        vr = parseFloat(vr.toString()).toString();
        tam = vr.length;

        if ((tam > 3) && (tam <= 5)) {
            campo.value = vr.substr(0, tam - 3) + '.' + vr.substr(tam - 3, tam);
        }
        if ((tam >= 6) && (tam <= 8)) {
            campo.value = vr.substr(0, tam - 3) + '.' + vr.substr(tam - 3, tam);
        }
    }
    MovimentaCursor(campo, xPos);
}

function formataTel(campo, evt) {
    //1234 - 5678
    // OBS.: Para que esta função funcione corretamente é necessario mudar a propriedade "MaxLength" do TextBox para ""9"
    var xPos = PosicaoCursor(campo);
    evt = getEvent(evt);
    var tecla = getKeyCode(evt);
    if (!teclaValida(tecla))
        return;

    vr = campo.value = filtraNumeros(filtraCampo(campo));
    tam = vr.length;

    if (tam < 4)
        campo.value = vr;
    else if (tam == 4)
        campo.value = vr + '-';
    else if (tam > 4)
        campo.value = vr.substr(0, 4) + '-' + vr.substr(4, 9);
    MovimentaCursor(campo, xPos);
}

function formataDDD(campo, evt) {
    //(11)
    var xPos = PosicaoCursor(campo);
    evt = getEvent(evt);
    var tecla = getKeyCode(evt);
    if (!teclaValida(tecla))
        return;

    vr = campo.value = filtraNumeros(filtraCampo(campo));
    tam = vr.length;

    if (tam < 1)
        campo.value = vr;
//    else if (tam == 1)
//        campo.value = vr + '-';
    else if (tam > 1)
        campo.value = '(' +  vr.substr(0, 2) + ')';
    MovimentaCursor(campo, xPos);
}
