function watermark_add(w_id, id) {
var pars = $H({w_id:w_id,id:id}).toQueryString();
var myRequest = new Request.HTML({
	url: 'admin/ajax/watermark_add.php',
	method: 'get',
	update: 'out_watermark',
	evalScripts: true,
	onComplete: function(){ }
}).send(pars);
}

function admin_blacklist(id)  {
var out_id = 'out_'+id;
var price = document.getElementById(id).value;
var pars = $H({id:id, price:price}).toQueryString();

var myRequest = new Request.HTML({
	url: 'admin/ajax/blacklist.php',
	method: 'get',
	update: out_id,
	evalScripts: true,
	onComplete: function(){ }
}).send(pars);

$(out_id).fade('hide'); //Fades "myElement" out.
$(out_id).fade('in'); //Fades "myElement" out.
$(out_id).fade(1.0); //Fades "myElement" to 70% opacity.
}


function change_blacklist(id, price)  {
var out_id = 'out_'+id;
alert(out_id);
var pars = $H({id:id, price:price}).toQueryString();
var myRequest = new Request.HTML({
	url: 'admin/ajax/change_blacklist.php',
	method: 'get',
	update: 'out_id',
	evalScripts: true,
	onComplete: function(){ }
}).send(pars);

}


function vitrina_del(type, object_id, code) {
var pars = $H({type:type, object_id:object_id, code:code}).toQueryString();

var myRequest = new Request.HTML({
	url: 'ajax/vitrina_del.php',
	method: 'get',
	update: 'vitrina',
	evalScripts: true,
	onComplete: function(){ }
}).send(pars);
}

function vitrina_add(price_vitrina_type_id, object_id, code) {
var pars = $H({ type:price_vitrina_type_id, object_id:object_id, code:code }).toQueryString();
var myRequest = new Request.HTML({
	url: 'ajax/vitrina_add.php',
	method: 'get',
	update: 'out_vitrina_msg',
	evalScripts: true,
	onComplete: function(){ }
}).send(pars);
}


