objAjax = null;
function init(){
try {
objAjax = new ActiveXObject("Microsoft.XMLHTTP");
} catch(e) {
try {
objAjax = new ActiveXObject("Msxml2.XMLHTTP");
} catch(ex) {
try {
objAjax = new XMLHttpRequest();
} catch(exc) {
alert("Esse browser nao tem recursos para uso do Ajax");
objAjax = null;
}
}
}
return objAjax;
}
function ajaxHTML(id,url){
objAjax = init();
//Obt� o objeto HTML
objetoHTML=document.getElementById(id);
//Exibe "Carregando..."
objetoHTML.innerHTML="Carregando...";
//Abre a conex�
objAjax.open("GET",url,true);
//Fun�o para tratamento do retorno
objAjax.onreadystatechange=function() {
if (objAjax.readyState==4){
//Mostra o HTML recebido
retorno=unescape(objAjax.responseText.replace(/\+/g," "));
objetoHTML.innerHTML=retorno;
}
}
//Executa
objAjax.send(null);
}
function criaTeclado(){
ajaxHTML("areaTeclado","implementaTeclado.php?op=criaTeclado");
}
function exibeTeclado(id){
ajaxHTML("areaTeclado","implementaTeclado.php?op=exibeTeclado&id="+id);
}
function atualizaCampoSenha(){
document.getElementById("senha").value = document.getElementById("senha").value + '*';
}
function limpar(){
ajaxHTML("areaTeclado","implementaTeclado.php?op=limpar");
}
function excluiImagens(){
ajaxHTML("areaTeclado","implementaTeclado.php?op=excluiImagens");
}
function escondeTeclas(){
for(x=0;x