function setEmail___( ){
	//alert('');
	var ajaxContent = "ajaxContentMerUzenet";
	try{
	var fx=new Fx.Style($(ajaxContent), "color", {duration:400});
		$(ajaxContent).empty().addClass("ajax-loading").setHTML("<img src='components/com_mer/assets/images/ajax-loader.gif' border='0'> " );
		
        var url = "index.php?option=com_mer&task=setEmail&format=raw"
		url += "&merSw="+$('inputSw').value;
		url += "&merEmail="+$('merEmail').value;
		url += "&merNEv="+$('merNev').value;		
		//alert(url);
        var a=new Ajax(url,{
            method:"post",
            onComplete: function(response){
                var resp=Json.evaluate(response);
                $(ajaxContent).removeClass("ajax-loading").setHTML(resp.html);
                /*
				fx.set("#fff").start("#000").chain(function() {
                    this.start.delay(0, this, "#000");
                });
				*/
            }
        }).request();
	}catch(e){
	}
}

function setEmail(lista_id){
	var url = "index.php?option=com_mer&controller=mer&task=setEmail&format=raw"
	url += "&merSw="+$j('#inputSw').val();
	url += "&merEmail="+$j('#merEmail').val();
	url += "&merNev="+$j('#merNev').val();	
	url += "&merLista="+lista_id;			
			
	//alert(url);
   $j.ajax({

      url: url,
      type: "POST",
      async: false,
      /*dataType: "html",*/
      success: function(response){
         var resp= $j.parseJSON( response );
		 if( resp.error == '' ){
				$j("#ajaxContentMerUzenet").html( resp.html );
				
		 }else{
			alert('error:'+resp.error);
		 }
		
      }
	});
   

}


