function changeStyle(e, c){
	e.className=c;
}

function initCV() {
	var expdate = new Date ();
	expdate.setTime (expdate.getTime() + (24 * 60 * 60 * 1000));
	DeleteCookie("CMS_SESSION","/");
	DeleteCookie("CMS_CV_USER","/");
	window.location="../cv/index.html";
}
function DeleteCookie (name,path,domain) {
if (GetCookie(name)) {
document.cookie = name + "=" +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
"; expires=Thu, 01-Jan-70 00:00:01 GMT";
	}
}


function getCookieData(labelName) {
var labelLen = labelName.length
// read cookie property only once for speed
var cookieData = document.cookie
var cLen = cookieData.length
var i = 0
var cEnd
while (i < cLen) {
	var j = i + labelLen
	if (cookieData.substring(i,j) == labelName) {
	cEnd = cookieData.indexOf(";",j)
	if (cEnd == -1) {
	cEnd = cookieData.length
}
	return unescape(cookieData.substring(j+1, cEnd))
}
	i++
}
	return ""
}
function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal(j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}
function getCookieVal (offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}