var nsForm = nsBase.extend({
	initialize: function(url, options) {
		this.parent(url);
		this.options = options;
	},
	show : function () {
		this.request(this.options['show']);
	},
	onsubmitEvent : function(evt) {
		this.send(evt.target);
	},
	send : function (frm) {
		var options = Object.extend({
			onComplete : this.sendComplete.bind(this)
		}, this.options['send']);
		if (!frm)
			frm = $(options.frm);
		this.submit(frm, options);
	},
	sendComplete : function (text, xml) {
		if (text.test(/<result>1<\/result>/i))
			this.msg(text,'msg');
		else
			this.msg(text,'error');
	},
	msg : function (text, name) {
		var options = Object.extend({}, this.options[name]);
		Object.extend(options.postBody || {}, { reqXML : text});
		this.request(options);
	}
});