<!--
var active;
function language_change(targ,selObj,restore){
  
  var host=document.location.hostname;
  var path=document.location.pathname;
  var search=document.location.search;//.split("&");
  
  var extention;
  if(document.location.search==""){ 
  extention="?lang="+selObj.options[selObj.selectedIndex].value;
  }
  else
  {
  extention="&lang="+selObj.options[selObj.selectedIndex].value;
  }
  
  var newurl = host+path+search+extention;
  if (active){
  newurl=newurl+"&cat="+active;
  }
  document.location="http://"+newurl;

  
  
  
  /*
  str=document.location.pathname;
  if(document.location.search==""){
  	
  	if (str.indexOf('#')!=-1);{
  		str=str.substr(0,str.indexOf('#'));
  	}
  	extention="?lang=";
  	newurl=str+extention+selObj.options[selObj.selectedIndex].value;
  }
  else
  {
	var uget=document.location.search.split("&");
	alert(document.location.search);
	if (str.indexOf('#'));{
  		str=str.substr(0,str.indexOf('#'));
  	}
	extention="&lang=";

	newurl=str+extention+selObj.options[selObj.selectedIndex].value;
  }

  if (active){
  newurl=newurl+"&cat="+active;
  }
  document.location=newurl;
  if (restore) selObj.selectedIndex=0;
  */
}
-->
