var Recommend = Class.create();
Recommend.prototype = {
	initialize: function(path_http){
		this.path_http = path_http;
		this.obj_vs = new Visuals();
	},
	recommend: function (key , element , form) {
		var mode= 'recommend';
		var ser = $(form).serialize();
		var uri = this.path_http + 'handler.ajax/' + mode + ',' + key;
		var obj_temp = this;
		new Ajax.Request(
			uri,{method: 'post',postBody: ser,
				onComplete: function(t){
					$(element).innerHTML = t.responseText;
					//obj_temp.hideBox(element);
				}
			}
		);
	},
	hideBox: function (element) {
		setTimeout(function (){new Effect.BlindUp(element)},2000);
	},
	getForm: function (key, element) {
		var mode= 'recommend';
		var obj_temp = this;
        this.obj_vs.showBgLayer();
        var uri = this.path_http + 'handler.ajax/' + mode + ',' + key;
        new Ajax.Request(uri,
			{
				onSuccess: function(t)
				{
					$(element).update(t.responseText);
				}
	         }
		);
	}
}