

function reloadAndReset() {

	$.cookie('jy_currentuser', '', {
				expires : -1
			});
	window.location = "index.jsp";
	// document.scoreform.action = "./score!init.action";
}
function getDoUserId2() {
	var doUserId = $.cookie('jy_douserid');
	if (doUserId == null) {
		doUserId = "8" + Math.round(Math.random() * 999999999999999999);
		$.cookie('jy_douserid', doUserId, {
					expires : 360
				});
	}
	return doUserId;
}

function sex_Change() {
	var jy_sex_value = $("#jy_sex_01").val();
	$.cookie('jy_sex', jy_sex_value, {
				expires : 60
			});

	reloadAndReset();
}

function age_Change() {
	var jy_age_value = $("#jy_age_01").val();
	$.cookie('jy_ageRange', jy_age_value, {
				expires : 60
			});
	reloadAndReset();
}

function scoreUser() {
	// Math.round(Math.random()*999999999999999999)
	var doUserId = getDoUserId2();
	$("#jy_douserid").val(doUserId);
	document.scoreform.submit();
}

function init() {
	var jy_currentuser = $("#jy_currentuser").val();
	$.cookie('jy_currentuser', jy_currentuser, {
				expires : -1
			});

}

$(document).ready(function() {
			getDoUserId2();
			init();
			$(".left-content3").jMarquee({
						visible : 2,
						step : 1,
						direction : "up"
					});
		});

