var g_langName="";var g_stringXmlDoc=createXMLDoc();function FlushLabels(a){for(itemXml=0;itemXml<a.length;itemXml++){if(a[itemXml].nodeName=="page_title"){document.title=a[itemXml].childNodes[0].nodeValue}else{htmlElement=document.getElementById(a[itemXml].nodeName);if(htmlElement==null){continue}if(htmlElement.type=="button"){htmlElement.value=a[itemXml].childNodes[0].nodeValue}else{if(htmlElement.tagName.toLowerCase()=="img"){htmlElement.title=a[itemXml].childNodes[0].nodeValue}else{htmlElement.innerHTML=a[itemXml].childNodes[0].nodeValue}}}}}function ApplyXmlLang(a){g_xmlhttp.open("get","language/"+g_langName+"/"+a,false);SafeHttpSend(g_xmlhttp,null);if(g_stringXmlDoc!=null){delete g_stringXmlDoc;g_stringXmlDoc=null}g_stringXmlDoc=FormatToXmlDOM(g_xmlhttp.responseText);g_stringXmlDoc.async=false;FlushLabels(g_stringXmlDoc.documentElement.childNodes)};