﻿// Google translation form code
//
// French: 'en|fr'
// German: 'en|de'
// Italian: 'en|it'
// Portuguese: 'en|pt'
// Spanish: 'en|es'
// Japanese: 'en|ja'
// Korean: 'en|ko'
// Chinese Simplified: 'en|zh-CN'
// Arabic: 'en|ar'
// Russian: 'en|ru'
// Dutch: 'en|nl'
// Greek: 'en|el'

document.write("<form name=\"googletrans\" action=\"http://www.google.com/translate\"  target=\"_blank\"> ");
document.write("<input name=u value="+location.href+" type=hidden>");
document.write("<input name=\"hl\" value=\"en\" type=\"hidden\">");
document.write("<input name=\"ie\" value=\"UTF8\" type=\"hidden\">");
document.write("<input name=\"langpair\" value=\"\" type=\"hidden\">");
document.write("</form>");

function changeLang(type)
{
var theForm = document.forms['googletrans'];
if (!theForm) {
    theForm = document.googletrans;
}
theForm.langpair.value = type;
theForm.submit();

}
