ml.forms.reg = {};
ml.forms.reg.showonsite = function() {
	if ( ml.forms.reg.dialog ) {
		(ml.forms.reg.dialog).dialog('open');
	}else{
		scroll(0,0);
		ml.ajax.getServer({
			route:'/registration'
			,target:'#ml-regform'
			,onSuccess: {
				scope: this
				,fn: function() {
							ml.forms.reg.dialog = $('#ml-regform').dialog({ 
								modal: true
								,width: 690
							});
						}
				,delayed: 1}
		});
	}
};
//
//ml.forms.reg.check = function() {
//	ml.ajax.getServer({
//		route:'/registration/checkprofile/profilename'
//	});
//};
//
//ml.forms.reg.checkProfileName = function() {
//	
//};
