function kb(val) { 
document.f.q.value = document.f.q.value + val; 
document.f.q.dir = "rtl"; 
document.f.q.focus(); 
}
function annul() {
document.f.q.dir = "ltr";
document.f.q.focus();
}

function reverso(direction){
document.fr.direction_translation.value = direction;
document.fr.action_form.value = "processing";
document.fr.action = "http://www.reverso.net/text_translation.asp?lang=en";
document.fr.sourcetext.value = document.f.q.value;
document.fr.method = "post";
document.fr.target = "_blank";
document.fr.submit();
}

function google(direction){
document.fg.action = "http://translate.google.com/translate_t?hl=en&ie=UTF8";
document.fg.text.value = document.f.q.value;
document.fg.langpair.value = direction;
document.fg.method = "post";
document.fg.target = "_blank";
document.fg.submit();
}
