<!--
/*   function changelang(lang)
   {

	lang = lang + "_"

	if (parent.location.href.lastIndexOf("#")+1 == parent.location.href.length ){
		len = parent.location.href.length -1
		temp = parent.location.href.substring(parent.location.href.lastIndexOf("/")+1)
		docname =temp.substring(0, temp.length -1)

	}else{
		docname = parent.location.href.substring(parent.location.href.lastIndexOf("/")+1)
	}
		dir = parent.location.href.substring(0, parent.location.href.lastIndexOf("/")+1)

		newloc =  dir + lang + docname.substring(docname.indexOf("_")+1)
		document.location.href = newloc
   }

*/
function changelang(strLang)
{
		var strDirectory = ""
		var strFile = ""
		var strLocation = parent.location.href
		var nLangPos = parent.location.href.lastIndexOf("lan=")
		var nLangPos1 = 0
		if (nLangPos > 0)
		{
			nLangPos1 = parent.location.href.indexOf("&", nLangPos)
			strDirectory = parent.location.href.substring(0, nLangPos)
			if (nLangPos1 > 0)
			{
					strFile = parent.location.href.substring(nLangPos1)
					strLocation = strDirectory + "lan=" + strLang + strFile
			}
			else
			{
					strLocation = strDirectory + "lan=" + strLang
			}
		}
		else
		{
				if (parent.location.href.indexOf("?") > 0)
				{
					strLocation = parent.location.href + "&lan=" + strLang
				}
				else
				{
					strLocation = parent.location.href + "?lan=" + strLang
				}
		}

		document.location.href = strLocation
}

//-->