function productlist_showpresentation(target,id)
{
	var newLink = '';
	var args = document.location.href.split('&');

	for (var i=0;i<args.length;i++)
	{
		var pair = args[i].split('=');
		name = unescape(pair[0]);

		if (name != 'list'){ //((name != 'list') && (name != 'qu'))
			if (i > 0)
				newLink += '&';
			newLink += pair[0] + '=' + pair[1];
		}
	}
	document.location= newLink + "&id=" + id + "&presentation=1";
}

function productlist_viewPresentation(mytext,target) {
	
	if (target=='-1')
		return;

	document.body.style.cursor="wait";

	var newLink = '';
	var args = document.location.href.split('&');

	for (var i=0;i<args.length;i++)
	{
		var pair = args[i].split('=');
		name = unescape(pair[0]);

		if((name != 'id') && (name != 'presentation') && (name != 'list')){ //&& (name != 'qu')
			if (i > 0)
				newLink += '&';
			newLink += pair[0] + '=' + pair[1];
		}
	}
	document.location= newLink + "&id=" + encodeURI(target) + "&presentation=1";
}

function productlist_viewModel(mytext,target, productType) {
	if (target=='-1')
		return;

	setnavigationcontrol(mytext,1)

	document.body.style.cursor="wait";

	var newLink = '';
	var args = document.location.href.split('&');

	for (var i=0;i<args.length;i++)
	{
		var pair = args[i].split('=');
		name = unescape(pair[0]);

		if((name != 'id') && (name != 'presentation')&& (name != 'list')&& (name != 'qu')&& (name != 'tipo')){
			if (i > 0)
				newLink += '&';
			newLink += pair[0] + '=' + pair[1];
		}
	}
	document.location= newLink + "&qu=" + encodeURI(target) + "&tipo="+ encodeURI(productType) + "&list=3";
}


function productlist_InitiateDrag (producer,producttype,idmc)
{   
	valore="@OXY|" + producttype + "|" + producer.toUpperCase() + "|" + idmc
	event.dataTransfer.setData("Text", valore);
}

