translation block

I am don't know PHP.. all I want to do is place a script inside a side box to run the google translation code. Instead of having to keep up with 8 launguages, I just let them translate the web site. Here is the script I am trying to use:

Code

<!--
document.write ("<FORM action=http://translate.google.com/translate>")
document.write ("<div align=center><div style='border:1px solid #f00; padding:4px; width:200px; text-align:center;'>")
document.write ("<img width=150 height=20 border=0 src=googletran.gif alt='Translate this page via Google&#153;'><br />")
document.write ("<INPUT type=hidden size=55 value='"+location.href+"' name=u>")
document.write ("<SELECT name=langpair>")
document.write ("<OPTION value=en|de>English to German</OPTION>")
document.write ("<OPTION value=en|es>English to Spanish</OPTION>")
document.write ("<OPTION value=en|fr>English to French</OPTION>")
document.write ("<OPTION value=en|it>English to Italian</OPTION>")
document.write ("<OPTION value=en|pt>English to Portuguese</OPTION>")
document.write ("<OPTION value=en|ja>English to Japanese</OPTION>")
document.write ("<OPTION value=en|ko>English to Korean</OPTION>")
document.write ("<OPTION value=en|zh-CN>English to Chinese&nbsp;(Simplified)</OPTION>")
document.write ("<OPTION value=de|en>German to English</OPTION>")
document.write ("<OPTION value=de|fr>German to French</OPTION>")
document.write ("<OPTION value=es|en>Spanish to English</OPTION>")
document.write ("<OPTION value=fr|en>French to English</OPTION>")
document.write ("<OPTION value=fr|de>French to German</OPTION>")
document.write ("<OPTION value=it|en>Italian to English</OPTION>")
document.write ("<OPTION value=pt|en>Portuguese to English</OPTION>")
document.write ("<OPTION value=ja|en>Japanese to English</OPTION>")
document.write ("<OPTION value=ko|en>Korean to English</OPTION>")
document.write ("<OPTION value=zh-CN|en>Chinese&nbsp;(Simplified) to English</OPTION>")
document.write ("</SELECT>&nbsp;")
document.write ("<INPUT type=hidden value=en name=hl><INPUT type=hidden value=UTF-8 name=ie><INPUT type=hidden value=UTF-8 name=oe>")
document.write ("<INPUT type=hidden value=/language_tools name=prev><INPUT type=submit value=Translate></div></div></FORM>")
// -->


Is there a simple way to do that, or do I need to write one PHP file, and a template file, and good lord knows what other file?

Thanks,
Jim icon_confused



edited by: Figster, Jun 08, 2006 - 11:26 PM