


function popup()
{

	var imapath = 'descargas/fondos-pantalla/';	
	var _width
	var _height;
	var ima;

	if (arguments.length > 1)
	{
		_width = arguments [0];
		_height = arguments [1];
		ima = arguments [2];
	}else{
		_width = screen.width;
		_height = screen.height;
		ima = arguments [0];
	}

	if(window.innerWidth)
	{
		LeftPosition =(window.innerWidth-_width)/2;
		TopPosition =((window.innerHeight-_height)/4)-50;
	}
	else
	{
		LeftPosition =(parseInt(window.screen.width)- _width)/2;
		TopPosition=((parseInt(window.screen.height)- _height)/2)-50;
	}

	attr = 'resizable=yes,scrollbars=yes,width=' + _width + ',height=' +
	       _height + ',screenX=300,screenY=200,left=' + LeftPosition + ',top=' +
	       TopPosition + '';
	popWin=open('', 'new_window', attr);
	popWin.document.write('<html><head><title>descargas</title></head>');
	popWin.document.write('<body><div align=center>');
	popWin.document.write('<img alt=' + '"' + 'ima' + '"' + 'src=' + '"' + imapath + ima + '"' + ' />');
	popWin.document.write('</div></body></html>');

	return false;
}
