function toggle_login(id) {
	var e = document.getElementById(id);
	var email = document.getElementById('email');
	var pass = document.getElementById('pass');

	if(e.style.display == 'block'){
		e.style.display = 'none';
	}else{
		e.style.display = 'block';
		if(email.value == "") { email.focus(); } else { pass.focus(); }
	}

}

function ReadCookie(cookieName) {
	var theCookie=""+document.cookie;
	var ind=theCookie.indexOf(cookieName);
	if (ind==-1 || cookieName=="") return "";
	var ind1=theCookie.indexOf(';',ind);
	if (ind1==-1) ind1=theCookie.length;
	return unescape(theCookie.substring(ind+cookieName.length+1,ind1));
}