function abrirPortlet(wApp, hApp, url, target, resize){
	resize = typeof(resize) != 'undefined' ? resize: 0
 	var params, xPos = 0, yPos = 0;
	var ancho = screen.width;
	var alto = screen.height;
	var wVentana;

	xPos = (ancho - (wApp+10)) / 2;
	yPos = (alto - (hApp+75)) / 2;

	wVentana = window.open(url, target, "height="+hApp+",width="+wApp+",left="+xPos+",top="+yPos+",scrollbars=yes,resizable="+resize);
	
	return wVentana;
}

function putAction(url, nmDiv){
	url = url.replace("&amp;", "&")

	if(url.indexOf("C.Cargo") > 0){
		window.open(url, '_self')
		return;
	}
	
	var prueboRequest = new Request({
		method: 'get', 
		url: url,
		onRequest: function() { $(nmDiv).set('html', "<a class='PortletText1'>Cargando, por favor espere...</a>"); },
		onSuccess: function(respuesta, xmlrespuesta){ $(nmDiv).set('html', respuesta); }
	}).send();		

	//$(nmDiv).load(url);
}
