
var g_objUserStore = {};

var cfgPersist = {
	pageSize: 4000,
	cookieExpire: 3000,

	loadURL : "/common/service/requestparser?name=ustore&action=get",
	saveURL : "/common/service/requestparser?name=ustore&action=set"
};

DoScriptCall(cfgPersist.loadURL);
	
function ShowAge() {
	
	var blnCheck = PP.getKeyObject("checkage");
	
	if (typeof(blnCheck) == "undefined") blnCheck = false;
	
	if (!blnCheck) {
		$("#adultwarning").dialog({
						  modal: true,
						  width: 352,
						  height: 90,
						  resizable: false
						  }).dialog("open");
		
	}
	
}	
	
function SetAge(blnAge, strRedir) {
	if (typeof(strRedir) == "undefined") strRedir = "http://www.portal.hu";

	if (!blnAge) {
		window.location = strRedir;
	} else {
		PP.setKeyObject("checkage", true);
		$("#adultwarning").dialog("close");
	}
}	
