﻿// JavaScript Document
function setCookie(c_name,value,expiredays)
{
var exdate=new Date();
exdate.setDate(exdate.getDate()+expiredays);
document.cookie=c_name+ "=" +escape(value)+
((expiredays==null) ? "" : ";expires="+exdate.toUTCString()+";path=/;");
}

function changeLang(fromLang,toLang) {

	setCookie("lang", toLang, 90);
	
	x = window.location + '';
	x = x.replace( '/'+fromLang+'/', '/'+toLang+'/' );
	window.location.href = x;
}


