if(typeof Web == "undefined") Web={};
if(typeof Web.Ajax == "undefined") Web.Ajax={};
Web.Ajax_class = function() {};
Object.extend(Web.Ajax_class.prototype, Object.extend(new AjaxPro.AjaxClass(), {
	GetCity: function(province) {
		return this.invoke("GetCity", {"province":province}, this.GetCity.getArguments().slice(1));
	},
	Register: function(account, password, name, sex, mobile, email, province, city, unit, specialty, position) {
		return this.invoke("Register", {"account":account, "password":password, "name":name, "sex":sex, "mobile":mobile, "email":email, "province":province, "city":city, "unit":unit, "specialty":specialty, "position":position}, this.Register.getArguments().slice(11));
	},
	UpdateInfo: function(name, sex, phone, mobile, province, city, unit, specialty, position) {
		return this.invoke("UpdateInfo", {"name":name, "sex":sex, "phone":phone, "mobile":mobile, "province":province, "city":city, "unit":unit, "specialty":specialty, "position":position}, this.UpdateInfo.getArguments().slice(9));
	},
	Join: function(name, email) {
		return this.invoke("Join", {"name":name, "email":email}, this.Join.getArguments().slice(2));
	},
	Login: function(userName, password, code, category, autoLogin) {
		return this.invoke("Login", {"userName":userName, "password":password, "code":code, "category":category, "autoLogin":autoLogin}, this.Login.getArguments().slice(5));
	},
	Exit: function() {
		return this.invoke("Exit", {}, this.Exit.getArguments().slice(0));
	},
	UpdatePassword: function(oldPassword, newPassword) {
		return this.invoke("UpdatePassword", {"oldPassword":oldPassword, "newPassword":newPassword}, this.UpdatePassword.getArguments().slice(2));
	},
	GetPwd: function(email) {
		return this.invoke("GetPwd", {"email":email}, this.GetPwd.getArguments().slice(1));
	},
	SetPassword: function(strGuid, password) {
		return this.invoke("SetPassword", {"strGuid":strGuid, "password":password}, this.SetPassword.getArguments().slice(2));
	},
	Exist: function(account) {
		return this.invoke("Exist", {"account":account}, this.Exist.getArguments().slice(1));
	},
	EmailExist: function(email) {
		return this.invoke("EmailExist", {"email":email}, this.EmailExist.getArguments().slice(1));
	},
	UpdateEmail: function(email) {
		return this.invoke("UpdateEmail", {"email":email}, this.UpdateEmail.getArguments().slice(1));
	},
	ReSendMail: function(email) {
		return this.invoke("ReSendMail", {"email":email}, this.ReSendMail.getArguments().slice(1));
	},
	AddCaseHistory: function(title, age, sex, cc, medicalHistory, ph, otherHistory, vision, ophthalmotonus, dioptre, attachment) {
		return this.invoke("AddCaseHistory", {"title":title, "age":age, "sex":sex, "cc":cc, "medicalHistory":medicalHistory, "ph":ph, "otherHistory":otherHistory, "vision":vision, "ophthalmotonus":ophthalmotonus, "dioptre":dioptre, "attachment":attachment}, this.AddCaseHistory.getArguments().slice(11));
	},
	AddFeedback: function(type, email, name, mobile, linkman, explain) {
		return this.invoke("AddFeedback", {"type":type, "email":email, "name":name, "mobile":mobile, "linkman":linkman, "explain":explain}, this.AddFeedback.getArguments().slice(6));
	},
	SignUp: function(name, sex, unit, position, mobile, email, putUp, lunch) {
		return this.invoke("SignUp", {"name":name, "sex":sex, "unit":unit, "position":position, "mobile":mobile, "email":email, "putUp":putUp, "lunch":lunch}, this.SignUp.getArguments().slice(8));
	},
	url: '/ajaxpro/Web.Ajax,Web.ashx'
}));
Web.Ajax = new Web.Ajax_class();


