function transferImg( img , title , width , height ) {

	var leftVal = (screen.width - width) / 2;
	var topVal = (screen.height - height) / 2;
	cond1 = "width=" + ( width + 0 ) + "";
	cond2 = "height=" + ( height + 0 ) + "";
	var dim = cond1 + "," + cond2 + ",";
	  
	 var s0 = "<html><head>";
	 var s1 = "<title>" + title + "</title>" ;
	 var s2 = "<style type='text/css'>";
	 var s3 = "body {margin:0px;}";
	 var s4 = "</style></head>";
	 
	 var b1 = "<body>" ;
	 var b2 = "<img src='" + img + "' border=0>" ;
	 var b7 = "</body></html>" ;
	  
	 ImageWindow=window.open("about:blank","newwin", dim + "toolbar=no,scrollbars="+scroll+",menubar=no");
	 ImageWindow.document.write( s0 + s1 + s2 + s3 + s4 + b1 + b2 + b7 );
	 ImageWindow.document.close();
	 ImageWindow.focus();
  
}

function transferView( pagina , width , height , firstPage, lastPage ) {

	var leftVal = (screen.width - width) / 2;
	var topVal = (screen.height - height) / 2;
	cond1 = "width=" + ( width + 0 ) + "";
	cond2 = "height=" + ( height + 0 ) + "";
	var dim = cond1 + "," + cond2 + ",";

	fromPage = "navigator.php" + "?pag=" + pagina + "&firstp=" + firstPage + "&lastp=" + lastPage;

	ImageWindow = window.open(fromPage, "newwin", dim + "toolbar=no,scrollbars=yes,resizable=0,menubar=no,status=no,left="+leftVal+",top="+topVal+"");

	ImageWindow.document.close();
	ImageWindow.focus();
  
}


function transferEdition( ed , width , height ) {

	var leftVal = (screen.width - width) / 2;
	var topVal = (screen.height - height) / 2;
	cond1 = "width=" + ( width + 0 ) + "";
	cond2 = "height=" + ( height + 0 ) + "";
	var dim = cond1 + "," + cond2 + ",";
  
	 var s0 = "<html><head>";
	 var s1 = "<title>" + ed + "</title>" ;
	 var s2 = "<style type='text/css'>";
	 var s3 = "body {margin:0px;}";
	 var s4 = "</style></head>";
	 
	 var b1 = "<body>" ;
	 var b2 = "<img src='editions/" + ed + "-450.jpg' border=0>" ;
	 var b3 = "</body></html>" ;
	  
	 ImageWindow = window.open("about:blank", "newed", dim + "toolbar=no,scrollbars=yes,resizable=0,menubar=no,status=no,left="+leftVal+",top="+topVal+"");
	 ImageWindow.document.write( s0 + s1 + s2 + s3 + s4 + b1 + b2 + b3 );
	 ImageWindow.document.close();
	 ImageWindow.focus();
  
}