

function SetCookie (name, value) 

{

var argv = SetCookie.arguments;

var argc = SetCookie.arguments.length;

var expires = (2 < argc) ? argv[2] : null;

var path = (3 < argc) ? argv[3] : null;

var domain = (4 < argc) ? argv[4] : null;

var secure = (5 < argc) ? argv[5] : false;

document.cookie = name + "=" + escape (value) +

((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +

((path == null) ? "" : ("; path=" + path)) +

((domain == null) ? "" : ("; domain=" + domain)) +

((secure == true) ? "; secure" : "");

}


function cambiar_idioma(idioma) {
	var today = new Date();
	var year = today.getFullYear();
	today.setYear(year+1);
	SetCookie('PAGOCASALANG',idioma,today);
	window.location.reload();	
}
