function joinA() {}
joinA.prototype.init = function() {
	$('#JoinAInError').hide();
	$('#JoinALoader').hide();
	scope = this;
	$('#joinAForm').bind("submit", function(e) {
		e.preventDefault();
		var id = $('#showid').val();
		if (!id) {
			scope.error('Fill in an ID');
			return false;
		}

		scope.load(id);
		return false;
	});
}

joinA.prototype.error = function(msg) {
	$('#JoinAInError').show().attr("innerHTML", msg ); 
}
joinA.prototype.load = function( id ) {
	$('#JoinALoader').show();
	scope = this;
	$.post( GetBaseURL() + moderator + 'isAMeeting/' + id , 
		function(data){
			$('#JoinALoader').hide();
			if(data==1) {
				window.location=GetBaseURL() + show + id;
			} else {
				scope.error('Not Found');
			}
		}
	);
}
