<script type="text/javascript" src="http://www.google.com/jsapi"></script>
google.load("language", "1");
function
translate_keyword(){
var text =
document.getElementById("Laws_keyword").value;
google.language.detect(text,
function(result)
{
if (!result.error
&& result.language)
{
google.language.translate(text, result.language,
"en", function(result)
{
var translated =
document.getElementById("Laws_keywordEN");
if (result.translation!="")
{
translated.value =
result.translation;
}
});
}
});
}