///////////////////////////////////////////////////// PRELOAD IMAGENS
var myimages = new Array();
function preloading(){
for (x=0; x<preloading.arguments.length; x++){
myimages[x] = new Image();
myimages[x].src = "images/" + preloading.arguments[x];
}
}
preloading("oficial-b.gif","squirrel-b.gif","roundcube-b.gif","flor.gif"); 

/////////////////////////////////////////////////////


function destaca(id) {


document.getElementById(id).src='images/'+id+'-b.jpg';
document.getElementById('ok_'+id).src='images/ok-b.gif';


}


function destaca_out(id) {



if (document.frm.interface.value != id) {
document.getElementById(id).src='images/'+id+'-a.jpg';
document.getElementById('ok_'+id).src='images/ok-a.gif';
}



}



function marca(id){

var old = document.frm.interface.value;
document.frm.interface.value=id;
destaca_out(old);


}



function salvar_login(){

if (document.frm.salvar.value == "") {
document.getElementById('ok_salvar').src='images/ok-b.gif';
document.frm.salvar.value = "sim"
alerta("Caso esteja utilizando um computador público, recomendamos desmarcar está opção.","")
}
else

{
document.getElementById('ok_salvar').src='images/ok-a.gif';
document.frm.salvar.value = ""
}

}



function checa() {

if (document.frm.email.value=="") { alerta("Informe o e-mail!","document.frm.email"); return false; }
if (document.frm.email.value.search("@") == -1 || document.frm.email.value.search("[.*]") == -1) { alerta("Seu e-mail está incorreto!","document.frm.email"); return false; }
if (document.frm.senha.value=="") { alerta("Informe a senha!","document.frm.senha"); return false; }

}


