function redirectself(charset)
{
	var url=window.location.toString();
	var str="";
	if(url.indexOf("?")!=-1)
	{
		var ary =new Array();
		ary	=url.split("?")[1].split("&");
  		var selfurl = url.split("?")[0];
		for(var i = 0;i <ary.length; i++){
    					
			if(ary[i].split("=")[0] != 'charset')
			{
				str+="&"+ary[i].split("=")[0]+"="; 
    			str+=ary[i].split("=")[1];
			}
		}
		location.href= selfurl + "?charset=" +charset + str;
	}else{
		location.href= window.location + "?charset=" +charset;		
	}
}

