);
    return defaultName;
}

function getCookie() {
	var nameEquals = "server=";
	var cookies = document.cookie.split(";");
	for (var i=0;i<cookies.length;++i) {
		var cookie = cookies[i];
		if (cookie.charAt(0) == ' ') {
			cookie = cookie.substring(1, cookie.length);
		}
		if (cookie.indexOf(nameEquals) == 0) {
			return cookie.substring(nameEquals.length, cookie.length);
		}
	}
	return null;
}

function setCookie(value) {
	var date = new Date();
	date.setTime(date.getTime()+(365*24*60*60*1000));
	docume