﻿uiregister = function(pid) {
	$.get(
		HOST_CUOCHEN + 'ajax/uiregister',{id:pid},
		function (response) {
			if (response == 0) {				
				location.href = HOST_CUOCHEN+'dating/register?id='+pid;
			} else {
				$.blockUI({
					message: response,
					css: {
						background: 'none',
						border: 'none',
						top:  ($(window).height() - 300)/2 + 'px',
						left: ($(window).width() - 500)/2 + 'px',
						cursor: 'pointer'
					}
				});
			}
		}
	);
}
uimembersofgroup = function(pid, pgroupid, pname, ptype) {
	$.get(
		HOST_CUOCHEN + 'ajax/uimembersofgroup',{id:pid, groupid:pgroupid, name:pname, type:ptype},
		function (response) {
			$.blockUI({
				message: response,
				css: {
					background: 'none',
					border: 'none',
					top:  ($(window).height() - 300)/2 + 'px',
					left: ($(window).width() - 500)/2 + 'px',
					cursor: 'pointer'
				}
			});
		}
	);
}
