$(document).ready(function() {
	var oGuest = new guestpage();
});

function guestpage() {

	this.init = function() {
		var that = this;
		$('#guestTerm .popup').click(function() { oTools.popup(this.href, 'License'); return false; });
		$('#guestTerm .proceed').click(function() { return that.submit(); });
	};

	this.submit = function() {
		if ($('#confirmation:checked').length > 0) {
			return true;
		} else {
			$.modaldialog.warning(oJunaioTranslate.getTranslation('conditionsnotconfirmed'), {width: 300});
			return false;
		}
	};

	this.init();

}