function JSObj_xml_web_search_result()
{
	this.posId = 1;
	this.compId = 1;
	this.lngId = 'es';

	this.save = function () {
		var oFormValidator = new WBEFormValidator();
		var oAjax = new WBE_AjaxClass();
		if (oFormValidator.validateForm(document.forms[0], this.posId)) {
			oAjax.clear();
			oAjax.addPostParameter("email", eval('document.InmediaFrm.email_' + this.posId).value);
			oAjax.throwEvent2("subscriber_add");
			this.hideForm();
			this.showOkMsg();
		}
	};
	
	this.showOkMsg = function () {
		document.getElementById('suscription_box_ok_' + this.posId).style.display = '';
	};

	this.hideForm = function () {
		document.getElementById('suscription_box_' + this.posId).style.display = 'none';
	};
	
	this.showForm = function () {
		eval('document.InmediaFrm.email_' + this.posId).value = '';
		document.getElementById('suscription_box_' + this.posId).style.display = '';
		document.getElementById('suscription_box_ok_' + this.posId).style.display = 'none';
		document.getElementById('suscription_box_mail_exists_' + this.posId).style.display = 'none';
	};
	
	this.doSubmit = function () {
		var oFormValidator = new WBEFormValidator();
		if (oFormValidator.validateForm(document.forms[0], this.posId)) {
			document.forms[0].submit();
		}
	};
};


